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

Re: [css-hierarchies] HTML style attribute

From: Alexander Shpack <shadowkin@gmail.com>
Date: Tue, 6 Mar 2012 09:52:39 +0200
Message-ID: <CAK4xKX=GiVhZtMa_8xRz3BzEMmzNJBgR6XKzoNuLLVFAJyK5qA@mail.gmail.com>
To: François REMY <fremycompany_pub@yahoo.fr>
Cc: CSS 3 W3C Group <www-style@w3.org>
On Sat, Mar 3, 2012 at 2:18 PM, François REMY <fremycompany_pub@yahoo.fr> 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>
>

& notation is not clear, imo. I think, the possibility to write a
usual styles is better. Authors may use "this" keyword for defining
style context

<a href=”#” style=”this {color: blue;}  this:hover { color: red; };
this::before { content: '+'}”>
a link that doesn’t follow traditionnal look&feel of links in the site
</a>

-- 
s0rr0w
Received on Tuesday, 6 March 2012 07:53:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT