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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 21 01:40:32 PST 2014


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





--- Comment #3 from Tamas Gergely <tgergely.u-szeged at partner.samsung.com>  2014-02-21 01:37:42 PST ---
(In reply to comment #2)
> (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.

After some debugging I've figured out the following:

When the Page object for the main document is loaded, its Settings object is created with 0 as m_defaultFontSize, but the default font size is later set to a non-zero value.

When the image is created, its Page object creates a new Settings object with a 0 valued default font size, but it is not set to non-zero value later.

Should we propagate the default settings to all Page objects, and not set it only to the main one?

-- 
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