<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21163</bug_id>
          
          <creation_ts>2013-03-01 03:49:14 +0000</creation_ts>
          <short_desc>Advice about use of CSS namespaces in polyglot markup</short_desc>
          <delta_ts>2013-04-24 02:12:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83859</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2013-03-01 03:49:14 +0000</bug_when>
    <thetext>The prefixed attributes, such as xml:lang=&quot;&quot;, are &quot;namespaced&quot; within XHTML, SVG and MathML. Thus, they can be styled via CSS3 namespaces.

http://www.w3.org/TR/css3-namespace/

As for the HTML serialization, then xml:lang does not have the xml namespace effect. This means that a style such as

&lt;style type=&quot;text/css&quot;&gt;
@namespace xml   &quot;http://www.w3.org/XML/1998/namespace&quot;;
*[xml|lang]{background:lime;}
&lt;/style&gt;

would work XHTML, SVG and Math, it would not work in HTML.

While authors might seldom use this way of styling, the spec should explain whether it can be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86659</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-04-24 02:12:48 +0000</bug_when>
    <thetext>Added section:

7.3.2 Attributes Styled Using CSS Namespaces

The prefixed attributes, such as xml:lang=&quot;&quot;, are &quot;namespaced&quot; within XHTML, SVG and MathML. Thus, they can be styled via CSS3 namespaces. [CSS3NAMESPACE] However, for the HTML serialization, xml:lang would then not have the xml namespace effect. A style such as the following is valid in XHTML, SVG, and MathML, it does not work in HTML and is therefore not used in polyglot markup. 


Example 11
&lt;style type=&quot;text/css&quot;&gt;
@namespace xml   &quot;http://www.w3.org/XML/1998/namespace&quot;;
*[xml|lang]{background:lime;}
&lt;/style&gt;


new revision: 1.101; previous revision: 1.100</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>