Re: Parsing list-style shorthand property

On Sun, 31 Oct 2004, Michael Winter wrote:
> 
> A thread in alt.html[1] began due to the perceived inability of Opera to parse
> a list-style rule of the form:
> 
>   list-style: <type> none;
> 
> where <type> is a valid value other than none. In such an instance, it appears
> that Opera treats this rule as erroneous and ignores it entirely.

Opera internal bug 155295.


> So, for the rule:
> 
>   list-style: <type> <position> none;
> 
> MUST a user agent be able to apply:
> 
>   list-style-type: <type>;
>   list-style-position: <position>;
>   list-style-image: none;
> 
> for any combination of valid values?

Yes. There is no ambiguity: 'none', if specified, applies to both -image 
and -type, unless one or the other is specified explicitly, in which case 
the 'none' value applies to the other one.

See http://www.w3.org/TR/CSS21/generate.html#lists, especially at the end 
of the page.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 1 November 2004 09:03:25 UTC