[Webkit-unassigned] [Bug 201918] New: A dynamic change in a CSS property of an SVGElement does not get reflected in the instances of the SVGElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 18 09:18:52 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=201918
Bug ID: 201918
Summary: A dynamic change in a CSS property of an SVGElement
does not get reflected in the instances of the
SVGElement
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
CC: zimmermann at kde.org
Created attachment 379043
--> https://bugs.webkit.org/attachment.cgi?id=379043&action=review
change-fill-property-dynamic
Open the attached test case.
Result: Two rectangles one green and the other is red.
Expected: Two green rectangles.
The test case has a <rect> element with the CSS property fill="red". There is also a <use> element which references the <rect> element. When the document is loaded, the value of CSS property "fill" of the <rect> element is changed to "green". The bug is, the. shadow tree of the <use> element which includes an instances of the <rect> element does not get updated.
We need to call SVGUseElement::invalidateShadowTree() after changing the CSS property the same way we do in SVGElement::svgAttributeChanged().
This works:
rect.setAttribute('fill', 'green');
But this does not work:
rect.style['fill'] = 'green';
--
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/20190918/a222d0bc/attachment.html>
More information about the webkit-unassigned
mailing list