CSS text-emphasis-style Property

The CSS text-emphasis-style property specifies the shape or character used for emphasis marks displayed alongside text.

Emphasis marks highlight individual characters without changing their font weight or adding underlines. They are especially common in East Asian typography, where small dots or other symbols are placed above or beside characters.

Use text-emphasis-color to change the mark color and text-emphasis-position to control placement. The text-emphasis shorthand combines the style and color properties.

text-emphasis-style Syntax

The property accepts none, auto, a named emphasis shape with an optional fill keyword, or a quoted string.

Basic Syntax

.example {
  text-emphasis-style: filled dot;
}

Available Values

.example {
  text-emphasis-style: none;
}
.example {
  text-emphasis-style: auto;
}
.example {
  text-emphasis-style: dot;
}
.example {
  text-emphasis-style: filled circle;
}
.example {
  text-emphasis-style: open circle;
}
.example {
  text-emphasis-style: double-circle;
}
.example {
  text-emphasis-style: triangle;
}
.example {
  text-emphasis-style: sesame;
}
.example {
  text-emphasis-style: "★";
}

CSS-Wide Keywords

.example {
  text-emphasis-style: initial;
}
.example {
  text-emphasis-style: inherit;
}
.example {
  text-emphasis-style: unset;
}
.example {
  text-emphasis-style: revert;
}
.example {
  text-emphasis-style: revert-layer;
}

The initial value is none. Because the property is inherited, unset behaves like inherit.

Valid Examples

.example {
  text-emphasis-style: filled dot;
}
.example {
  text-emphasis-style: open sesame;
}
.example {
  text-emphasis-style: triangle filled;
}
.example {
  text-emphasis-style: "◆";
}

When using a named shape, the fill keyword can appear before or after the shape.

Invalid Examples

.example {
  text-emphasis-style: bold;
}
.example {
  text-emphasis-style: underline;
}
.example {
  text-emphasis-style: red;
}
.example {
  text-emphasis-style: filled open circle;
}
.example {
  text-emphasis-style: dot triangle;
}

Font weights, decoration lines, colors, conflicting fill keywords, and multiple named shapes are not valid values for this property.

Property Values

Value Description
none Displays no emphasis marks. This is the initial value.
auto Lets the browser select an appropriate emphasis mark shape.
filled Uses the filled version of a named mark shape.
open Uses the outlined version of a named mark shape.
dot Displays a dot-shaped mark.
circle Displays a circular mark.
double-circle Displays a double-circle mark.
triangle Displays a triangular mark.
sesame Displays a sesame-shaped mark.
<string> Uses a quoted string as a custom emphasis mark.

Property Characteristics

Characteristic Value
Initial value none
Inherited Yes
Applies to All elements
Computed value Specified keyword combination or string
Animation type Discrete
Percentages Not applicable
Shorthand text-emphasis
Specification CSS Text Decoration Module Level 3

Note: The property determines the mark shape, not its color or position. Those are controlled separately.

How It Works

The browser draws emphasis marks alongside eligible text characters according to the selected style.

Step 1: Select Text

<p class="emphasized" lang="ja">重要な文章</p>

Step 2: Add Emphasis Marks

.emphasized {
  text-emphasis-style: filled dot;
}

Filled dots appear alongside the Japanese characters.

Step 3: Change the Shape

.emphasized {
  text-emphasis-style: open circle;
}

The dots are replaced by outlined circles.

Step 4: Add a Color

.emphasized {
  text-emphasis-style: open circle;
  text-emphasis-color: #2563eb;
}

The circles become blue.

Step 5: Change the Position

.emphasized {
  text-emphasis-style: filled dot;
  text-emphasis-color: #2563eb;
  text-emphasis-position: under right;
}

The blue dots appear beneath horizontal text.

Important Consideration

Emphasis marks are not normally displayed over spaces or certain punctuation characters. They also do not change the underlying text content.

Emphasis Mark Shapes

CSS provides five named shapes that can be used for text emphasis.

Dot

.example {
  text-emphasis-style: dot;
}

Displays a small filled dot by default.

Circle

.example {
  text-emphasis-style: circle;
}

Displays a filled circular mark by default.

Double-Circle

.example {
  text-emphasis-style: double-circle;
}

Displays a filled double-circle mark.

Triangle

.example {
  text-emphasis-style: triangle;
}

Displays a filled triangular mark.

Sesame

.example {
  text-emphasis-style: sesame;
}

Displays a small sesame-shaped mark, commonly associated with East Asian typography.

Comparing Named Shapes

Shape Filled Form Open Form
Dot filled dot open dot
Circle filled circle open circle
Double-circle filled double-circle open double-circle
Triangle filled triangle open triangle
Sesame filled sesame open sesame

The exact appearance of named marks can vary depending on the browser and available fonts.

Filled and Open Marks

The filled and open keywords determine whether a named mark shape is solid or outlined.

Filled Marks

.example {
  text-emphasis-style: filled circle;
}

Displays a solid circular mark.

Open Marks

.example {
  text-emphasis-style: open circle;
}

Displays an outlined circular mark.

Default Fill

.example {
  text-emphasis-style: circle;
}

When a named shape is specified without a fill keyword, filled is used.

Fill Keyword Without a Shape

.example {
  text-emphasis-style: open;
}

This is valid. The browser chooses the appropriate automatic mark shape and uses its open version.

Filled Keyword Without a Shape

.example {
  text-emphasis-style: filled;
}

The browser chooses an appropriate filled mark shape.

Reversing Keyword Order

.example {
  text-emphasis-style: triangle open;
}

This is equivalent to open triangle.

Important Consideration

Fill keywords apply to named or automatically selected marks. They cannot be combined with a custom quoted string.

Custom Emphasis Marks

Custom emphasis marks can be specified using a quoted string instead of a named shape.

Star Mark

.example {
  text-emphasis-style: "★";
}

Diamond Mark

.example {
  text-emphasis-style: "◆";
}

Bullet Mark

.example {
  text-emphasis-style: "•";
}

Custom Unicode Mark

.example {
  text-emphasis-style: "\2605";
}

The Unicode escape \2605 represents a black star.

Custom Mark With Color

.example {
  text-emphasis-style: "◆";
  text-emphasis-color: #7c3aed;
}

Custom Mark With Position

.example {
  text-emphasis-style: "★";
  text-emphasis-color: #ca8a04;
  text-emphasis-position: under right;
}

Custom Mark Using the Shorthand

.example {
  text-emphasis: "★" #ca8a04;
}

Important Consideration

Custom emphasis strings should generally contain one character. Longer strings may be truncated or produce unexpected rendering. Use short, recognizable symbols and test their appearance with the selected font.

Automatic Emphasis Marks

The auto value lets the browser choose an emphasis mark appropriate for the writing mode and language.

Automatic Style

.example {
  text-emphasis-style: auto;
}

Automatic Style With Color

.example {
  text-emphasis-style: auto;
  text-emphasis-color: #2563eb;
}

Automatic Style in Horizontal Text

.example {
  writing-mode: horizontal-tb;
  text-emphasis-style: auto;
}

Automatic Style in Vertical Text

.example {
  writing-mode: vertical-rl;
  text-emphasis-style: auto;
}

Automatic Versus Explicit Shapes

.automatic {
  text-emphasis-style: auto;
}
.explicit {
  text-emphasis-style: filled sesame;
}

The automatic example leaves the mark selection to the browser, while the explicit example requests a filled sesame shape.

Important Consideration

Use an explicit named shape when a consistent mark type is important. Automatic selection may differ between browsers or writing contexts.

Color and Position

The mark style, color, and position are controlled by separate CSS properties.

Setting the Style

.example {
  text-emphasis-style: filled dot;
}

Setting the Color

.example {
  text-emphasis-style: filled dot;
  text-emphasis-color: #2563eb;
}

Setting the Position

.example {
  text-emphasis-style: filled dot;
  text-emphasis-color: #2563eb;
  text-emphasis-position: under right;
}

