W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Dynamic pseudo class cascade

From: Staffan Mhln <staffan.mahlen@comhem.se>
Date: Mon, 18 Apr 2005 17:38:28 +0200
To: www-style@w3.org
Message-ID: <4263F094.32286.286A40@localhost>

Hi,
Is it a good idea that the dynamic pseudo classes work the way
they do in the cascade versus non-dynamic rules?

If an UA wanted to create a default style like:
a:focus {background-color: blue; color: white}
and then the author writes the style rule:
a {color: blue}
things wont cascade very well. If the UA tries to avoid the problem 
by using non-CSS features, the author cannot override them.

Perhaps this would work better if the dynamic pseudo classes sort of
cascaded by themselves, that is, an author had to explicitly override
the dynamic pseudo classes to overide such user agent rules? If so it
might be possible to reduce the restriction on how they need to be
written in correct order as well.

 /Staffan
Received on Monday, 18 April 2005 15:38:25 GMT

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