W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: [CSS2.1] list-style-image sizing rules don't match reality

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 13 Feb 2011 16:21:22 -0800
Message-ID: <AANLkTi=TTVXCXohPr0Q5o2pvh9rfNpwoVS0d9vrndJHk@mail.gmail.com>
To: Daniel Holbert <dholbert@cs.stanford.edu>
Cc: www-style list <www-style@w3.org>
Alan, the point of my email was specifically to test the behavior of
browsers when given an image with precisely one intrinsic dimension
and no intrinsic ratio.  JPEG and PNG always have both their intrinsic
dimensions and an intrinsic ratio.  The values I used in the ellipse
are designed specifically to show me the size of the SVG image itself
- differing values, particularly static ones, may not exercise the
same behavior, and so probably aren't useful here.

On Sat, Feb 12, 2011 at 11:14 PM, Daniel Holbert
<dholbert@cs.stanford.edu> wrote:
> On 02/11/2011 04:22 PM, Tab Atkins Jr. wrote:
>> I can't seem to get Firefox or IE8 to render an SVG list-style-image.
> Hi Tab,
> For the record, Firefox 4 betas[1] render SVG list-style-images[2] just fine
> for me, as long as the SVG image has a px-valued width and height. (or
> really "non-percent-valued") (I did notice that we fail when one dimension
> is missing or percent-valued, though -- I filed a bug[3] on that).
> Perhaps your testing was done using Firefox 3.6.x?  If so, it makes sense
> that nothing worked -- that was before we had any SVG-as-an-image support.
> If you're using a Firefox 4 build and you can't get list-style-image
> working, I'd be interested to know.
> Thanks!
> Daniel Holbert
> Mozilla
> [1] worksforme on latest nightly + Firefox 4 beta10 (on Ubuntu Linux)
> [2] I tried your inline "test.[svg|html]" testcase, with the missing
> dimension filled in on the <svg> node, and it worked just fine.  For another
> simple should-be-working example, see:
> http://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/as-image/list-simple-1.html
> [3] Bug filed: https://bugzilla.mozilla.org/show_bug.cgi?id=633783

Yeah, I was using 3.6.  Unfortunately, if FF4 still fails when one
dimension is missing, then it can't exercise the behavior I'm trying
to explore here.  If you know of another way I can get FF to use an
image with one intrinsic dimension and no intrinsic ratio, let me know
so I can see what its list-style-image behavior is.

Don't worry, though - at the moment, FF simply doesn't give me any
information on the matter at hand.

Received on Monday, 14 February 2011 00:22:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC