Add [foo=bar i] case-insensitive attribute selectors.

This commit is contained in:
Simon Sapin 2014-10-10 14:26:23 +01:00
parent 2f9808e130
commit 1117d86b63
5 changed files with 81 additions and 17 deletions

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>Attribute selector case-sensitivity: [foo=bar] and [foo=bar i]</title>
<style>
p[data-foo=Bar] { color: green }
p[data-foo=bar] { color: red }
p[data-foo=baz i] { color: green }
p[data-foo=baz] { color: red }
</style>
</head>
<body>
<p style="color: green">This text should be green.</p>
<p style="color: green">This text should be green.</p>
<p>This text should be black.</p>
</body>
</html>