<?xml-stylesheet href="../../../style/xhtml-full.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>:empty pseudo-class and CDATA</title>
  <meta name="author" content="Ian Hickson"/>
  <link rel="stylesheet" type="text/css" href="../../../style/xhtml-full.css"/> <!-- yes this means compliant UAs get to import this twice -->
  <style type="text/css"><![CDATA[
 address { background: lime; margin: 0; height: 1em; display: block; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
]]></style>
  <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
  <link rel="prev" href="css3-modsel-152.xml" title=":empty pseudo-class and elements"/>
  <link rel="next" href="css3-modsel-154.xml" title="Syntax and parsing"/>
  <link rel="last" href="css3-modsel-182.xml" title="Namespaces and \: in selectors"/>
  <link rel="up" href="./index.html"/>
  <link rel="top" href="../../../index.html"/>
 </head>
 <body>
  <table class="testDescription">
   <tr>
    <th class="b">CSS 3 Module</th> <!-- XXX hard coded to say CSS 3 -->
    <th class="c" colspan="2">
     <a href="css3-modsel-152.xml" title=":empty pseudo-class and elements">&lt;==</a>
     Test #
     <a href="css3-modsel-154.xml" title="Syntax and parsing">==&gt;</a>
    </th>
   </tr>
   <tr>
    <td class="b">W3C Selectors</td>
    <td class="c" colspan="2">226 of 271 of the static tests category</td>
   </tr>
   <tr>
    <th class="b">Testing</th>
    <th class="a">Date</th>
    <th class="a">Revision</th>
   </tr>
   <tr>
    <td class="b">:empty pseudo-class and CDATA (ID #153)</td>
    <td class="a">2001-11-15</td>
    <td class="a">1.0</td>
   </tr>
  </table>
  <p class="WARNING">NOTE: The UA must support namespaces for this test.</p>
  <div class="testSource">
   <div class="testText">
 <address xmlns="http://tests.example.org/xml-only/"><![CDATA[]]></address>
 <div class="text">This line should have a green background.</div>

 <p>(Note. This test may be invalidated depending on the results of <a href="http://lists.w3.org/Archives/Member/w3c-css-wg/2001OctDec/thread.html#140">a discussion</a> regarding a controversial and unpublished clarification to the spec.)</p>

</div>
   <pre class="rules">
 address { background: lime; margin: 0; height: 1em; display: block; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
</pre>
   <pre class="rules">
 &lt;address xmlns=&quot;http://tests.example.org/xml-only/&quot;&gt;&lt;![CDATA[]]&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;

 &lt;p&gt;(Note. This test may be invalidated depending on the results of &lt;a href=&quot;http://lists.w3.org/Archives/Member/w3c-css-wg/2001OctDec/thread.html#140&quot;&gt;a discussion&lt;/a&gt; regarding a controversial and unpublished clarification to the spec.)&lt;/p&gt;

</pre>
  </div>
 </body>
</html>