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

Re: [css3] "Selectors that People Actually Use"

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 21 Feb 2008 00:24:56 -0800
Message-ID: <47BD3558.7060504@inkedblade.net>
To: Håkon Wium Lie <howcome@opera.com>
CC: www-style@w3.org

Alan Gresley wrote:
> 
> .test {color: blue}
> .shadow {color: #d9efaf; text-shadow: 10px 10px 0 hsla(50, 15%, 15%, 0.5)}
> 
> <h1 class="test">Up<span class="shadow">Size</span></h1>
> 
> 
> Would should happen is that any UA that does support any property in a declaration
> should drop the whole declaration all together. Most UA do this since most don't
> support text shadow or hsla transparency color. 
> ...
>  Opera 9.5 does otherwise, it uses the whole declaration but since it does not
> understand hsla transparency color it uses the color of the span. The rendering
> is not pretty since the text shadow color is the same color of the text that is
> casting the shadow.

That is broken behavior. Opera should be dropping the declaration entirely if it
can't parse part of it. That's the whole point of forwards-compatible parsing.

~fantasai
Received on Thursday, 21 February 2008 08:25:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:01 GMT