HTTP Link headers [was: Re: <link> vs <style></style>]

Hi

It's great that Mozilla will support this sometime :-)

One question, the stuff in the HTML4 spec about linking to style sheets
in HTTP headers:

http://www.w3.org/TR/html4/present/styles.html#h-14.6

was written before media types were introduced in CSS2:

http://www.w3.org/TR/REC-CSS2/media.html

So would the following work and/or be valid?

Link: </css/print.css>; rel="stylesheet"; title="Print"; media="print"

Chris

On Sun 17-Dec-2000 at 02:40:55 -0800, Peter S. Linss wrote:
> A Mozilla based browser (when HTTP Link headers get hooked up) will
> not pull the stylesheet twice in that scenario. It's smart enough to
> see the same sheet linked to the same document and re-use it without
> even attempting to re-load it, no matter where the sheet is linked,
> even @imports. That's the job of the CSSStyleSheetLoader, one of my
> favorite pieces of code in the whole system. Thank Ian's Evil Import
> Test for forcing me to write it :-)
> 
> It WILL be linked to the document twice though, (because that's what
> you specified) so it'll have to process the style information twice
> when resolving style, probably not a noticeable slowdown unless your
> stylesheet is HUGE.
> 
> I can't speak for other browsers...

-- 
Chris Croome <chris@webarchitects.co.uk>
work: http://www.webarchitects.co.uk/
play: http://chris.croome.net/

Received on Tuesday, 19 December 2000 08:33:07 UTC