[Webkit-unassigned] [Bug 212902] [SVG2] SVGUseElement spec contains breaking changes.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 8 13:25:19 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=212902

--- Comment #3 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
(In reply to ian from comment #2)
> Ah, that report is certainly relevant. 
> 
> However, my specific concern is with the default appearance of the targeted
> element sans any styling of <use>.
> 
> In SVG1.1, absent a `use` rule, the re-presented circle element should
> always display per `.special circle{}`. (Given a `use` related rule, there
> is indeed ambiguity regarding which style rules take precedence and
> unexpected behavior may result, hence the bug report)
> 

Let's be clear here. We are planning to implement SVG2. We already started doing that but we have not finished yet, please see bug 191292. So any behavior in WebKit SVG which is not working according to SVG2, even it works according to SVG1.1 specs, is a bug.

> According to the SVG2 spec however, `.special circle{stroke:green}` should
> have no baring on the re-presented element, ever. That circle will
> technically be outside of `.special` and so those rule will not apply. 
> 

And this is not the case in both WebKit and Blink right now. But it works as expected in FireFox.

> Combined with the rules for shadowDOM (which underlies the SVG use element
> spec), in the test case, the re-presented circle will have neither a green
> stroke or purple stroke but no stroke at all — both instance styling and
> re-presentation are compromised. 
> 

What does this part mean? And what is the meaning of "compromised" in this context? Does the shadowDOM specs contradict the SVG2 specs?

> But while instance styling can be patched around via CSS variables, the
> ability to re-present an element whose appearance is determined by its
> source context will be eliminated entirely.

I can't follow this part also. Is this a bug in the specs or a bug in WebKit? Can you please alter the test case and state your expectations or concerns if SVG2 rules are applied.

-- 
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/20200608/ac478571/attachment.htm>


More information about the webkit-unassigned mailing list