[wpt-sync] Sync PR 43543 - Missing ::first-letter style update for size queries
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 43543 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/43543
Details from upstream follow.
Rune Lillesveen <futhark@chromium.org> wrote:
Missing ::first-letter style update for size queries
Style for ::first-letter pseudo elements are updated as late as possible
to allow nodes to re-attach to make sure any first-letter text node
changes are included when computing style for the first rendered letter.When the StyleRecalcChange were already marked for ReattachLayoutTree()
when reaching the ::first-letter update, we assumed some ancestor of the
::first-letter element would be re-attached, and the ::first-letter
style being updated in Element::AttachLayoutTree() for the originating
element. But, if the originating element was a size container, and we
skipped style recalc for its descendants, we would mark the stored
StyleRecalcChange for re-attachment of the children when resuming, even
if the originating element itself would be re-attached.Instead, check that we also did not suppress style recalc for the
originating element for the ::first-letter before skipping its style
update during style recalc.Bug: 1505250
Change-Id: I8d45c219e0d8c2a2d8ab6e0ec6149d9f34366fad
Reviewed-on: https://chromium-review.googlesource.com/5097303
WPT-Export-Revision: 49d61e819d86b9143706f504575cb844839dfb17
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•