[wpt-sync] Sync PR 64613 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318956
Categories
(Core :: Layout: Ruby, 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 64613 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64613
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318956
WebKit export from bug: [<!---->css-<!---->ruby]<!----> Implement the '<!---->spaces'<!----> value for the ruby-<!---->overhang property
<pre>
[css-ruby] Implement the 'spaces' value for the ruby-overhang propertyUpdate 'ruby-overhang' to the current CSS Ruby Layout grammar 'auto | spaces',
with 'none' as a legacy value alias of 'spaces'. Previously the property was
'auto | none', where 'none' fully disabled overhang.
<a href="https://drafts.csswg.org/css-ruby-1/#propdef-ruby-overhang">https://drafts.csswg.org/css-ruby-1/#propdef-ruby-overhang</a>'ruby-overhang: spaces' allows a ruby annotation that is wider than its base to
overhang adjacent content only over "spaces": preserved white space, no-break
space and other space separators, half of the advance of a fullwidth opening
(inline-start) or closing (inline-end) punctuation, and a quarter of the advance
of a fullwidth middle dot punctuation (either side). 'auto' keeps the
user-agent-defined behavior. Because 'none' is now an alias of 'spaces', it no
longer fully disables overhang.'none' is aliased to 'spaces' at parse time, so both the specified and computed
values serialize as 'spaces'. In layout, RubyFormattingContext caps the overhang
computed for the 'spaces' value to the overhangable advance at the adjacent edge,
computed by overhangableSpaceAdvance() from the adjacent edge character's class
plus already-laid-out geometry and the font size, without re-measuring text:
preserved white space and tabs use the word-separator box advance; no-break space
and other space separators use the advance by which the box's visual rect exceeds
its ink overflow at the edge; and fullwidth opening/closing/middle-dot punctuation
expose half/half/quarter of a fullwidth advance (one em), sharing the
fullWidthAdvance() helper with the existing 0.5ic overhang cap. The only case not
yet handled is a fullwidth punctuation advance reduced by 'text-spacing-trim'
(see FIXME).WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=318956">https://bugs.webkit.org/show_bug.cgi?id=318956</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/317569@main">https://commits.webkit.org/317569@main</a>
</pre>
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Comment 1•20 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119731
| Assignee | ||
Comment 2•19 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 3 subtests
Status Summary
Firefox
OK : 1
FAIL: 3
Chrome
OK : 1
PASS: 3
Safari
OK : 1
PASS: 3
Links
Details
Firefox-only Failures
- /css/css-ruby/parsing/ruby-overhang-valid.html [wpt.fyi]
- e.style['ruby-overhang'] = "auto" should set the property value:
FAILlinked bug:Bug 2031394 - e.style['ruby-overhang'] = "spaces" should set the property value:
FAIL - e.style['ruby-overhang'] = "none" should set the property value:
FAILlinked bug:Bug 2031394
- e.style['ruby-overhang'] = "auto" should set the property value:
New Tests That Don't Pass
- /css/css-ruby/parsing/ruby-overhang-valid.html [wpt.fyi]
- e.style['ruby-overhang'] = "auto" should set the property value:
FAIL(Chrome:PASS, Safari:PASS) - e.style['ruby-overhang'] = "spaces" should set the property value:
FAIL(Chrome:PASS, Safari:PASS) - e.style['ruby-overhang'] = "none" should set the property value:
FAIL(Chrome:PASS, Safari:PASS)
- e.style['ruby-overhang'] = "auto" should set the property value:
Comment 4•15 days ago
|
||
| bugherder | ||
Description
•