WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
Bug 128248
Large SVG sprite does not display (small does) with CSS background-position
https://bugs.webkit.org/show_bug.cgi?id=128248
Summary
Large SVG sprite does not display (small does) with CSS background-position
Ben Frain
Reported
2014-02-05 07:39:10 PST
Created
attachment 223233
[details]
basic HTML page If an HTML element is assigned an SVG background-image in CSS, it does not render if the vector graphic sprite is too 'large'. Is this because the UA is rendering out a large image and before painting to screen, ignoring the defined size in the CSS (e.g. background-size: 749px 27px;)? For example, if an SVG has its width and height attributes set thus: width="15520" height="560", then iOS is unable to render the background image. However, if exactly the same vector data is saved out into an SVG sprite with smaller (albeit still unit-less) dimensions iOS is able to render it. A test page is attached, view it on an iOS device to witness the problem (or rather not witness it because nothing appears). View the file in the desktop and the image it shown.
Attachments
basic HTML page
(2.77 KB, text/html)
2014-02-05 07:39 PST
,
Ben Frain
no flags
Details
This is the SVG sprite that needs saving alongside the HTML for testing
(3.56 KB, image/svg+xml)
2014-02-05 07:40 PST
,
Ben Frain
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ben Frain
Comment 1
2014-02-05 07:40:46 PST
Created
attachment 223234
[details]
This is the SVG sprite that needs saving alongside the HTML for testing Ensure this SVG sprite is saved alongside the original attachment to test the issue.
Brent Fulgham
Comment 2
2022-07-15 16:49:55 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug