CSS text-emphasis-color Property

Description

The text-emphasis-color property specifies the foreground color of the emphasis marks.

Initial value
currentColor
Applies to
All elements
Inherited
Yes
Media
Visual
Computed value
As specified
Animatable
Yes
CSS Version
CSS3
JavaScript syntax
object.style.textEmphasisColor

Syntax

Formal syntax: <color>

text-emphasis-color: blue;
text-emphasis-color: #336655;
text-emphasis-color: rgba(128, 128, 128, 0);

Values

  • <color>Specify the foreground color of the emphasis marks.

Example

.class {
  text-emphasis-color: #3366FF;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XX????
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
??????