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 data-foo="Bar">This text should be green.</p>
<p data-foo="Baz">This text should be green.</p>
<p>This text should be black.</p>
</body>
</html>

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>

View file

@ -30,6 +30,7 @@
# inline_border_a.html inline_border_b.html
== anon_block_inherit_a.html anon_block_inherit_b.html
== attr_exists_selector.html attr_exists_selector_ref.html
== attr_selector_case_sensitivity.html attr_selector_case_sensitivity_ref.html
!= noteq_attr_exists_selector.html attr_exists_selector_ref.html
== data_img_a.html data_img_b.html
== background_style_attr.html background_ref.html