[wpt-sync] Sync PR 64668 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329793
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64668 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64668
Details from upstream follow.
Antti Koivisto <antti@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329793
WebKit export from bug: [<!---->layout box merge]<!----> Remove the anonymous inline wrappers around display:<!----> contents text
<pre>
[layout box merge] Remove the anonymous inline wrappers around display: contents textA text box with a display:contents DOM parent was wrapped in an anonymous inline
box so it could have a unique style. Text boxes now carry a style separately
from the parent element so this is no longer necessary.This patch removes the wrapping. This is observable in some very specific cases
where the wrapper acted as an inline box. The new behavior aligns us with the
css-inline-3 spec and Firefox:
- The line-height of a display:contents element no longer applies to its text.
The line-height of the parent box does.- The font of the text stretches the line like a fallback font, only when the
line-height of the parent box is normal.- In quirks mode the text is content of the parent box, so the line height of
the parent box still applies.In SVG, text in a display:contents tspan is now shifted with the baseline-shift
of the parent box, following css-display-3.Inline layout handles text whose style differs from its parent box. The text
sits on the baseline of its parent inline box and its run rect uses its own font
metrics. Wrapping and ink overflow use the text style. The text only fast paths
take the text style from the root and its inline boxes, so content with such
text doesn't use them. SVG layout and painting take the inherited properties
from the text and baseline-shift, alignment-baseline, outline and vector-effect
from the parent box.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329793">https://bugs.webkit.org/show_bug.cgi?id=329793</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/325558@main">https://commits.webkit.org/325558@main</a>
</pre>
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Comment 1•18 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=120008
| Assignee | ||
Comment 2•18 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 264 tests
Status Summary
Firefox
OK : 1[GitHub] 39[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 5[GitHub] 479[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 620[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 621[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 2[GitHub] 94[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 174[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 175[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 3
FAIL: 4
Safari
OK : 1
PASS: 3
FAIL: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
New Tests That Don't Pass
- /css/css-display/display-contents-focusable-001.html [wpt.fyi]
- element with display:contents is focusable:
FAIL
- element with display:contents is focusable:
- /css/css-display/display-math-on-non-mathml-elements.html [wpt.fyi]
- computed display on <div style="display: math;">:
FAIL - computed display on <div style="display: inline math;">:
FAIL - computed display on <div style="display: math inline;">:
FAIL - computed display on <svg style="display: block math;">:
FAIL - computed display on <svg style="display: math block;">:
FAIL
- computed display on <div style="display: math;">:
- /css/css-display/display-math-on-pseudo-elements-001.html [wpt.fyi]
- computed display on ::before and ::after for <div class="block">:
FAIL - computed display on ::before and ::after for <math class="block">:
FAIL - computed display on ::before and ::after for <mrow class="block">:
FAIL
- computed display on ::before and ::after for <div class="block">:
- /css/css-display/focus/display-contents-focus.html [wpt.fyi]
- button with display: contents is focusable:
FAIL - div with role button, tabindex=0 and display: contents is focusable:
FAIL - div with role button, tabindex=-1 and display: contents is focusable:
FAIL - link with display: contents is focusable:
FAIL - span with role link, tabindex=0 and display: contents is focusable:
FAIL
- button with display: contents is focusable:
- /css/css-display/parsing/display-computed.html [wpt.fyi]
- Property display value 'run-in':
FAIL - Property display value 'run-in flow':
FAIL - Property display value 'flow run-in':
FAIL - Property display value 'flow-root run-in':
FAIL - Property display value 'run-in flow-root':
FAIL - Property display value 'flex run-in':
FAIL - Property display value 'run-in flex':
FAIL - Property display value 'grid run-in':
FAIL - Property display value 'run-in grid':
FAIL - Property display value 'table run-in':
FAIL - Property display value 'run-in table':
FAIL - Property display value 'run-in ruby':
FAIL - Property display value 'ruby run-in':
FAIL - Property display value 'run-in list-item':
FAIL - Property display value 'list-item run-in':
FAIL - Property display value 'flow run-in list-item':
FAIL - Property display value 'run-in flow list-item':
FAIL - Property display value 'flow list-item run-in':
FAIL - Property display value 'run-in list-item flow':
FAIL - Property display value 'list-item run-in flow':
FAIL - Property display value 'list-item flow run-in':
FAIL - Property display value 'flow-root run-in list-item':
FAIL - Property display value 'run-in flow-root list-item':
FAIL - Property display value 'flow-root list-item run-in':
FAIL - Property display value 'run-in list-item flow-root':
FAIL - Property display value 'list-item run-in flow-root':
FAIL - Property display value 'list-item flow-root run-in':
FAIL
- Property display value 'run-in':
- /css/css-display/parsing/display-valid.html [wpt.fyi]
- e.style['display'] = "run-in" should set the property value:
FAIL - e.style['display'] = "run-in flow" should set the property value:
FAIL - e.style['display'] = "flow run-in" should set the property value:
FAIL - e.style['display'] = "flow-root run-in" should set the property value:
FAIL - e.style['display'] = "run-in flow-root" should set the property value:
FAIL - e.style['display'] = "flex run-in" should set the property value:
FAIL - e.style['display'] = "run-in flex" should set the property value:
FAIL - e.style['display'] = "grid run-in" should set the property value:
FAIL - e.style['display'] = "run-in grid" should set the property value:
FAIL - e.style['display'] = "table run-in" should set the property value:
FAIL - e.style['display'] = "run-in table" should set the property value:
FAIL - e.style['display'] = "run-in ruby" should set the property value:
FAIL - e.style['display'] = "ruby run-in" should set the property value:
FAIL - e.style['display'] = "run-in list-item" should set the property value:
FAIL - e.style['display'] = "list-item run-in" should set the property value:
FAIL - e.style['display'] = "flow run-in list-item" should set the property value:
FAIL - e.style['display'] = "run-in flow list-item" should set the property value:
FAIL - e.style['display'] = "flow list-item run-in" should set the property value:
FAIL - e.style['display'] = "run-in list-item flow" should set the property value:
FAIL - e.style['display'] = "list-item run-in flow" should set the property value:
FAIL - e.style['display'] = "list-item flow run-in" should set the property value:
FAIL - e.style['display'] = "flow-root run-in list-item" should set the property value:
FAIL - e.style['display'] = "run-in flow-root list-item" should set the property value:
FAIL - e.style['display'] = "flow-root list-item run-in" should set the property value:
FAIL - e.style['display'] = "run-in list-item flow-root" should set the property value:
FAIL - e.style['display'] = "list-item run-in flow-root" should set the property value:
FAIL - e.style['display'] = "list-item flow-root run-in" should set the property value:
FAIL
- e.style['display'] = "run-in" should set the property value:
- /css/css-display/parsing/tentative/display-computed.html [wpt.fyi]
- Property display value 'inline grid-lanes':
FAIL - Property display value 'grid-lanes inline':
FAIL
- Property display value 'inline grid-lanes':
- /css/css-display/parsing/tentative/display-valid.html [wpt.fyi]
- e.style['display'] = "inline grid-lanes" should set the property value:
FAIL - e.style['display'] = "grid-lanes inline" should set the property value:
FAIL
- e.style['display'] = "inline grid-lanes" should set the property value:
- /css/css-display/reading-flow/reading-flow-computed.html [wpt.fyi]
- Property reading-flow value 'normal':
FAIL - Property reading-flow value 'flex-visual':
FAIL - Property reading-flow value 'flex-flow':
FAIL - Property reading-flow value 'grid-rows':
FAIL - Property reading-flow value 'grid-columns':
FAIL - Property reading-flow value 'grid-order':
FAIL - Property reading-flow value 'source-order':
FAIL
- Property reading-flow value 'normal':
- /css/css-display/reading-flow/reading-flow-valid.html [wpt.fyi]
- e.style['reading-flow'] = "normal" should set the property value:
FAIL - e.style['reading-flow'] = "flex-visual" should set the property value:
FAIL - e.style['reading-flow'] = "flex-flow" should set the property value:
FAIL - e.style['reading-flow'] = "grid-rows" should set the property value:
FAIL - e.style['reading-flow'] = "grid-columns" should set the property value:
FAIL - e.style['reading-flow'] = "grid-order" should set the property value:
FAIL - e.style['reading-flow'] = "source-order" should set the property value:
FAIL
- e.style['reading-flow'] = "normal" should set the property value:
- /css/css-display/reading-flow/reading-order-computed.html [wpt.fyi]
- Property reading-order value '-1':
FAIL - Property reading-order value '0':
FAIL - Property reading-order value '34':
FAIL - Property reading-order value 'calc(34.1)':
FAIL
- Property reading-order value '-1':
- /css/css-display/reading-flow/reading-order-valid.html [wpt.fyi]
- e.style['reading-order'] = "0" should set the property value:
FAIL - e.style['reading-order'] = "123" should set the property value:
FAIL - e.style['reading-order'] = "-45" should set the property value:
FAIL - e.style['reading-order'] = "calc(34.1)" should set the property value:
FAIL
- e.style['reading-order'] = "0" should set the property value:
- /css/css-display/display-contents-before-after-002.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-before-after-003.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-dynamic-before-after-001.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-dynamic-before-after-first-letter-001.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-first-letter-002.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-first-line-001.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-line-height.html [wpt.fyi]:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-display/display-contents-svg-elements.html [wpt.fyi]:
FAIL - /css/css-display/display-contents-svg-tspan-baseline-shift.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS) - /css/css-display/display-contents-svg-tspan-text-fill.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-display/display-math-on-pseudo-elements-002.html [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-abspos-between-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-abspos-between-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-004.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-005.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-006.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-007.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-008.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-009.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-010.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-011.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-012.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-013.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-basic-018.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-block-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-breaking-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-breaking-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-clear-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-clear-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-abspos-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-block-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-block-005.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-block-inside-inline-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-float-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-004.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-005.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-006.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-007.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-block-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-inline-table-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-relpos-block-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-run-in-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-caption-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-cell-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-column-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-column-group-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-inside-inline-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-row-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-contains-table-row-group-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-display-none-between-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-display-none-between-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-fixedpos-between-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-fixedpos-between-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-float-between-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-float-between-002.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-inherit-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-inline-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-inline-block-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-inline-table-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-listitem-between-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-listitem-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-relpos-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-replaced-001.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-restyle-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-run-in-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-run-in-between-004.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-run-in-between-005.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-run-in-between-006.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-run-in-between-007.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-table-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-table-cell-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-table-row-between-003.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-text-between-004.xht [wpt.fyi]:
FAIL - /css/css-display/run-in/run-in-text-between-005.xht [wpt.fyi]:
FAIL
Comment 4•14 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ccfbef2b9513
https://hg.mozilla.org/mozilla-central/rev/d76ed7377c26
Description
•