Intent to prototype: support percentage value for text-decoration-inset

122 views
Skip to first unread message

Boris Chiou

unread,
Aug 25, 2026, 6:31:14 PMAug 25
to dev-pl...@mozilla.org

Summary:
Per this spec issue, csswg-draft#8403, we'd like to extend the syntax of text-decoration-inset to support <length-percentage> value, instead of <length>. This property is already implemented, but previously only supported length values. Per the resolution of this spec issue, we now intend to support percentage values as well.

The percentage basis depends on box-decoration-break. If we specify box-decoration-break:slice, we have to use the total length of all breaks as the basis. If its value is clone, each fragment is considered individually.

Bug: Bug 2044602

Specification:
https://drafts.csswg.org/css-text-decor-4/#text-decoration-inset-property

Standards Body: CSSWG / W3C

Platform Coverage: All.

Preference: layout.css.text-decoration-inset-percentage.enabled

DevTools Bug: N/A

Extensions Bug: N/A

Use Counter: css_text_decoration_inset

Standards-Positions Discussion:
There is no standards positions discussion because the spec resolution has been merged, and I believe the solution is uncontroversial and the Layout team agrees with this update.

Other Browsers:
- Blink: intent to ship email
- WebKit: Not implemented yet. See WebKit Bug 322441 for more details.

web-platform-tests:
parsing: css/css-text-decor/parsing/text-decoration-inset-*.html
rendering: css/css-text-decor/text-decoration-inset-{026|027|028|029|030}.html


一丝

unread,
Sep 1, 2026, 3:29:09 AMSep 1
to dev-pl...@mozilla.org, bch...@mozilla.com

WebKit implemented this feature a few days ago and added more test cases.
https://github.com/WebKit/WebKit/pull/72610

Reply all
Reply to author
Forward
0 new messages