[Webkit-unassigned] [Bug 147931] New: Browser does not fall back to attribute value when style value is invalid or not supported
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 12 01:43:05 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147931
Bug ID: 147931
Summary: Browser does not fall back to attribute value when
style value is invalid or not supported
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sara.soueidan at gmail.com
CC: zimmermann at kde.org
Created attachment 258816
--> https://bugs.webkit.org/attachment.cgi?id=258816&action=review
Screenshot showing what the demo looks like in Safari
An SVG element that has a fill color specified using both a fill attribute and a style attribute with fill property declaration, the browser needs to be able to fall back to the fill attribute value if the value in the style attribute is not valid.
In this particular case, an SVG element is styled using CSS variables inside a style attribute. Since Safari does not support CSS variables yet, it is supposed to ignore the fill value in the style tag (using the variable) and fall back to the fill value in the fill attribute.
Live example: http://codepen.io/SaraSoueidan/pen/c30e270090b2460ba6e6833c611e5a76
The robots should all be colored and look alike in Safari, as they do in Chrome, for example. But instead, Safari falls back to all black colors (the user agent defaults) because it does not use the fill attribute fallback provided.
More reference on this technique, how it works, and what's supposed to happen here: http://tympanus.net/codrops/2015/07/16/styling-svg-use-content-css/
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150812/970d58da/attachment-0001.html>
More information about the webkit-unassigned
mailing list