Closed Bug 1956857 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 51640 - Support unresolved calc() expressions for steps() timing functions

Categories

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

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Support unresolved calc() expressions for steps() timing functions

Steps including sign() or sibling-index() that were not possible to
simplify at parse time were causing NOTREACHED() and DCHECK()s to
trigger because we tried to retrieve the integer value at parse time
without checking the CSSValue type for range checking.

Don't do range checking at parse time in such cases, but do range
clamping at computed value time. This is in line with what the
css-values-4 spec says.

Bug: 405422525
Change-Id: Ib620b2bd0eed4d9de646299ae6f510d96f383d90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6400854
Reviewed-by: Daniil Sakhapov \<sakhapov@chromium.org>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1438661}

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 2 tests and 22 subtests

Status Summary

Firefox

OK : 2
PASS : 39
FAIL : 5

Chrome

CRASH: 2

Safari

OK : 2
PASS : 41
FAIL : 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28dc4ef6c28a [wpt PR 51640] - Support unresolved calc() expressions for steps() timing functions, a=testonly https://hg.mozilla.org/integration/autoland/rev/7b0c112f240b [wpt PR 51640] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.