[wpt-sync] Sync PR 64519 - [svg] Use the replaced content rect for embedded SVG documents
Categories
(Core :: Layout: Images, Video, and HTML Frames, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64519 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64519
Details from upstream follow.
Felipe Erias <felipeerias@igalia.com> wrote:
[svg] Use the replaced content rect for embedded SVG documents
When the flag SVGEmbeddedAsReplacedElement is enabled, object-fit and
object-position apply to in-process SVG documents in \<object> and
\<embed>. The child frame is sized and positioned by the replaced content
rect, but coordinate mapping still uses the offset of the content box.
When the replaced content rect has a different offset, pointer events
get the wrong target and coordinates, scrollIntoView scrolls to the
wrong position, and IntersectionObserver reports wrong results.LocalFrameView and LayoutView now map between the child and parent
documents using the offset of the replaced content rect.Since object-fit can also extend the child frame beyond the content box,
visual rects mapped out of the child document are clipped by the
LayoutEmbeddedObject. Where the child frame covers only part of the
content box, pointer events over the rest now target the \<object> or
\<embed> element instead of the child frame.Changes to object-fit or object-position only invalidate paint, so the
child frame keeps its old size and position. With the flag enabled,
these changes on a LayoutEmbeddedObject now schedule a geometry update
in the parent LocalFrameView and a paint property update on the child
LayoutView.Apart from the handling of style changes, these changes do not depend on
the flag. For other frames and plugins, the replaced content rect has
the same offset as the content box, so the offset used for coordinate
mapping does not change. The exception is a frame owner that is the
effective root scroller, whose replaced content rect has a zero offset.
Coordinate mapping now uses that offset, as painting and hit testing
already do.Tests:
/wpt/css/css-images/object-fit-change-svg-001o.html
/wpt/css/css-images/object-fit-svg-intersection-observer.sub.html
/wpt/css/css-images/object-fit-svg-pointer-events.html
/wpt/css/css-images/object-fit-svg-scroll-into-view.htmlBug: 41302806
Change-Id: I0ad803f1a4da18a3949c9f6738eb23ceb15ce10f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8585219
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Commit-Queue: Felipe Erias \<felipeerias@igalia.com>
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1732547}
| Assignee | ||
Updated•6 days ago
|
| Assignee | ||
Comment 1•5 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=118591
| Assignee | ||
Comment 2•5 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 520 tests and 18 subtests
Status Summary
Firefox
OK : 3[GitHub] 45[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 6[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 7[GitHub] 3518[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3934[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] 140[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
OK : 3
FAIL : 7
Safari
OK : 2
FAIL : 4
TIMEOUT: 2
NOTRUN : 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /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-fit-none-svg-width-only.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-pattern.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 - /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:
Tests Disabled in Gecko Infrastructure
Comment 4•2 days ago
|
||
| bugherder | ||
Description
•