Skip to content

Fix description for percentage basis for text-decoration-inset in Firefox 154 release notes - #45261

Merged
pepelsbey merged 3 commits into
mdn:mainfrom
Radhikarathi04:fix/45254-text-decoration-inset-percentage
Sep 14, 2026
Merged

pepelsbey merged 3 commits into
mdn:mainfrom
Radhikarathi04:fix/45254-text-decoration-inset-percentage

Conversation

@Radhikarathi04

@Radhikarathi04 Radhikarathi04 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Description

Corrects the description for percentage basis for text-decoration-inset — from font-size to inline size — on the Firefox 154 release notes and experimental features pages.

Motivation

Both pages state that percentages resolve against the font-size. They don't. Per css-text-decor-4, percentages refer to the inline size of the decorating box, or of each individual box fragment, depending on the value of box-decoration-break.

As written, a reader would expect 10% on 20px text to inset the decoration by 2px, when it actually resolves against the inline size of the box — a substantially different result.

Additional details

This matches the Gecko implementation in bug 2044602, which resolves the percentage against the total inline size of the decorating box for box-decoration-break: slice, or each fragment individually for clone.

The wording follows the spec's Percentages: definition, and the underlying CSSWG resolution is csswg-drafts#8403.

The same sentence appears on both pages (added in #45027), so both are updated.

Related issues and pull requests

Fixes #45254
Relates to #44840

@Radhikarathi04
Radhikarathi04 requested a review from a team as a code owner August 20, 2026 16:26
@Radhikarathi04
Radhikarathi04 requested review from pepelsbey and removed request for a team August 20, 2026 16:26
@github-actions github-actions Bot added the Content:Firefox Content in the Mozilla/Firefox subtree label Aug 20, 2026
@Radhikarathi04 Radhikarathi04 changed the title ``` Fix percentage basis for text-decoration-inset in Firefox 154 release notes Fix percentage basis for text-decoration-inset in Firefox 154 release notes Aug 20, 2026
@github-actions github-actions Bot added the size/xs [PR only] 0-5 LoC changed label Aug 20, 2026
@Radhikarathi04 Radhikarathi04 changed the title Fix percentage basis for text-decoration-inset in Firefox 154 release notes Fix description for percentage basis for text-decoration-inset in Firefox 154 release notes Aug 20, 2026
@Josh-Cena
Josh-Cena requested a review from dletorey September 14, 2026 08:22
@github-actions

Copy link
Copy Markdown
Contributor

Preview URLs (2 pages)

External URLs (2)

URL: /en-US/docs/Mozilla/Firefox/Experimental_features
Title: Experimental features in Firefox


URL: /en-US/docs/Mozilla/Firefox/Releases/154
Title: Firefox 154 release notes for developers

@pepelsbey
pepelsbey merged commit 27ab6da into mdn:main Sep 14, 2026
9 checks passed
@pepelsbey

Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect description of percentages in text-decoration-inset

4 participants