tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

selectors-attr-white-space-001.html (796B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Selectors: White space in attribute selectors</title>
      4 <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au"/>
      5 <link rel="help" href="https://drafts.csswg.org/selectors-3/#w3cselgrammar"/>
      6 <link rel="help" href="https://drafts.csswg.org/selectors-4/#grammar"/>
      7 <link rel="match" href="selectors-attr-white-space-001-ref.html"/>
      8 <style>
      9 body { color: red; }
     10 [ data-test-1] { color: green; }
     11 [data-test-2 ] { color: green; }
     12 [data-test-3 = x] { color: green; }
     13 [ |data-test-4] { color: green; }
     14 [ | data-test-4] { color: red; }
     15 </style>
     16 <p data-test-1="">This text should be green.</p>
     17 <p data-test-2="">This text should be green.</p>
     18 <p data-test-3="x">This text should be green.</p>
     19 <p data-test-4="">This text should be green.</p>