Closed Bug 2083489 Opened 1 month ago Closed 25 days ago

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

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63829 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63829
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=323466

WebKit export from bug: Tab character renders too narrow when tab-<!---->size is small (<!---->proportional fonts)<!---->

<pre>
Tab character renders too narrow when tab-size is small (proportional fonts)

 &lt;div style=&quot;font: 32px serif; white-space: pre; tab-size: 0.4ch&quot;&gt;&amp;#9;&amp;#9;&amp;#9;&lt;/div&gt;

Each tab should advance to the second tab stop, making the run 2.4ch wide. Instead it advanced to the first one and the run was 1.2ch.

A tab is not a glyph but a shift to the next tab stop, and a shift too short to read as a tab takes the subsequent stop instead.
The spec measures "too short" against 0.5ch, half the advance of the "0" glyph, while we measured it against the space character.
In a proportional font the space is a lot narrower than the "0" (2.2px vs 4px in 16px Times)

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=323466">https://bugs.webkit.org/show_bug.cgi?id=323466</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/320671@main">https://commits.webkit.org/320671@main</a>
</pre>

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 457 tests and 192 subtests

Status Summary

Firefox

OK : 28
PASS: 1[GitHub] 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 401[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 768[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 770[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-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 8[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 64[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-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 66[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]

Chrome

FAIL: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.