W3C home > Mailing lists > Public > www-style@w3.org > May 2007

Re: [Bug 360746] The right panel has disappeared at andrewdupont.net (fwd)

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 11 May 2007 13:14:36 -0500
Message-ID: <4644B28C.7070102@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: Ian Hickson <ian@hixie.ch>, www-style@w3.org

Anne van Kesteren wrote:
>>> 1)  Should a change of "rel" from "alternate stylesheet" to
>>> "stylesheet" have any effect?  If so, what?
> 
> You mean whether this should re-run the algorithm that decides which 
> style sheets to apply?

No, I mean exactly what I asked.  In Gecko, for a while, that change reloaded 
the stylesheet (reparsed it, etc).  I've changed things so that we no longer do 
that, but the question remains what the "right" behavior is, imo.

> I suppose it would be nice if HTMLStyleElement.disabled was changed 
> LinkStyle.sheet.disabled would change and vice versa. Which should solve 
> this issue, I think.

You mean that HTMLStyleElement would have out-of-band disabled state (not 
represented by any attribute), which would persist even if the sheet linked to 
changes?

What Gecko does right now is to just track the disabled state on the sheet; 
setting HTMLStyleElement.disabled just sets LinkStyle.sheet.disabled.

I could probably live with having the state in both places and keeping them 
synced...  That way a new sheet load after disabling the previous sheet will 
also be disabled.  Is that the behavior we want?

-Boris
Received on Friday, 11 May 2007 18:15:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT