https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0322f4a8924395e866e774d68200e5844e72f793 authored by Lennart Grahl on 19 May 2018, 00:04:14 UTC
Add a test based on discussion in https://github.com/w3c/webrtc-pc/pull/1851 with @jan-ivar
Tip revision: 0322f4a
css3-modsel-97b.xml
<csstest def="Attribute existence selector with declared namespace" module="W3C Selectors" modulename="css3-modsel" number="97b" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">

<author>Daniel Glazman</author>
<author>Ian Hickson</author>

<cssrules>@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
*[a|title] {background-color : red }
</cssrules>

<code>
 <p title="a paragraph" xmlns="http://www.w3.org/1999/xhtml">This paragraph should be unstyled.</p>
 <q a:title="a paragraph" xmlns="http://www.example.org/a">This paragraph should have a green background.</q>
 <r b:title="a paragraph" xmlns="http://www.example.org/b">This paragraph should be unstyled.</r>
</code>
</csstest>
back to top