Last Comment Bug 633783 - If list-style-image has an SVG image with percent height and/or width, no image is drawn
: If list-style-image has an SVG image with percent height and/or width, no ima...
Status: NEW
:
Product: Core
Classification: Components
Component: Layout (show other bugs)
: Trunk
: All All
: -- normal with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-12 17:00 PST by Daniel Holbert [:dholbert]
Modified: 2013-03-29 01:24 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Daniel Holbert [:dholbert] 2011-02-12 17:00:23 PST
If you have
    list-style-image: url('foo.svg')
with foo.svg having a percent-valued height and/or width on its root <svg> node, then the image isn't drawn.

(It looks like we might treat it as if that dimension were 0px, and we honor the other dimension.  For example, if you have width=50% height=200px, then the list items end up being about 200px apart vertically,  even though no image is drawn.)

See also Tab Atkins' discussion of the spec vs. various browsers' behaviors in this thread:
http://lists.w3.org/Archives/Public/www-style/2011Feb/0364.html
(When he mentions Firefox there, I suspect he's referring to 3.6 or another version from before SVG-as-an-image support was added.)
Comment 1 David Baron :dbaron: ⌚️UTC-7 2011-02-23 09:52:08 PST
I'd think the patches in bug 611099 ought to fix this, since they remove the concept of percent intrinsic size.

Note You need to log in before you can comment on or make changes to this bug.