<?xml-stylesheet href="../../../style/xhtml-full.css" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>:empty pseudo-class and XML/SGML constructs</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:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .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-149b.xml" title=":empty pseudo-class and empty elements"/>
  <link rel="next" href="css3-modsel-151.xml" title=":empty pseudo-class and whitespace"/>
  <link rel="last" href="css3-modsel-175c.xml" title="Parsing: Numbers in classes"/>
  <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-149b.xml" title=":empty pseudo-class and empty elements">&lt;==</a>
     Test #
     <a href="css3-modsel-151.xml" title=":empty pseudo-class and whitespace">==&gt;</a>
    </th>
   </tr>
   <tr>
    <td class="b">W3C Selectors</td>
    <td class="c" colspan="2">217 of 256 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 XML/SGML constructs (ID #150)</td>
    <td class="a">15-november-2001</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><!-- --><?test random PI?></address>
 <div class="text">This line should have a green background.</div>

 <p xmlns="http://www.example.org/css3tests">(Note. This test is based on an <a href="http://lists.w3.org/Archives/Member/w3c-css-wg/2001OctDec/thread.html#140">controversial and unpublished clarification to the spec</a> and is included for completeness only. Without the clarification, the spec says this test should be red, not green.)</p>

</div>
   <pre class="rules">
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
</pre>
   <pre class="rules">
 &lt;address&gt;&lt;!-- --&gt;&lt;?test random PI?&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;

 &lt;p xmlns=&quot;http://www.example.org/css3tests&quot;&gt;(Note. This test is based on an &lt;a href=&quot;http://lists.w3.org/Archives/Member/w3c-css-wg/2001OctDec/thread.html#140&quot;&gt;controversial and unpublished clarification to the spec&lt;/a&gt; and is included for completeness only. Without the clarification, the spec says this test should be red, not green.)&lt;/p&gt;

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