[wpt-sync] Sync PR 62826 - css: Invalidate gradients using viewport units on viewport resize
Categories
(Core :: Layout: Images, Video, and HTML Frames, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62826 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62826
Details from upstream follow.
Himesha Baddage <himesha.baddage@codimite.com> wrote:
css: Invalidate gradients using viewport units on viewport resize
Gradient color stops and positions are resolved when the gradient is
painted rather than during style resolution, and CSSGradientValue::
GetImage discards the length conversion flags produced by that
resolution. An element whose gradient used a viewport-relative length
therefore recorded no viewport dependency on its computed style, so
resizing the viewport never marked it for style recalc. Even a forced
recalc produced an equal StyleGeneratedImage, so the computed style
was reused and the previously rasterized gradient stayed on screen
until the page was reloaded.Record the viewport unit dependency when the generated image is
created, and snapshot the viewport size on StyleGeneratedImage so that
the image compares unequal once the viewport changes. The resulting
style difference drives both the paint invalidation and the eviction
of the cached gradient bitmap.This mirrors the existing handling of container-relative units, and
keeps the generated image cache effective for gradients that do not
depend on the viewport. Radial and conic gradient positions and sizes
are covered as well, since they resolve viewport units too.Bug: 557316486
Change-Id: I8bdbc56c9f5a340a370192b979362a7df5031cf4
Fixed: 557316486
Reviewed-on: https://chromium-review.googlesource.com/8383617
WPT-Export-Revision: 53abf4bd9eb2890e1c737f95b90bb0bdadfc0ee9
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=94975
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 509 tests
Status Summary
Firefox
OK : 42
PASS: 1[GitHub] 6[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 3512[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3922[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 89[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 138[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
PASS: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-images/animation/object-view-box-interpolation.html [wpt.fyi]
- CSS Transitions: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0) should be [inset(0px)]:
FAIL - CSS Transitions: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0.5) should be [inset(10px)]:
FAIL - CSS Transitions: property <object-view-box> from [inset(0px)] to [inset(20px)] at (1) should be [inset(20px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0) should be [inset(0px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0.5) should be [inset(10px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0px)] to [inset(20px)] at (1) should be [inset(20px)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0) should be [inset(0px)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0.5) should be [inset(10px)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (1) should be [inset(20px)]:
FAIL - Web Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0) should be [inset(0px)]:
FAIL - Web Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0.5) should be [inset(10px)]:
FAIL - Web Animations: property <object-view-box> from [inset(0px)] to [inset(20px)] at (1) should be [inset(20px)]:
FAIL - CSS Transitions: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0) should be [inset(0%)]:
FAIL - CSS Transitions: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0.5) should be [inset(10%)]:
FAIL - CSS Transitions: property <object-view-box> from [inset(0%)] to [inset(20%)] at (1) should be [inset(20%)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0) should be [inset(0%)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0.5) should be [inset(10%)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [inset(0%)] to [inset(20%)] at (1) should be [inset(20%)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0) should be [inset(0%)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0.5) should be [inset(10%)]:
FAIL - CSS Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (1) should be [inset(20%)]:
FAIL - Web Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0) should be [inset(0%)]:
FAIL - Web Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (0.5) should be [inset(10%)]:
FAIL - Web Animations: property <object-view-box> from [inset(0%)] to [inset(20%)] at (1) should be [inset(20%)]:
FAIL - CSS Transitions: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0) should be [rect(0px 10px 20px 30px)]:
FAIL - CSS Transitions: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0.5) should be [rect(5px 15px 25px 35px)]:
FAIL - CSS Transitions: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (1) should be [rect(10px 20px 30px 40px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0) should be [rect(0px 10px 20px 30px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0.5) should be [rect(5px 15px 25px 35px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (1) should be [rect(10px 20px 30px 40px)]:
FAIL - CSS Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0) should be [rect(0px 10px 20px 30px)]:
FAIL - CSS Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0.5) should be [rect(5px 15px 25px 35px)]:
FAIL - CSS Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (1) should be [rect(10px 20px 30px 40px)]:
FAIL - Web Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0) should be [rect(0px 10px 20px 30px)]:
FAIL - Web Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (0.5) should be [rect(5px 15px 25px 35px)]:
FAIL - Web Animations: property <object-view-box> from [rect(0px 10px 20px 30px)] to [rect(10px 20px 30px 40px)] at (1) should be [rect(10px 20px 30px 40px)]:
FAIL - CSS Transitions: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0) should be [xywh(0px 10px 20px 30px)]:
FAIL - CSS Transitions: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0.5) should be [xywh(5px 15px 25px 35px)]:
FAIL - CSS Transitions: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (1) should be [xywh(10px 20px 30px 40px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0) should be [xywh(0px 10px 20px 30px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0.5) should be [xywh(5px 15px 25px 35px)]:
FAIL - CSS Transitions with transition: all: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (1) should be [xywh(10px 20px 30px 40px)]:
FAIL - CSS Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0) should be [xywh(0px 10px 20px 30px)]:
FAIL - CSS Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0.5) should be [xywh(5px 15px 25px 35px)]:
FAIL - CSS Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (1) should be [xywh(10px 20px 30px 40px)]:
FAIL - Web Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0) should be [xywh(0px 10px 20px 30px)]:
FAIL - Web Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (0.5) should be [xywh(5px 15px 25px 35px)]:
FAIL - Web Animations: property <object-view-box> from [xywh(0px 10px 20px 30px)] to [xywh(10px 20px 30px 40px)] at (1) should be [xywh(10px 20px 30px 40px)]:
FAIL
- CSS Transitions: property <object-view-box> from [inset(0px)] to [inset(20px)] at (0) should be [inset(0px)]:
- /css/css-images/cross-fade-computed-value.html [wpt.fyi]
- Property background-image value 'cross-fade(30% color-mix(in srgb, currentcolor, blue), white)':
FAIL - Property background-image value 'cross-fade(50% red, 50% green)':
FAIL - Property background-image value 'cross-fade(20% red, 20% green)':
FAIL - Property background-image value 'cross-fade(50% red, 50% green, 50% blue)':
FAIL - Property background-image value 'cross-fade(calc(101%) red, green)':
FAIL - Property background-image value 'cross-fade(calc(-200%) red, green)':
FAIL - Property background-image value 'cross-fade(calc(50% + 1% * sign(1em - 10000px)) red, green)':
FAIL
- Property background-image value 'cross-fade(30% color-mix(in srgb, currentcolor, blue), white)':
- /css/css-images/idlharness.html [wpt.fyi]
- CSS namespace: attribute elementSources:
FAIL
- CSS namespace: attribute elementSources:
- /css/css-images/object-view-box-parsing.html [wpt.fyi]
- e.style['object-view-box'] = "inset(10%)" should set the property value:
FAIL - e.style['object-view-box'] = "inset(10px 20px 30px 40px)" should set the property value:
FAIL - e.style['object-view-box'] = "rect(1px 10% 100px 50%)" should set the property value:
FAIL - e.style['object-view-box'] = "rect(auto auto auto auto)" should set the property value:
FAIL - e.style['object-view-box'] = "rect(auto 5px auto 10%)" should set the property value:
FAIL - e.style['object-view-box'] = "xywh(1px 10% 100px 50%)" should set the property value:
FAIL
- e.style['object-view-box'] = "inset(10%)" should set the property value:
- /css/css-images/object-view-box-transition-mutation.html [wpt.fyi]
- Unrelated mutation does not affect object-view-box transition:
FAIL
- Unrelated mutation does not affect object-view-box transition:
- /css/css-images/parsing/conic-gradient-calc-angle-percentage-valid.html [wpt.fyi]
- e.style['background-image'] = "conic-gradient(red, calc(0deg + 100%), blue)" should set the property value:
FAIL - e.style['background-image'] = "conic-gradient(red calc(0deg + 100%), blue)" should set the property value:
FAIL - e.style['background-image'] = "conic-gradient(red calc(90deg + 50%), blue)" should set the property value:
FAIL - e.style['background-image'] = "conic-gradient(red calc(90deg + 0%), blue)" should set the property value:
FAIL - e.style['background-image'] = "conic-gradient(red calc(100% - 45deg), blue)" should set the property value:
FAIL - e.style['background-image'] = "repeating-conic-gradient(red calc(90deg + 50%), blue)" should set the property value:
FAIL
- e.style['background-image'] = "conic-gradient(red, calc(0deg + 100%), blue)" should set the property value:
- /css/css-images/parsing/image-function-valid.html [wpt.fyi]
- e.style['background-image'] = "cross-fade(image(green), red)" should set the property value:
FAIL
- e.style['background-image'] = "cross-fade(image(green), red)" should set the property value:
- /css/css-images/parsing/image-rendering-computed.html [wpt.fyi]
- Property image-rendering value 'high-quality':
FAIL
- Property image-rendering value 'high-quality':
- /css/css-images/parsing/image-rendering-valid.html [wpt.fyi]
- e.style['image-rendering'] = "high-quality" should set the property value:
FAIL
- e.style['image-rendering'] = "high-quality" should set the property value:
- /css/css-images/parsing/image-resolution-valid.html [wpt.fyi]
- e.style['image-resolution'] = "1dpi" should set the property value:
FAIL - e.style['image-resolution'] = "2dpcm from-image" should set the property value:
FAIL - e.style['image-resolution'] = "3dppx from-image snap" should set the property value:
FAIL - e.style['image-resolution'] = "4dpi snap" should set the property value:
FAIL - e.style['image-resolution'] = "from-image" should set the property value:
FAIL - e.style['image-resolution'] = "from-image 5dpcm" should set the property value:
FAIL - e.style['image-resolution'] = "from-image 6dppx snap" should set the property value:
FAIL - e.style['image-resolution'] = "from-image snap" should set the property value:
FAIL - e.style['image-resolution'] = "snap 7.5dpi" should set the property value:
FAIL - e.style['image-resolution'] = "snap -8dpcm from-image" should set the property value:
FAIL - e.style['image-resolution'] = "snap from-image" should set the property value:
FAIL - e.style['image-resolution'] = "snap from-image 0dppx" should set the property value:
FAIL
- e.style['image-resolution'] = "1dpi" should set the property value:
- /css/css-images/parsing/object-fit-computed.html [wpt.fyi]
- Property object-fit value 'cover scale-down':
FAIL
- Property object-fit value 'cover scale-down':
- /css/css-images/parsing/object-fit-valid.html [wpt.fyi]
- e.style['object-fit'] = "contain scale-down" should set the property value:
FAIL - e.style['object-fit'] = "cover scale-down" should set the property value:
FAIL - e.style['object-fit'] = "scale-down contain" should set the property value:
FAIL - e.style['object-fit'] = "scale-down cover" should set the property value:
FAIL
- e.style['object-fit'] = "contain scale-down" should set the property value:
- /css/css-images/image-orientation/image-orientation-none-cross-origin-canvas-css-image-value.sub.html [wpt.fyi]:
SKIP - /css/css-images/object-fit-stale-image-while-revalidating.html [wpt.fyi]:
SKIP - /css/css-images/conic-gradient-calc-angle-percentage.html [wpt.fyi]:
FAIL - /css/css-images/cross-fade-basic.html [wpt.fyi]:
FAIL - /css/css-images/cross-fade-cross-origin-orientation.sub.html [wpt.fyi]:
FAIL - /css/css-images/cross-fade-natural-size.html [wpt.fyi]:
FAIL - /css/css-images/cross-fade-premultiplied-alpha.html [wpt.fyi]:
FAIL - /css/css-images/cross-fade-target-alpha.html [wpt.fyi]:
FAIL - /css/css-images/css-image-fallbacks-and-annotations.html [wpt.fyi]:
FAIL - /css/css-images/css-image-fallbacks-and-annotations002.html [wpt.fyi]:
FAIL - /css/css-images/css-image-fallbacks-and-annotations003.html [wpt.fyi]:
FAIL - /css/css-images/css-image-fallbacks-and-annotations004.html [wpt.fyi]:
FAIL - /css/css-images/css-image-fallbacks-and-annotations005.html [wpt.fyi]:
FAIL - /css/css-images/image-color-cross-fade.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-auto-size-relayout.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-contain-intrinsic-size.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-contain-canvas.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-contain-img.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-contain-svg.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-contain-video.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-cover-canvas.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-cover-img.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-cover-svg.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-cover-video.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-fill-canvas.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-fill-img.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-fill-svg.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-fill-video.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-none-canvas.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-none-img.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-none-svg.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-fit-none-video.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-property-changed.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-rect-percentage.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-rect.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-size-containment.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-writing-mode-canvas.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-writing-mode-img.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-writing-mode-svg.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-writing-mode-video.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-xywh-percentage.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-xywh.html [wpt.fyi]:
FAIL - /css/css-images/object-view-box-zoom.html [wpt.fyi]:
FAIL - /css/css-images/gradient/gradient-analogous-missing-components-004.html [wpt.fyi]:
FAIL - /css/css-images/gradient/gradient-eval-004.html [wpt.fyi]:
FAIL - /css/css-images/gradient/gradient-infinity-001.html [wpt.fyi]:
FAIL - /css/css-images/gradient/gradient-infinity-003.html [wpt.fyi]:
FAIL - /css/css-images/gradient/gradient-none-interpolation.html [wpt.fyi]:
FAIL - /css/css-images/image-orientation/image-orientation-exif-png.html [wpt.fyi]:
FAIL - /css/css-images/image-orientation/image-orientation-none-cross-origin-canvas.html [wpt.fyi]:
FAIL - /css/css-images/image-orientation/image-orientation-none-cross-origin-svg.html [wpt.fyi]:
FAIL
Tests Disabled in Gecko Infrastructure
Comment 4•2 months ago
|
||
| bugherder | ||
Description
•