Summary: | background-size:100% 100%; Webkit doesn't spread background image | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | albo | ||||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | NEW --- | ||||||||
Severity: | Minor | CC: | betravis, bfulgham, fs, m.goleb+bugzilla, mikelawther, shanestephens, syoichi, tony, webkit-bug-importer, zimmermann | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac (Intel) | ||||||||
OS: | OS X 10.7 | ||||||||
Attachments: |
|
Description
albo
2012-01-10 10:36:50 PST
This was also reported in the Chromium bug tracker: http://code.google.com/p/chromium/issues/detail?id=110195 As of (7534.53.10, r107802) this appears to have been resolved. (In reply to comment #2) > As of (7534.53.10, r107802) this appears to have been resolved. We should add a layout test to make sure this doesn't regress in the future. (In reply to comment #3) > (In reply to comment #2) > > As of (7534.53.10, r107802) this appears to have been resolved. > > We should add a layout test to make sure this doesn't regress in the future. Of what would a "layout test" consist? Sample HTML plus CSS plus SVG? (In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > As of (7534.53.10, r107802) this appears to have been resolved. > > > > We should add a layout test to make sure this doesn't regress in the future. > > Of what would a "layout test" consist? Sample HTML plus CSS plus SVG? Yes, that's basically all they are. http://trac.webkit.org/wiki/Writing%20Layout%20Tests%20for%20DumpRenderTree http://trac.webkit.org/wiki/Writing%20Reftests Other links about contributing to webkit on the wiki: http://trac.webkit.org/wiki/Writing%20Reftests Created attachment 182237 [details]
SVG File with two squares
Created attachment 182239 [details]
Failing test file
In the test file, I would expect svg image to resize (as it does in Firefox & Opera).
The behavior seems to be slightly different between Chrome (no scaling), Chrome Canary (no scaling, repeats), and Safari (no scaling, rendering artifacts as window resizes).
Appears to be working properly in r142638. Will add a test case. It still doesn't work, a test case from the Chromium report (compare with Firefox): http://jsfiddle.net/DXT8b/3/ We're about to land a fix for this in Blink (https://codereview.chromium.org/2290173005/), don't know how similar this code is still, but hopefully it hasn't diverged too much. It doesn't look like we render this test the same was as Firefox and Chrome. |