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
- <text-emphasis-style>See the text-emphasis-style CSS property for values.
- <text-emphasis-color>See the text-emphasis-color CSS property for values.
Example
.class {
text-emphasis: open triangle #3366FF;
}
Browser Support
Desktop | |||||
X | 99 | 99 | 46 | 15 | 7 |
Tablets / Mobile | |||||
![]() |
|||||
4.4 | 99 | 46 | 14 | 7 | 1.5 |
Last updated by CSSPortal on: