css-case-insensitive-html-attributes-selector.html 434 B

123456789101112
  1. <!doctype html>
  2. <link rel="match" href="reference/css-case-insensitive-html-attributes-selector-ref.html" />
  3. <style>
  4. div[type=one] { /* 'type' is a case-insensitive html attribute */
  5. background: red;
  6. }
  7. div[test=two] { /* 'test' is NOT a case-insensitive html attribute */
  8. background: green;
  9. }
  10. </style>
  11. <div type="ONE">I have a red background</div>
  12. <div type="TWO">I don't have a green background</div>