Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

text-emphasis-style — emphasis mark styling

The text-emphasis-style property sets the shape and fill of emphasis marks beside text. It is inherited; none disables the marks.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

text-emphasis-style: none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>;

text-emphasis-style adds emphasis marks beside typographic character units rather than underlining text. Its initial value is none, and it is inherited. Spaces do not receive emphasis marks. Whether punctuation receives marks depends on the browser: Chromium can draw marks on ordinary punctuation.

Choose filled (solid) or open (hollow), and a shape: dot (small dot), circle (larger circle), double-circle (double circle), triangle, or sesame (sesame seed). Either component may appear alone; a pair can appear in either order. A shape alone implies filled. Using only filled or open selects circle in horizontal typographic modes and sesame in vertical ones.

Alternatively, supply a quoted <string>, such as "*", without fill or shape keywords. Use one character: the browser may truncate or ignore a string containing more than one grapheme cluster.

text-emphasis-color controls color, and text-emphasis-position controls placement. The text-emphasis shorthand sets style and color but does not reset placement. Exact appearance depends on the font and browser; style animation is discrete.

Examples

<!doctype html>
<meta charset="utf-8">
<title>text-emphasis-style</title>
<style>
  p {
    font: 32px/2 sans-serif;
    writing-mode: horizontal-tb;
    text-emphasis-style: open circle;
    text-emphasis-position: over right;
    text-emphasis-color: black;
  }
  span { text-emphasis-style: none; }
</style>
<p>ABC <span>DEF</span></p>

Result

ABC: ○ ○ ○ above the letters; DEF: no emphasis marks.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources