Closed Bug 1960646 Opened 14 days ago Closed 6 days ago

[wpt-sync] Sync PR 52001 - Remove ComputeDotsPerPixel from CSSPrimitiveValue

Categories

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

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Remove ComputeDotsPerPixel from CSSPrimitiveValue

Fixes a crash issue with sibling-index() in resolution calc()
expressions in image-set() by not supporting parsing them for now, but
pass in a CSSLengthResolver in all cases we can.

Issue 410746569 is about storing computed resolution values for
image-set()s on ComputedStyle.

Bug: 408399392, 408234457, 410746569
Change-Id: I51a4ee997dfd0d13e5ce669b11080f93b5eabf67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6432954
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Daniil Sakhapov \<sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1447057}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 1 tests and 142 subtests

Status Summary

Firefox

OK : 1
PASS: 138
FAIL: 4

Chrome

OK : 1
PASS: 142

Safari

OK : 1
PASS: 140
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /css/css-images/image-set/image-set-parsing.html [wpt.fyi]
    • e.style['background-image'] = "image-set(url("example.png") calc(1dppx * sign(1em - 10px)))" should set the property value: FAIL
    • e.style['background-image'] = "-webkit-image-set(url("example.png") calc(1dppx * sign(1em - 10px)))" should set the property value: FAIL

New Tests That Don't Pass

  • /css/css-images/image-set/image-set-parsing.html [wpt.fyi]
    • e.style['background-image'] = "image-set(url("example.png") calc(1dppx * sibling-index()))" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['background-image'] = "-webkit-image-set(url("example.png") calc(1dppx * sibling-index()))" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['background-image'] = "image-set(url("example.png") calc(1dppx * sign(1em - 10px)))" should set the property value: FAIL (Chrome: PASS, Safari: PASS)
    • e.style['background-image'] = "-webkit-image-set(url("example.png") calc(1dppx * sign(1em - 10px)))" should set the property value: FAIL (Chrome: PASS, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6694109b5188 [wpt PR 52001] - Remove ComputeDotsPerPixel from CSSPrimitiveValue, a=testonly https://hg.mozilla.org/integration/autoland/rev/5fcd292962f6 [wpt PR 52001] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.