Closed Bug 2080623 Opened 1 month ago Closed 1 month ago

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

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

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

WebKit export from bug: Container size queries truncate fractional container sizes to integers

<pre>
Container size queries truncate fractional container sizes to integers

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

The width, height, inline-size and block-size container features
unzoomed the container's content box size with
Style::unapplyingZoom<int>, which converted the LayoutUnit to an int
before comparing it with the query. On a 100.5px container,
(width > 100px) did not match and (width <= 100px) did. Under zoom > 1,
the int code path in unapplyingZoom adds 1 before dividing, so a 100.5px
container with zoom: 2 was evaluated as 101px and matched
(width > 100.5px).

Unzoom as a LayoutUnit instead. evaluateLengthFeature already takes a
LayoutUnit, so the int conversion only lost precision. The aspect-ratio
and orientation features already used the unrounded LayoutUnit sizes.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 320 tests and 2 subtests

Status Summary

Firefox

OK : 1[GitHub] 17[Gecko-windows11-32-25h2-opt] 208[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 32[GitHub] 62[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 160[Gecko-windows11-32-25h2-opt] 1284[Gecko-windows11-32-25h2-debug] 1322[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1324[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 1335[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]
FAIL: 9[Gecko-windows11-32-25h2-opt] 239[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] 241[Gecko-windows11-32-25h2-debug] 250[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 252[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 32

Safari

OK : 1
PASS: 10
FAIL: 22

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: