Closed Bug 2044602 Opened 3 months ago Closed 2 months ago

[css-text-decor-4] Allow percentages in `text-decoration-inset`

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: boris)

References

(Blocks 4 open bugs)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

A resolution was made for csswg-drafts/#8403.

[css-text-decor-4] Allow percentages in `text-decoration-inset`

  • RESOLVED: add %s, and they resolve on either sum of segments or individual segments depending on b-d-b

Discussion.

Keywords: dev-doc-needed
Assignee: nobody → boris.chiou

So I guess the resolution makes the syntax of text-decoration-inset as

<length-percentage>{1,2} | auto 

Extend <length> to <length-percentage>, and resolve the percentage part depending on box-decoration-break property.

We add an extra preference,
layout.css.text-decoration-inset-percentage.enabled, for the support of
percentage. This patch only implements the syntax and parsing. We still
have to resolve the percentage part in the following patches.

Also, add the missing parsing tests in WPT.

We resolve the percentage based on the resolutino of the spec issue [1].

Per the spec issue, if we specify box-decoration-break:slice, we have to
use the total length of all breaks as the basis. If the property value
is clone, each fragment is considered individually.

[1] https://github.com/w3c/csswg-drafts/issues/8403

Attachment #9601585 - Attachment description: Bug 2044602 - Resolve the percentage value of text-decoration-text. → Bug 2044602 - Resolve the percentage value of text-decoration-inset.
Blocks: 2050962
Pushed by bchiou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/782d5f393d77 https://hg.mozilla.org/integration/autoland/rev/d1d225400bfc Parse <lenght-percentage> for text-decoration-inset. r=firefox-style-system-reviewers,layout-reviewers,emilio https://github.com/mozilla-firefox/firefox/commit/f50d8fe9e4ca https://hg.mozilla.org/integration/autoland/rev/136735908f74 Resolve the percentage value of text-decoration-inset. r=layout-reviewers,emilio

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60940 for changes under testing/web-platform/tests

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c155/b154]

Related pull requests

It seems there wasn't an Intent to Prototype or Ship sent out for the general support of text-decoration-inset, nor a standards position for it.

Maybe there should be one sent out now?

Also note that Google just sent out their Intent to Ship (including percentages).

Sebastian

Flags: needinfo?(boris.chiou)

(In reply to Sebastian Zartner [:sebo] from comment #9)

It seems there wasn't an Intent to Prototype or Ship sent out for the general support of text-decoration-inset, nor a standards position for it.

Maybe there should be one sent out now?

Also note that Google just sent out their Intent to Ship (including percentages).

Sebastian

Just sent out. Thanks for the reminder.
https://groups.google.com/a/mozilla.org/g/dev-platform/c/pMeTxjoOx1o

Flags: needinfo?(boris.chiou)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: