Re: [css-hierarchies] HTML style attribute

Things are different this time because it seems to me that the CSS 
Hierarchies proposal [1] will somehow extend the "4.1.8 section" of CSS2.1 
to include sub-rulesets. The HTML4 specification made it clear that the only 
difference between "style" and the body of a selector was the lack of 
brackets. However, HTML5 refers to a WD which uses another definition of the 
style attribute [2] which is not compatbile with the changes introduced by 
CSS Hierarchies [1].

My proposals to update the [2] working draft are :
(1) to normatively require to use "ruleitem" instead of "declaration" for 
browsers conforming to [1].
(2) to redefine "declaration" directly in the [1] proposal, if it's 
possible.



[1] http://dev.w3.org/csswg/css3-hierarchies/
[2] http://dev.w3.org/csswg/css-style-attr/#syntax and 
http://www.w3.org/TR/CSS21/syndata.html#syntax



-----Message d'origine----- 
From: Ms2ger
Sent: Saturday, March 03, 2012 2:13 PM
To: www-style@w3.org
Subject: Re: [css-hierarchies] HTML style attribute

On 03/03/2012 01:18 PM, François REMY wrote:
> Small questions for the spec editors of CSS Hierarchies: is it 
> possible/needed to modify the syntax of the “style” attribute to 
> accomodate hierarchies ?
>
> Sample:
>
> <a href=”#” style=”color: blue;&:hover { color: red; }”>
>      a link that doesn’t follow traditionnal look&feel of links in the 
> site
> </a>

Such a feature was proposed in 2000 in 'Syntax of CSS rules in HTML's
"style" attribute' [1], and was dropped in 2010 because nobody wanted to
implement it [2]. I doubt that this different syntax would be able to
convince implementers to take a different view this time around.

HTH
Ms2ger

[1] http://www.w3.org/TR/2000/WD-css-style-attr-20001025
[2] http://www.w3.org/TR/2010/WD-css-style-attr-20100121 

Received on Saturday, 3 March 2012 14:07:41 UTC