[wpt-sync] Sync PR 49404 - Fix TimelineOffset crash with certain calc() expressions.
Categories
(Core :: CSS Transitions and Animations, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49404 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49404
Details from upstream follow.
Steinar H. Gunderson <sesse@chromium.org> wrote:
Fix TimelineOffset crash with certain calc() expressions.
The scroll animation code assumed that all expressions were either
possible to evaluate at parse time (e.g.10px), or that were marked
as having to wait until layout (e.g.calc(10px + 10%)). However,
there's a third case, namely calc() expressions that can be evaluated
but only when an element's style is being calculated (such as
calc(sign(1em - 1px) * 1px)). Treat all calc() expressions the same
as those that have to wait until layout, in order to avoid crashes when
they occur; the standard generally doesn't distinguish between “trivial”
calc()s and other calc()s except in a few very specific cases.Change-Id: Ie152723a934d43a2b8614c7d7644d486df4b59ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054580
Commit-Queue: Kevin Ellis \<kevers@chromium.org>
Auto-Submit: Steinar H Gunderson \<sesse@chromium.org>
Reviewed-by: Kevin Ellis \<kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1388895}
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 5 subtests
Status Summary
Firefox
OK : 2
FAIL: 30
Chrome
OK : 2
PASS: 30
Safari
OK : 2
FAIL: 30
Links
Details
New Tests That Don't Pass
- /css/css-animations/parsing/animation-range-start-valid.html [wpt.fyi]
- e.style['animation-range-start'] = "normal" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover 0%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover 100%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover 120%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover 42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "0" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "120%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "120px" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover -42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "contain 42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit 42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit 1%, cover 2%, contain 0%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit 1%, cover 2%, contain 100%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit-crossing 42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "entry 42px" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "entry-crossing 42px" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "contain calc(10px + 10%)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "entry 1em" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit calc(1em + 10px)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "entry 42%" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "contain" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "entry" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "exit" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['animation-range-start'] = "cover calc(sign(100em - 1px) * 1%)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL)
- e.style['animation-range-start'] = "normal" should set the property value:
- /scroll-animations/view-timelines/view-timeline-range.html [wpt.fyi]
- View timeline with range as <name> <percent> pair.:
FAIL(Chrome:PASS, Safari:FAIL) - View timeline with range and inferred name or offset.:
FAIL(Chrome:PASS, Safari:FAIL) - View timeline with range as <name> <px> pair.:
FAIL(Chrome:PASS, Safari:FAIL) - View timeline with range as <name> <percent+px> pair.:
FAIL(Chrome:PASS, Safari:FAIL) - View timeline with range as strings.:
FAIL(Chrome:PASS, Safari:FAIL)
- View timeline with range as <name> <percent> pair.:
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f38653879cc3
https://hg.mozilla.org/mozilla-central/rev/58a09f42f2e4
Description
•