W3C home > Mailing lists > Public > www-style@w3.org > February 2006

Re: [BULK] - Re: [XHTML2] Spirit of "1.1.3. XHTML 2 and Presentation" (PR#7759)

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>
Message-ID: <op.s4w2sl0r64w2qv@id-c0020.oslo.opera.com>

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  

  <!DOCTYPE html>
   <head> <title>some example</title> </head>
     html { text-align:center }
     p { background:lime; color:black }

... the styles are applied though.

Anne van Kesteren
Received on Monday, 13 February 2006 15:04:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:23 UTC