[wpt-sync] Sync PR 62935 - [html-in-canvas] Handle display:contents children
Categories
(Core :: Graphics: Canvas2D, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
71.00 KB,
text/plain
|
Details |
Sync web-platform-tests PR 62935 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62935
Details from upstream follow.
Philip Rogers <pdr@chromium.org> wrote:
[html-in-canvas] Handle display:contents children
Previously, display:contents children of a content=drawable \<canvas>
were not skipped when finding the layout parent, could attach non-box or
pseudo-element children (such as anonymous inline wrappers for text)
directly to LayoutHTMLCanvas and crash, and did not invalidate
descendant styles when toggling display:contents.This change:
- Restricts LayoutHTMLCanvas children to non-pseudo Element boxes for
now (with crbug.com/564820084 tracking pseudo-element support).- Replaces FlatTreeTraversal::ParentElementSkippingSlots with
LayoutTreeBuilderTraversal::LayoutParentElement (for layout parent
checks) and FlatTreeTraversal::ParentElement (for ancestor walks).- Tracks IsContentDrawableCanvasChild on ComputedStyle so toggling
display:contents under a canvas recalculates descendant styles.Fixed: 563038957
Change-Id: I54708243b4ae065d750dcf1a8343307c5286c1c9
Reviewed-on: https://chromium-review.googlesource.com/8421823
WPT-Export-Revision: cd1164d8861cfce3589eb2e6f232f413cbefc1e9
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99073
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 4 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 138 tests and 6 subtests
Status Summary
Firefox
OK : 1[GitHub] 127[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 12
FAIL : 2[GitHub] 227[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 8
NOTRUN : 18
Chrome
OK : 1
PASS : 1
FAIL : 1
Safari
OK : 1
FAIL : 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5924e29dda42
https://hg.mozilla.org/mozilla-central/rev/36d04ae8642e
Description
•