Closed Bug 2075201 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 62935 - [html-in-canvas] Handle display:contents children

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Attached file Notable wpt changes —

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)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: