<!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>Case sensitivity</title>
  <style type="text/css"><![CDATA[
 .cs { color: green; }
 .cs P { background: red; color: yellow; }
 .cs .a { background: red; color: yellow; }
 .cs .span1 span { background: red; color: yellow; }
 .cs .span2 { color: red; }
 .cs .span2 SPAN { color: green; }
 .cs .span2 span { background: red; color: yellow; }
 .ci { color: red; }
 .ci P { background: green; color: white; }
 .ci .a { background: green; color: white; }
 .ci .span1 span { background: green; color: white; }
 .ci .span2 SPAN { background: green; color: white; }
]]></style>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="common.js"></script>
 </head>
 <body>
<div>

 <div class="cs">
   <p id="t1">This line should be green.</p>
   <p class="A" id="t2">This line should be green.</p>
   <p class="span1"><SPAN id="t3">This line should be green.</SPAN></p>
   <p class="span2"><SPAN id="t4">This line should be green.</SPAN></p>
 </div>


</div>
<script><![CDATA[
test(function() {
  assert_color('t1', GREEN);
  assert_not_background_color('t1', RED);
  assert_color('t2', GREEN);
  assert_not_background_color('t2', RED);
  assert_color('t3', GREEN);
  assert_not_background_color('t3', RED);
  assert_color('t4', GREEN);
  assert_not_background_color('t4', RED);
}, 'Case sensitivity of selectors in XML');
]]></script>
</body>
</html>
