[wpt-sync] Sync PR 64187 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321117
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64187 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64187
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321117
WebKit export from bug: [<!---->block-<!---->in-<!---->inline]<!----> Nested inline boxes around a block level box are stretched by their nesting depth
<pre>
[block-in-inline] Nested inline boxes around a block level box are stretched by their nesting depthAn InlineLevelBox's logical top is stored relative to its parent inline box - LineBox::inlineLevelBoxAbsoluteTop
walks the ancestor chain adding each one up. LineBoxBuilder::constructBlockContent was assigning the same
absolute value to every line spanning inline box around the block:lineSpanningInlineBox.setLogicalTop(blockGeometry.marginBefore());so the offset was counted once per nesting level. With a 16px offset, three levels of inline boxes ended up at
16, 32 and 48, and the innermost one was stretched past its own content - taller than the box containing it,
which cannot be right.Only the outermost spanning box may carry that offset; the nested ones are already positioned relative to it.
The positions of the content were always correct - this is purely the inline boxes' reported bounds, which
linesBoundingBox() exposes to the render tree dump, to getBoundingClientRect() and to getClientRects().WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=321117">https://bugs.webkit.org/show_bug.cgi?id=321117</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/318704@main">https://commits.webkit.org/318704@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=111676
| Assignee | ||
Comment 2•26 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 816 tests and 2 subtests
Status Summary
Firefox
OK : 1[GitHub] 25[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: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 96[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 875[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 877[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] 880[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 2[GitHub] 28[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 33[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 36[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] 38[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 2
FAIL: 2
Safari
OK : 1
PASS: 2
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/CSS2/normal-flow/block-replaced-height-002.xht [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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/CSS2/normal-flow/inline-block-replaced-height-002.xht [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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/CSS2/normal-flow/inline-replaced-height-002.xht [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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/CSS2/normal-flow/inlines-017.xht [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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/CSS2/normal-flow/margin-collapse-through-percentage-height-block-inside-table-cell.html [wpt.fyi]:
FAIL - /css/CSS2/normal-flow/margin-collapse-through-percentage-height-block.html [wpt.fyi]:
FAIL - /css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html [wpt.fyi]:
FAIL - /css/CSS2/normal-flow/max-height-applies-to-012.xht [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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] - /css/CSS2/normal-flow/max-width-applies-to-012.xht [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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] - /css/CSS2/normal-flow/min-height-applies-to-012.xht [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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] - /css/CSS2/normal-flow/min-width-applies-to-012.xht [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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] - /css/CSS2/normal-flow/overflow-scroll-paint-order.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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/CSS2/normal-flow/replaced-intrinsic-001.xht [wpt.fyi]:
FAIL - /css/CSS2/normal-flow/replaced-intrinsic-002.xht [wpt.fyi]:
FAIL - /css/CSS2/normal-flow/width-applies-to-012.xht [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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] - /css/CSS2/normal-flow/auto-margins-root-element.html [wpt.fyi]
- Root element auto margins resolve:
FAIL
- Root element auto margins resolve:
- /css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html [wpt.fyi]
- .box 1:
FAIL - .box 2:
FAIL[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[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] - .box 3:
FAIL - .box 4:
FAIL - .box 5:
FAIL[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[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] - .box 6:
FAIL
- .box 1:
- /css/CSS2/normal-flow/margin-collapse-through-for-various-height-values.tentative.html [wpt.fyi]
- {"height":"1%","parentHeight":"auto"}:
FAIL - {"height":"1%","parentHeight":"0px"}:
FAIL - {"height":"calc(0px + 1%)","parentHeight":"auto"}:
FAIL - {"height":"calc(0px + 1%)","parentHeight":"0px"}:
FAIL - {"height":"calc(1px + 0%)","parentHeight":"auto"}:
FAIL - {"height":"calc(1px + 1%)","parentHeight":"auto"}:
FAIL - {"minHeight":"1%","parentHeight":"auto"}:
FAIL - {"minHeight":"1%","parentHeight":"0px"}:
FAIL - {"minHeight":"calc(0px + 1%)","parentHeight":"auto"}:
FAIL - {"minHeight":"calc(0px + 1%)","parentHeight":"0px"}:
FAIL - {"minHeight":"calc(1px + 0%)","parentHeight":"auto"}:
FAIL - {"minHeight":"calc(1px + 1%)","parentHeight":"auto"}:
FAIL - {"height":"1px","maxHeight":"0px"}:
FAIL - {"height":"1px","maxHeight":"0%","parentHeight":"0px"}:
FAIL - {"height":"1px","maxHeight":"0%","parentHeight":"100px"}:
FAIL - {"height":"1px","maxHeight":"1%","parentHeight":"0px"}:
FAIL - {"height":"1px","maxHeight":"calc(0px + 0%)","parentHeight":"0px"}:
FAIL - {"height":"1px","maxHeight":"calc(0px + 0%)","parentHeight":"100px"}:
FAIL - {"height":"1px","maxHeight":"calc(0px + 1%)","parentHeight":"0px"}:
FAIL
- {"height":"1%","parentHeight":"auto"}:
- /css/CSS2/normal-flow/nested-inline-boxes-around-block-in-inline-001.html [wpt.fyi]
- An inline box around a block level box bounds exactly its content:
FAIL(Chrome:FAIL, Safari:FAIL) - A block level box nested in inline boxes is positioned by its margin:
FAIL(Chrome:FAIL, Safari:FAIL)
- An inline box around a block level box bounds exactly its content:
Comment 4•18 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d0e83d34bdc1
https://hg.mozilla.org/mozilla-central/rev/d5c01e949a6a
Description
•