Closed Bug 2077696 Opened 1 month ago Closed 1 month ago

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

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 63219 into mozilla-central (this bug is closed when the sync is complete).

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [css-values-5 calc-size()] Resolve intrinsic keyword bases at layout time

<pre>
[css-values-5 calc-size()] Resolve intrinsic keyword bases at layout time

 &lt;div style=&quot;display: inline-block&quot;&gt;
   &lt;div style=&quot;width: calc-size(max-content, size * 2)&quot;&gt;
     &lt;div style=&quot;width: 60px&quot;&gt;&lt;/div&gt;
   &lt;/div&gt;
 &lt;/div&gt;

The middle box's max-content width is 60px, so size is 60px and the box resolves to 120px.
The inline-block sizes to what that box contributes, so it is 120px too.

Layout works out what the basis keyword resolves to and substitutes it for size.
This is the inline axis only.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=324398">https://bugs.webkit.org/show_bug.cgi?id=324398</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322423@main">https://commits.webkit.org/322423@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 Safari on GitHub CI

Total 54 tests

Status Summary

Firefox

OK : 31
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 975[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 978[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] 979[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 3225[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3243[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 3244[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]

Safari

OK : 3
PASS: 10
FAIL: 23

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: