[Webkit-unassigned] [Bug 248315] New: IntersectionObserver with svg root element does not react to viewbox/size changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 24 10:18:58 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248315
Bug ID: 248315
Summary: IntersectionObserver with svg root element does not
react to viewbox/size changes
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: pom at graougraou.com
Created attachment 463713
--> https://bugs.webkit.org/attachment.cgi?id=463713&action=review
Test for InteractionObserver with an svg root element
When creating an InteractionObserver with an <svg> element as the root element and observing children (e.g. a <rect> element), the observer callback is not called when the viewbox/size of the <svg> element changes to reveal or hide some of its contents.
A simple test is attached with an svg element that contains a rect. Initially the rect is black (default fill) and outside of the viewbox. An InteractionObserver is created with the svg element as its root and the rect is observed. The callback changes the fill of the rect to green if it is intersecting and red if not (so it should always appear green if it appears at all, and never red). The viewbox and size of the SVG element are modified after 1 second to contain the rect, which should then appear green.
In Safari 15.5 and STP 158 (as well as Chrome 107), the rect appears red; in Firefox 107, the rect appears green, which is the expected behaviour.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221124/a4e78e9a/attachment.htm>
More information about the webkit-unassigned
mailing list