CSS text-emphasis Property

Description

The text-emphasis property is a shorthand for setting text-emphasis-style and text-emphasis-color in one declaration. Omitted values are set to their initial values.

Initial value
See individual properties
Applies to
All elements
Inherited
Yes
Media
Visual
Computed value
See individual properties
Animatable
See individual properties
CSS Version
CSS3
JavaScript syntax
object.style.textEmphasis

Syntax

text-emphasis: <text-emphasis-style> || <text-emphasis-color>

Values

Example

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

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
X999946157
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
4.499461471.5

Last updated by CSSPortal on: