Closed Bug 1868661 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 43543 - Missing ::first-letter style update for size queries

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
122 Branch
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

Component: web-platform-tests → Layout
Product: Testing → Core

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b82a9afcafd [wpt PR 43543] - Missing ::first-letter style update for size queries, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.