[wpt-sync] Sync PR 63645 - Update baseline-related tests for -webkit-line-clamp
Categories
(Core :: Layout: Block and Inline, 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 63645 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63645
Details from upstream follow.
Andreu Botella <abotella@igalia.com> wrote:
Update baseline-related tests for -webkit-line-clamp
The tests changed in this patch are all baseline alignment tests that involve
-webkit-line-clampcontainers which are sized according to their intrinsic inline sizes (because they're in grid or flex layout, or because they're atomic inlines), and which only contain atomic inlines.With the legacy implementation of
-webkit-line-clampin all mainstream browsers, characters and atomic inlines could be hid in order to place the ellipsis, but that didn't affect layout, including baselines. With the spec'd behavior of(-webkit-)line-clamp, though, removing characters and atomic inlines does affect layout.The reason the ellipsis needs to remove the atomic inline is because all of the contents of the line-clamp containers have a single atomic inline per line, and the intrinsic sizing ignores any effect the ellipsis might have (see w3c/csswg-drafts#14239). Therefore, when the ellipsis needs to be placed, it must remove content, which happens to be the atomic inline which is causing the baseline effect these tests expect.
To fix this, this patch adds a
line-clampdeclaration with theno-ellipsiskeyword, so there is no ellipsis that will result in the atomic inlines to be removed. This is added after each-webkit-line-clampdeclaration, assuming that all browsers that support-webkit-line-clampbut notline-clampwill have the legacy ellipsis behavior.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 511 tests and 12 subtests
Status Summary
Firefox
OK : 12[GitHub] 335[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: 273[GitHub] 2386[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 2542[Gecko-android-em-14-x86_64-debug-geckoview] 2544[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 2545[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 2548[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 7[GitHub] 83[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 97[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 100[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 101[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 103[Gecko-android-em-14-x86_64-debug-geckoview]
Chrome
OK : 12
PASS: 280
Safari
OK : 12
PASS: 197
FAIL: 83
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.html [wpt.fyi]
- .target > * 14:
FAIL - .target > * 18:
FAIL - .target > * 22:
FAIL
- .target > * 14:
- /css/css-inline/baseline-source/baseline-source-first-002.html [wpt.fyi]
- .target > * 19:
FAILlinked bug:Bug 1805273
- .target > * 19:
New Tests That Don't Pass
- /css/css-flexbox/alignment/flex-align-baseline-column-vert-lr-rtl-wrap-reverse.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flex-align-baseline-column-vert-rl-rtl-wrap-reverse.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flow-start-flow-end-align-properties.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flow-start-flow-end-justify-content.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flow-start-flow-end-reverse-abspos.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flow-start-flow-end-reverse.html [wpt.fyi]:
FAIL - /css/css-flexbox/alignment/flow-start-flow-end-wrap-reverse.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-baseline-align-cycles-001.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-baseline-justify-001.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-item-content-baseline-001.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-item-content-baseline-002.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-item-content-baseline-003.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-item-content-baseline-004.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/grid-item-mixed-baseline-001.html [wpt.fyi]:
FAIL - /css/css-grid/alignment/self-baseline/grid-self-baseline-horiz-007.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-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-grid/alignment/self-baseline/grid-self-baseline-vertical-lr-007.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-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-grid/alignment/self-baseline/grid-self-baseline-vertical-rl-007.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-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.html [wpt.fyi]
- .target > * 14:
FAIL(Chrome:PASS, Safari:PASS) - .target > * 15:
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-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt,GitHub] (Chrome:PASS, Safari:PASS) - .target > * 18:
FAIL(Chrome:PASS, Safari:PASS) - .target > * 19:
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-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt,GitHub] (Chrome:PASS, Safari:PASS) - .target > * 22:
FAIL(Chrome:PASS, Safari:PASS) - .target > * 23:
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-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt,GitHub] (Chrome:PASS, Safari:PASS)
- .target > * 14:
- /css/css-grid/alignment/grid-align-baseline-multicol-001.html [wpt.fyi]
- .target > * 3:
FAIL - .target > * 7:
FAIL
- .target > * 3:
- /css/css-grid/alignment/grid-align-baseline-multicol-002.html [wpt.fyi]
- .target > * 1:
FAIL - .target > * 3:
FAIL - .target > * 5:
FAIL - .target > * 7:
FAIL
- .target > * 1:
- /css/css-flexbox/alignment/flex-align-baseline-multicol-001.html [wpt.fyi]
- .target > * 3:
FAIL - .target > * 7:
FAIL
- .target > * 3:
- /css/css-grid/alignment/grid-align-baseline-multicol-003.html [wpt.fyi]
- .target > * 3:
FAIL - .target > * 7:
FAIL
- .target > * 3:
- /css/css-flexbox/alignment/flex-align-baseline-multicol-002.html [wpt.fyi]
- .target > * 1:
FAIL - .target > * 3:
FAIL - .target > * 5:
FAIL - .target > * 7:
FAIL
- .target > * 1:
- /css/css-flexbox/alignment/flex-align-baseline-multicol-003.html [wpt.fyi]
- .target > * 3:
FAIL - .target > * 7:
FAIL
- .target > * 3:
- /css/css-flexbox/alignment/flex-align-baseline-table-002.html [wpt.fyi]
- .target > * 1:
FAIL - .target > * 3:
FAIL
- .target > * 1:
- /css/css-grid/alignment/grid-align-baseline-table-002.html [wpt.fyi]
- .target > * 1:
FAIL - .target > * 3:
FAIL
- .target > * 1:
- /css/css-grid/alignment/grid-align-baseline-vertical-mixed.html [wpt.fyi]
- .grid 4:
FAIL
- .grid 4:
- /css/css-flexbox/alignment/multiline-align-self.html [wpt.fyi]
- .flexbox 21:
FAIL - .flexbox 22:
FAIL - .flexbox 23:
FAIL - .flexbox 24:
FAIL - .flexbox 29:
FAIL - .flexbox 30:
FAIL - .flexbox 31:
FAIL - .flexbox 32:
FAIL - .flexbox 37:
FAIL - .flexbox 38:
FAIL - .flexbox 39:
FAIL - .flexbox 40:
FAIL - .flexbox 45:
FAIL - .flexbox 46:
FAIL - .flexbox 47:
FAIL - .flexbox 48:
FAIL
- .flexbox 21:
- /css/css-inline/baseline-source/baseline-source-first-002.html [wpt.fyi]
- .target > * 19:
FAIL(Chrome:PASS, Safari:PASS) - .target > * 21:
FAIL(Chrome:PASS, Safari:FAIL)
- .target > * 19:
- /css/css-inline/baseline-source/baseline-source-last-002.html [wpt.fyi]
- .target > * 19:
FAIL(Chrome:PASS, Safari:FAIL) - .target > * 21:
FAIL(Chrome:PASS, Safari:FAIL)
- .target > * 19:
- /css/css-grid/alignment/grid-baseline-004.html [wpt.fyi]
- .grid, container 17:
FAIL
- .grid, container 17:
- /css/css-grid/alignment/grid-column-axis-self-baseline-synthesized-001.html [wpt.fyi]
- .grid 1:
FAIL - .grid 2:
FAIL - .grid 4:
FAIL
- .grid 1:
- /css/css-grid/alignment/grid-column-axis-self-baseline-synthesized-003.html [wpt.fyi]
- .grid 1:
FAIL - .grid 3:
FAIL
- .grid 1:
- /css/css-grid/alignment/grid-row-axis-self-baseline-synthesized-001.html [wpt.fyi]
- .grid 3:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-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[Gecko-android-em-14-x86_64-opt-geckoview] - .grid 4:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-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[Gecko-android-em-14-x86_64-opt-geckoview]
- .grid 3:
- /css/css-grid/alignment/grid-row-axis-self-baseline-synthesized-003.html [wpt.fyi]
- .grid 3:
FAIL[Gecko-android-em-14-x86_64-debug-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[Gecko-android-em-14-x86_64-lite-opt-geckoview] - .grid 4:
FAIL[Gecko-android-em-14-x86_64-debug-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[Gecko-android-em-14-x86_64-lite-opt-geckoview]
- .grid 3:
- /css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-001.html [wpt.fyi]
- .inline-grid 7:
FAIL - .inline-grid 8:
FAIL - .inline-grid 9:
FAIL - .inline-grid 10:
FAIL - .inline-grid 11:
FAIL
- .inline-grid 7:
- /css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-002.html [wpt.fyi]
- .inline-grid 1:
FAIL - .inline-grid 2:
FAIL - .inline-grid 3:
FAIL - .inline-grid 4:
FAIL - .inline-grid 5:
FAIL - .inline-grid 6:
FAIL - .inline-grid 19:
FAIL - .inline-grid 20:
FAIL - .inline-grid 21:
FAIL - .inline-grid 22:
FAIL - .inline-grid 23:
FAIL - .inline-grid 24:
FAIL
- .inline-grid 1:
- /css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-003.html [wpt.fyi]
- .grid 5:
FAIL - .grid 6:
FAIL
- .grid 5:
- /css/css-grid/alignment/self-baseline/grid-self-baseline-two-dimensional.html [wpt.fyi]
- .grid 2:
FAIL - .grid 3:
FAIL - .grid 4:
FAIL - .grid 5:
FAIL - .grid 6:
FAIL - .grid 7:
FAIL - .grid 8:
FAIL - .grid 9:
FAIL - .grid 11:
FAIL - .grid 12:
FAIL
- .grid 2:
Comment 3•28 days ago
|
||
| bugherder | ||
Description
•