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

Boris Zbarsky wrote:

> > p[class*=""], p:not([class*=""]) {}
> 
> That's equivalent to the selector "p".
> 
> -Boris


Correct but which is of greater specificity?


div {width: 100px;height:100px;background:red}
div[id*=""], div:not([id*=""]) {background:blue}


<body>

<div id="">....</div>

</body>

Browsers supporting negation will show a blue box. It's just that Gecko is out on a limb by itself.


Alan

http://css-class.com/

Received on Tuesday, 19 February 2008 00:05:07 UTC