David Storey wrote:
maybe, but any is not backwards compatible so not really an option to
use any time soon, and is (AFAICT) a Mozilla only extension that is not
in any specification. As it isn't even in any spec, even if it does get
accepted by the CSS working group, it will take ages to be specced up,
refined and included in the other browsers.
I think that its incredible usefulness for this particular scenario will
lead to very quick uptake by other browser engines as their own HTML5
parsing support comes online, eg. WebKit switched over (in development
builds) earlier this month:
http://webkit.org/blog/1273/the-html5-parsing-algorithm/
I'm hopeful standardizing of any (or similar) can go a bit quicker than
'normal' as the main benefit of this selector is brevity, and the main
drawback of vendor extensions is the lack of brevity from having to
state the same thing five times. I won't be holding my breath, mind you...
This is why I just stick to using the appropriate h* element for the
section level that stick to h1, as it is more backwards compatible and
solves all the head scratching.
Of course in practical situations you should just pick and choose the
parts of HTML5 that work across browsers and are completely backwards
compatible, but some of us enjoy a bit of head scratching now and again :)
Rob
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************