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
: Jet Villegas (:jet)
Depends on:
  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:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image 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:
(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 User image David Baron :dbaron: ⌚️UTC-8 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.