Using currentColor

.example {
  color: #059669;
  text-emphasis-style: open circle;
  text-emphasis-color: currentColor;
}

The marks match the element's text color.

Vertical Writing

.example {
  writing-mode: vertical-rl;
  text-emphasis-style: filled sesame;
  text-emphasis-color: #dc2626;
  text-emphasis-position: over right;
}

The red sesame marks appear beside the vertical characters.

Important Consideration

Changing the style does not change the color or position. Each property can be adjusted independently.

Using the text-emphasis Shorthand

The text-emphasis shorthand combines text-emphasis-style and text-emphasis-color.

Longhand Declarations

.example {
  text-emphasis-style: filled dot;
  text-emphasis-color: #2563eb;
}

Equivalent Shorthand

.example {
  text-emphasis: filled dot #2563eb;
}

Open Circle Shorthand

.example {
  text-emphasis: open circle #059669;
}

Custom Mark Shorthand

.example {
  text-emphasis: "★" #ca8a04;
}

Style-Only Shorthand

.example {
  text-emphasis: filled triangle;
}

The color is reset to currentColor.

Color-Only Shorthand

.example {
  text-emphasis: #dc2626;
}

The style is reset to none, so no marks appear.

Shorthand Reset Behavior

.example {
  text-emphasis-style: filled dot;
  text-emphasis-color: blue;
  text-emphasis: open circle;
}

The final declaration changes the style to open circle and resets the color to currentColor.

Position Is Separate

.example {
  text-emphasis: filled dot #2563eb;
  text-emphasis-position: under right;
}

The shorthand does not include or reset text-emphasis-position.

Inheritance

The text-emphasis-style property is inherited. Descendant text normally uses its parent's emphasis style unless another value is specified.

Inherited Emphasis Style

.parent {
  text-emphasis-style: filled dot;
}

Descendant text can inherit the filled dot emphasis style.

Overriding the Style

.parent {
  text-emphasis-style: filled dot;
}
.parent .child {
  text-emphasis-style: open circle;
}

The child uses outlined circles instead of filled dots.

Explicit Inheritance

.child {
  text-emphasis-style: inherit;
}

Restoring the Initial Value

.child {
  text-emphasis-style: initial;
}

This restores none and removes the marks.

Using unset

.child {
  text-emphasis-style: unset;
}

Because the property is inherited, unset uses the parent's computed value.

Removing Inherited Marks

.child {
  text-emphasis-style: none;
}

This removes the emphasis marks from the child without changing its inherited color or position properties.

Practical Examples

Filled Dot Emphasis

.important-text {
  text-emphasis-style: filled dot;
}

Displays filled dots alongside eligible characters.

Open Circle Emphasis

.highlighted-text {
  text-emphasis-style: open circle;
}

Displays outlined circular marks.

Double-Circle Emphasis

.special-text {
  text-emphasis-style: filled double-circle;
}

Triangle Emphasis

.warning-text {
  text-emphasis-style: filled triangle;
}

Sesame Emphasis

.japanese-text {
  text-emphasis-style: filled sesame;
}

Custom Star Emphasis

.featured-text {
  text-emphasis-style: "★";
}

Automatic Emphasis

.automatic-text {
  text-emphasis-style: auto;
}

Colored Emphasis

.colored-text {
  text-emphasis-style: filled dot;
  text-emphasis-color: #2563eb;
}

Emphasis Below Text

.under-emphasis {
  text-emphasis-style: open circle;
  text-emphasis-position: under right;
}

Vertical Text Emphasis

.vertical-emphasis {
  writing-mode: vertical-rl;
  text-emphasis-style: filled sesame;
  text-emphasis-position: over right;
}

Removing Emphasis

.no-emphasis {
  text-emphasis-style: none;
}

text-emphasis-style Example

This example compares the five named emphasis shapes and a custom star mark. Each sample uses the same Japanese text so the different mark styles are easy to compare.

HTML Example

