Closed Bug 2092765 Opened 20 days ago Closed 15 days ago

[wpt-sync] Sync PR 64613 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318956

Categories

(Core :: Layout: Ruby, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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 property

Update '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>

Component: web-platform-tests → Layout: Ruby
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

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)
Status: NEW → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.