On Sat, Jan 17, 2009 at 07:17:53PM +0000, corvid wrote:
Johannes wrote:
On Sat, Jan 17, 2009 at 04:29:37PM +0000, corvid wrote:
I wonder whether there's a way to specify something like code, tt, pre, samp, kbd {font-family: mono !important} * {font-family: sans !important} but have sans only for elements not otherwise specified.
According to http://www.w3.org/TR/CSS21/cascade.html#specificity the first rule should overrule the second one if it matches. So this should work. Note, that the specificity stuff is not fully implemented yet, but it should be sufficient for the example above.
Does it work for you?
Yes, I tried: code, tt, pre, samp, kbd {color: green !important} * {color: red !important} on http://www.dillo.org/CSS.html and it seemed to work ok.
Also, is <element style="[whatever]"> supposed to work?
Yes, since today :-)