On Sat, 11 Feb 2006 21:51:28 +0100, Paul Mitchell <paul@paul-mitchell.me.uk> wrote: >>>> As for <style>, supposedly this works: >>>> >>>> <?xml-stylesheet href="#xxx" type="text/css"?> >>>> <root> >>>> <foo xml:id="xxx"> >>>> bar { background: green; } >>>> </foo> >>>> <bar>test</bar> >>>> </root> > > In your example, the UA doesn't need style #foo until element id foo is > encountered, which comes after the style has been defined, not before as > in the previous example, where the style for element root is needed > before the stylesheet that defines it has materialised. Not really. Rendering usually starts after parsing. I can see that it might give some problems for incremental parsers, but those problems would not be much different from a script inserting a style block when the parser is halfway... -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>Received on Monday, 13 February 2006 13:03:54 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:43 GMT