[Webkit-unassigned] [Bug 125788] SVG background override from higher specificity renders incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 13 05:41:28 PST 2014


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


Tamas Gergely <tgergely.u-szeged at partner.samsung.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tgergely.u-szeged at partner.s
                   |                            |amsung.com




--- Comment #2 from Tamas Gergely <tgergely.u-szeged at partner.samsung.com>  2014-02-13 05:38:44 PST ---
(In reply to comment #0)
> The SVG should match the png. The extra specificity doesn't seem to change the background. Even if both the svg specific backgrounds are changed to the filled square they seem to mysteriously retain the unfilled source. If one inspects the divs and opens a new tab to the data URI in chrome it displays the correct svg source, so there's something going on with the css here. 
> 
> This problem occurs in both Chrome and Safari but the code works as expected in FireFox.

If you replace the "em" unit in the SVG to "cm" you will see the color boxes. It seems that WK ignores the em length modifier, thus creates a 1px x 1px image with 1px borders resulting in gray boxes. The result is the same if the svg is loaded in an <img/> tag, but loading the svg directly seems to work correctly.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list