[wpt-sync] Sync PR 64490 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318918
Categories
(Core :: Layout: Text and Fonts, 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 64490 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64490
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318918
WebKit export from bug: [<!---->css-<!---->text-<!---->4]<!----> Implement the wrap-<!---->inside property
<pre>
[css-text-4] Implement the wrap-inside propertyAdd the CSS Text Level 4 'wrap-inside' property (auto | avoid), gated behind the
cssWrapInsideEnabled setting.'wrap-inside: avoid' suppresses soft wrap opportunities within an inline box: the
line breaks before the box - keeping it together - rather than inside it, and
breaks inside the box only as a last resort when there is no other break
opportunity on the line. A 'wrap-inside: auto' box nested inside an 'avoid' box
does not re-enable breaking, and breaks between sibling avoid boxes are preferred
over breaks inside them.Whether content is inside an avoid box (the box's own value or inherited from an
ancestor avoid box) is precomputed during style resolution as
effectiveWrapInsideAvoid(), so inline layout reads a flat flag and never walks
the box tree. It propagates only through inline boxes, so it does not cross into
a block, inline-block or other independent formatting context child. The break
decision is made by InlineContentBreaker: when the
overflowing content is inside an avoid box and there is an earlier wrap
opportunity, it asks the line builder to revert to the last wrap opportunity. The
line builder records all wrap opportunities and, on such a revert, prefers the
last one outside any avoid box; when every opportunity is inside an avoid box it
reverts to the outermost such box - a break in an outer box is used before a
break within an inner one - breaking inside the box only as a last resort when it
is the only content on the line.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=318918">https://bugs.webkit.org/show_bug.cgi?id=318918</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/317182@main">https://commits.webkit.org/317182@main</a>
</pre>
| Assignee | ||
Updated•8 days ago
|
| Assignee | ||
Comment 1•7 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=117919
| Assignee | ||
Comment 2•7 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 24 tests and 6 subtests
Status Summary
Firefox
OK : 1
PASS: 8
FAIL: 6[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 21[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-64-25h2-debug, Gecko-windows11-64-25h2-opt, GitHub]
Chrome
OK : 1
PASS: 8
FAIL: 21
Safari
OK : 1
PASS: 29
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-text/wrap-inside/wrap-inside-avoid-block-child.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-break-all.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-break-before-then-inside.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-dynamic.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-inline-block-child.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-inline-flex-child.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-inline-grid-child.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-inline-table-child.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-keeps-box-together.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-line-break-anywhere.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-nested-auto.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-nested-deep.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-nested-only.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-nested.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-avoid-siblings.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/wrap-inside/wrap-inside-computed.html [wpt.fyi]
- wrap-inside initial computed value is 'auto':
FAIL(Chrome:FAIL, Safari:PASS) - wrap-inside: auto:
FAIL(Chrome:FAIL, Safari:PASS) - wrap-inside: avoid:
FAIL(Chrome:FAIL, Safari:PASS) - wrap-inside ignores invalid values:
FAIL(Chrome:FAIL, Safari:PASS) - wrap-inside is not inherited:
FAIL(Chrome:FAIL, Safari:PASS) - wrap-inside: inherit resolves to the parent value:
FAIL(Chrome:FAIL, Safari:PASS)
- wrap-inside initial computed value is 'auto':
Comment 4•4 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bf67b2d87207
https://hg.mozilla.org/mozilla-central/rev/e12d677a90cc
Comment 5•4 days ago
|
||
| bugherder | ||
Description
•