- From: Håkon Wium Lie <howcome@opera.com>
- Date: Wed, 25 Jun 2008 00:34:31 +0200
- To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- Cc: www-style list <www-style@w3.org>
Also sprach Daniel Glazman:
>
> Håkon Wium Lie wrote:
> > Also sprach Maciej Stachowiak:
> >
> > > >>> style sheet 1: @variable { X: 10px }
> > > >>> style sheet 2: @variable { X: none }
> > > >>> style sheet 3: div { width: var(X) }
> >
> > > Your above situation is analogous to the following:
> > >
> > > style sheet 1: div.someclass { width: 30px; }
> > > style sheet 2: div#someid { width: 10px; }
> > > style sheet 3: div { width: 20px; }
> >
> > It's different because because the validity of the declarations is
> > known at parse-time. Invalid declarations should be dropped, and not
> > be visible in the DOM.
>
> Both are perfectly valid Håkon...
Not according to the proposal, section 3.3:
The declaration becomes invalid if the variable does not exist.
-h&kon
Håkon Wium Lie CTO °þe®ª
howcome@opera.com http://people.opera.com/howcome
Received on Tuesday, 24 June 2008 22:35:23 UTC