This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

text-emphasis-color

Summary

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

Overview table

Initial value
currentColor
Applies to
All elements
Inherited
Yes
Media
visual
Computed value
as specified
Animatable
No
CSS Object Model Property
textEmphasisColor
Percentages
Not available

Syntax

  • text-emphasis-color: color

Values

color
Specify the foreground color of the emphasis marks.

Examples

p {
    text-emphasis-color: #000;
    text-emphasis-style: open;
}

View live example

Notes

The initial value of the currentColor means that it defaults to match the text color.

Related specifications

CSS Text Decoration Module Level 3
Editor’s Draft