- From: Anne van Kesteren <annevk@opera.com>
- Date: Mon, 13 Feb 2006 16:03:47 +0100
- To: "www-style@w3.org" <www-style@w3.org>
On Mon, 13 Feb 2006 15:56:07 +0100, Paul Mitchell <paul@paul-mitchell.me.uk> wrote: >> Mozilla does for XML documents. I believe most other UAs have an >> incremental parser for XML, but that still does not make >> <?xml-stylesheet href="#foo" ...?> some flawed concept. See also >> previous comments above. UA can start rendering without applying the >> not yet retrieved style sheet... > > This is really confusing me. I thought this was a discussion about > XHTML, an application of XML, not XML itself. Does Mozilla pre-load > XHTML documents before rendering them? Firefox doesn't appear to. Are you talking about XHTML or HTML-thought-to-be-XHTML? As in, XHTML with an XML media type or XHTML with a text/html media type? I'm not sure why it is confusing to just say XML as it is after all the XML parser we're discussing here, right? > I'm talking about about styling HTML (whatever incarnation) with CSS > (whatever incarnation), so off-the-wire rendering is fundamental, making > your embedded stylesheet _forward-referenced_ and therefore a flawed > concept _by definition_. There is no concept of "forward" in a stream of > data. You even say so yourself - "the not yet retrieved style sheet". > Does it exist, or doesn't it? Well, when the parser is done with parsing that can be determined and if it exists the style can be applied. There is a similar theoretical problem with: <!DOCTYPE html> <html> <head> <title>some example</title> </head> <body> <p>data <p>data <p>data <style> html { text-align:center } p { background:lime; color:black } </style> </body> </html> ... the styles are applied though. -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Monday, 13 February 2006 15:04:08 UTC