text-box + text-decoration
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox155 | --- | wontfix |
| firefox156 | --- | wontfix |
| firefox157 | --- | fixed |
People
(Reporter: nileshprajapati, Assigned: sajidanwar)
References
(Regression)
Details
(Keywords: nightly-community, regression)
Attachments
(1 external file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6.2 Safari/605.1.15
Steps to reproduce:
Codepen: https://codepen.io/editor/nileshprajapati/pen/01a0588a-d268-7c4f-a211-0c47f16f669a
- Open the Codepen link in a new window.
- When comparing Firefox and both Chrome and Safari, the underline bleeds into the second row of the heading when a text box is applied.
Actual results:
The underline adds extra spacing, causing the text to bleed into the second line of the heading.
Expected results:
When the text box is applied, the underline shouldn’t extend into the second row of the heading or cause extra spacing.
| Reporter | ||
Updated•2 months ago
|
Comment 1•2 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Block and Inline' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 months ago
|
||
Regression window:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=6424da7a24892fd1ff54b61dc734c01974def07f&tochange=4cd4c1d83fc9b0cbbd084fbfbbb849ae65308c18
Comment 3•2 months ago
|
||
And regression window with layout.css.text-box.enabled = true:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=99f729d42852b9c6e4f4a10cc8b947436f52c964&tochange=595a26350056d67ec6fc22ab4e64ed6048115c10
Comment 4•2 months ago
|
||
:sajidanwar, since you are the author of the regressor, bug 2050138, could you take a look?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 5•2 months ago
|
||
Thank you for the report! Looks like text-box-trim when applied on inline elements is shifting the inline content up but not affecting the position of the text decorations (which are in the exact same position as if text-box-trim is not applied).
I should note that this doesn't seem to be an issue if text-box-trim is on the block parent and not on the inline element that has text-decoration: https://codepen.io/editor/kbhomes/pen/01a05ae1-a817-71cf-b483-0852c9dc7e3c. I think this might slightly reduce the severity of the bug, since text-box-trim is not supported on inline elements in Chrome. I suspect the most common scenario where text-box-trim and text-decoration will overlap is going to be with trim on the block and decoration on either the block or a non-trimmed inline child.
Adding myself as needinfo until I can get a patch ready to fix this. Will need to also add WPTs for the combination of text-box-trim and text-decoration as part of that.
Comment 6•2 months ago
|
||
Compared to Chrome, the spacing between the text and the underline on each line in Firefox is significantly wider.
However, it appears that the overlap between the text on the second line and the underline on the first line has been resolved.
| Assignee | ||
Comment 7•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
Comment 10•2 months ago
|
||
Revert for causing wr failures on text-box-trim-inline-box-text-decoration-002.html.
Comment 11•2 months ago
|
||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62402 for changes under testing/web-platform/tests
Comment 13•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 14•2 months ago
|
||
The patch landed in nightly and beta is affected.
:sajidanwar, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox156towontfix.
For more information, please visit BugBot documentation.
Upstream PR merged by moz-wptsync-bot
Updated•2 months ago
|
Description
•