W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css-hierarchies] HTML style attribute

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Sat, 3 Mar 2012 15:07:15 +0100
Message-ID: <7FF97C7D440A4813A8168493E054C888@FREMYD2>
To: "Ms2ger" <ms2ger@gmail.com>, <www-style@w3.org>
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 

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

-----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.


[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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:56 UTC