<div class="emphasis-style-demo" lang="ja">
  <div class="emphasis-sample">
    <strong>Filled Dot</strong>
    <p class="style-dot">重要な文章</p>
  </div>
  <div class="emphasis-sample">
    <strong>Open Circle</strong>
    <p class="style-circle">重要な文章</p>
  </div>
  <div class="emphasis-sample">
    <strong>Double-Circle</strong>
    <p class="style-double">重要な文章</p>
  </div>
  <div class="emphasis-sample">
    <strong>Filled Triangle</strong>
    <p class="style-triangle">重要な文章</p>
  </div>
  <div class="emphasis-sample">
    <strong>Filled Sesame</strong>
    <p class="style-sesame">重要な文章</p>
  </div>
  <div class="emphasis-sample">
    <strong>Custom Star</strong>
    <p class="style-star">重要な文章</p>
  </div>
</div>

CSS Example

.emphasis-style-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.emphasis-style-demo .emphasis-sample {
  padding: 18px 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.emphasis-style-demo strong {
  display: block;
  margin-bottom: 18px;
  color: #334155;
  font-size: 14px;
}
.emphasis-style-demo p {
  margin: 0;
  padding-top: 10px;
  color: #1f2937;
  font-size: 26px;
  line-height: 2;
  text-emphasis-color: #2563eb;
  text-emphasis-position: over right;
}
.emphasis-style-demo .style-dot {
  text-emphasis-style: filled dot;
}
.emphasis-style-demo .style-circle {
  text-emphasis-style: open circle;
}
.emphasis-style-demo .style-double {
  text-emphasis-style: filled double-circle;
}
.emphasis-style-demo .style-triangle {
  text-emphasis-style: filled triangle;
}
.emphasis-style-demo .style-sesame {
  text-emphasis-style: filled sesame;
}
.emphasis-style-demo .style-star {
  text-emphasis-style: "★";
}
Browser Result
Filled Dot

重要な文章

Open Circle

重要な文章

Double-Circle

重要な文章

Filled Triangle

重要な文章

Filled Sesame

重要な文章

Custom Star

重要な文章

Comparing the Results

Value Expected Appearance
filled dot Small filled dots above eligible characters.
open circle Outlined circular marks.
filled double-circle Double-circle marks.
filled triangle Filled triangular marks.
filled sesame Sesame-shaped marks.
"★" Custom star marks.

Changing the Mark Color

.emphasis-style-demo p {
  text-emphasis-color: #dc2626;
}

All marks become red without changing their shapes.

Changing the Mark Position

.emphasis-style-demo p {
  text-emphasis-position: under right;
}

The marks move beneath the horizontal text.

Using Open Shapes

.emphasis-style-demo .style-dot {
  text-emphasis-style: open dot;
}
.emphasis-style-demo .style-triangle {
  text-emphasis-style: open triangle;
}

The dot and triangle samples change to their outlined versions.

Accessibility Considerations

Text emphasis marks are visual decorations and should not be the only method used to communicate important information.

Do Not Rely on Marks Alone

Use clear wording or semantic HTML when emphasis communicates meaning.

Choose Recognizable Shapes

Use marks that remain distinguishable at normal text sizes.

Avoid Excessive Decoration

Applying emphasis marks to large amounts of text can make reading more difficult.

Maintain Color Contrast

Choose emphasis colors that remain visible against the background.

Test Custom Symbols

Custom marks may render differently depending on font availability and browser behavior.

Support Different Writing Modes

Verify that marks remain visible and correctly positioned in horizontal and vertical writing.

Use Language Attributes

Specify the appropriate HTML lang attribute for multilingual text.

Do Not Assume Screen Readers Announce Marks

Emphasis marks are not a reliable source of spoken information. Important meaning should be included in the text itself.

Consider Zoom and Text Scaling

Test that emphasis marks remain readable when users enlarge text or zoom the page.

Common Mistakes

Using Font Weight Values

.example {
  text-emphasis-style: bold;
}

Use font-weight to control bold text.

Using Text Decoration Values

.example {
  text-emphasis-style: underline;
}

Use text-decoration for underlines.

Using Color Values

.example {
  text-emphasis-style: red;
}

Use text-emphasis-color to control mark color.

Using Conflicting Fill Keywords

.example {
  text-emphasis-style: filled open circle;
}

Choose either filled or open.

Combining Multiple Shapes

.example {
  text-emphasis-style: dot triangle;
}

Only one named shape can be specified.

Using an Unquoted Custom Symbol

.example {
  text-emphasis-style: ★;
}

Custom marks must be enclosed in quotation marks.

Correct Custom Symbol

.example {
  text-emphasis-style: "★";
}

Combining a Custom String With Fill Keywords

.example {
  text-emphasis-style: filled "★";
}

The fill keywords cannot be combined with custom strings.

Expecting Style to Change Position

Use text-emphasis-position to move marks above, below, or beside text.

Expecting Style to Change Color

Use text-emphasis-color to control mark color.

Expecting Marks on Spaces

Emphasis marks are not normally drawn over spaces or certain punctuation characters.

Expecting Identical Rendering Everywhere

Browser and font differences can affect the appearance of emphasis marks.

Important Considerations

Keep the following points in mind when using text-emphasis-style:

  • The property controls the shape or character used for emphasis marks.
  • The initial value is none.
  • The property is inherited.
  • Emphasis marks appear alongside eligible text characters.
  • The property supports five named shapes.
  • Named shapes include dot, circle, double-circle, triangle, and sesame.
  • Named shapes can use filled or open.
  • The default fill for named shapes is filled.
  • The fill keyword can appear before or after the shape keyword.
  • A fill keyword can be used without an explicit shape.
  • The auto value lets the browser select a mark.
  • Custom marks can be specified using quoted strings.
  • Custom strings should generally contain one character.
  • Fill keywords cannot be combined with custom strings.
  • The property does not control mark color.
  • Use text-emphasis-color for mark colors.
  • The property does not control mark position.
  • Use text-emphasis-position for placement.
  • The property is part of the text-emphasis shorthand.
  • The shorthand combines style and color but not position.
  • Emphasis marks are commonly used in East Asian typography.
  • Marks are not normally displayed over spaces or certain punctuation.
  • Mark appearance can vary between browsers and fonts.
  • Style changes use discrete animation behavior.
  • Emphasis marks do not change the underlying text content.
  • Emphasis marks do not normally change line box dimensions.
  • Test custom marks for spacing and readability.
  • Use appropriate language attributes and writing modes.
  • Do not rely on visual emphasis alone to communicate essential meaning.

Browser Support

The CSS text-emphasis-style property is widely available in modern browsers, including Chrome, Edge, Firefox, and Safari.

Current major browsers support named emphasis shapes and custom string marks. The exact appearance may vary depending on browser rendering and font availability.

For current compatibility information, visit Can I Use? and search for text-emphasis-style.

Basic Compatibility

.example {
  text-emphasis-style: filled dot;
}

Filled dot emphasis is supported in current major browsers.

Custom Mark Compatibility

.example {
  text-emphasis-style: "★";
}

Custom string emphasis marks are supported in modern browsers, although their appearance depends on font support.

Feature Detection

@supports (text-emphasis-style: filled dot) {
  .example {
    text-emphasis-style: filled dot;
  }
}

This checks whether the browser recognizes the specified emphasis style.

Fallback Example

.example {
  font-weight: bold;
}
@supports (text-emphasis-style: filled dot) {
  .example {
    font-weight: normal;
    text-emphasis-style: filled dot;
  }
}

Browsers without support retain bold text, while supporting browsers display emphasis dots.

Testing Recommendations

Test named shapes, custom symbols, and writing modes with the fonts used on the page. Check that marks remain visible at different text sizes.

Specifications

The text-emphasis-style property is defined in the CSS Text Decoration Module Level 3 specification.

CSS Text Decoration Module Level 3 - text-emphasis-style Property

The specification defines the supported emphasis mark shapes, fill options, and custom string behavior.

For additional documentation and examples, consult MDN Web Docs.

MDN Web Docs: text-emphasis-style