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

[css-style-attr][css3-namespace] Namespace prefixes in style attributes?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Tue, 16 Oct 2012 15:10:24 +0200
Message-ID: <507D5CC0.2060900@kozea.fr>
To: WWW Style <www-style@w3.org>
Hi,

With the new, generalized attr() function from css3-values, CSS 
qualified names can appear not only in selectors but also in property 
declarations. These qualified names depend on prefix declared in 
@namespace rules.

What prefix declarations should apply to style attributes? For example:

<foo xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:href="the_target.bar"
      style="content: '[' attr(xlink|href) ']';"/>

I see two possibilities:

* None. As if the declarations were in an implicit stylesheet that has
   no @namespace rule.
* If the host language has namespace prefixes (like XML does), "inherit"
   the namespace declarations from the element.

Either are fine IMO, but this should be defined somewhere.

-- 
Simon Sapin
Received on Tuesday, 16 October 2012 13:10:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT