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

Re: Dynamic pseudo class cascade

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Apr 2005 14:50:23 -0500
Message-ID: <4266B27F.9070806@mit.edu>
To: www-style@w3.org

Staffan Måhlén wrote:
> a {color: black; background-color: white}
> it would still override the :focus colors

Right.  But then the page clearly wants the <a> to be colored that way. 
  How do you know that coloring it with the UA focus colors won't cause 
issues with the page look?

> Possibly something like adding a dimension where any property that 
> had dynamic pseudo-classes in its selector would be sorted to the end 
> of:
>    5. user important style sheets "
>    6. Dynamic user agent
>    7. Dynamic user normal
>    8. Dynamic author normal 

This has several issues; off the top of my head:

1)  User !important sheets that want to override author sheets have to
     manually style all sorts of dynamic stuff.
2)  Where do things like:

       body:hover a

     get sorted?  How does that compare to:

       body a
       body a:hover
       body:hover a:hover

3)  With this setup a :hover rule by the author will still override a
     :hover:active rule in the UA sheet, so you're back at square 1.

Received on Wednesday, 20 April 2005 19:50:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC