- From: Kelly Miller <lightsolphoenix@gmail.com>
- Date: Mon, 05 Jun 2006 03:06:22 -0400
- To: Håkon Wium Lie <howcome@opera.com>
- CC: David Woolley <david@djwhome.demon.co.uk>, www-style@w3.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Håkon Wium Lie wrote: | Also sprach David Woolley: | | > > You wanted to see h4 elements, no? If so, I suggest: | > > | > > body * { display: none } | > | > This will match all h4 elements, and has a higher specificity | > than: | > | > > h4 { display: block } | | Actually, it has the same specificity -- the * doesn't count [1]. However, | it's still not right as h4's children will be matched by "body *". | Using "body > *" is probably a better idea. | | [1] http://www.w3.org/TR/2006/WD-CSS21-20060411/cascade.html#specificity | | -h&kon | Håkon Wium Lie CTO °þe®ª | howcome@opera.com http://people.opera.com/howcome | | | The problem, as already mentioned in this conversation, is that this would only select h4 children, not all h4 elements. To select all h4 elements would require selecting elements based on whether or not they have an h4 descendant, which CSS cannot do right now. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFEg9fsvCLXx0V8XHQRAmN3AKCjI8G7IF9WPJtSeL5t6RVtO6oSHgCfV7bC IzWGwNxV/2lxMhktcNtN5uc= =GhNl -----END PGP SIGNATURE-----
Received on Monday, 5 June 2006 03:47:37 UTC