If list-style-image has an SVG image with percent height and/or width, no image is drawn

NEW
Unassigned

Status

()

Core
Layout
7 years ago
4 years ago

People

(Reporter: dholbert, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
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.)
I'd think the patches in bug 611099 ought to fix this, since they remove the concept of percent intrinsic size.
You need to log in before you can comment on or make changes to this bug.