[Bug 21163] New: Advice about use of CSS namespaces in polyglot markup

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21163

            Bug ID: 21163
           Summary: Advice about use of CSS namespaces in polyglot markup
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
                    Graff)
          Assignee: eliotgra@microsoft.com
          Reporter: xn--mlform-iua@xn--mlform-iua.no
        QA Contact: public-html-bugzilla@w3.org
                CC: eliotgra@microsoft.com, mike@w3.org,
                    public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

The prefixed attributes, such as xml:lang="", are "namespaced" 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

<style type="text/css">
@namespace xml   "http://www.w3.org/XML/1998/namespace";
*[xml|lang]{background:lime;}
</style>

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 1 March 2013 03:49:15 UTC