mirror of
https://github.com/servo/servo.git
synced 2025-08-24 14:48:21 +01:00
Add [foo=bar i] case-insensitive attribute selectors.
This commit is contained in:
parent
2f9808e130
commit
1117d86b63
5 changed files with 81 additions and 17 deletions
17
tests/ref/attr_selector_case_sensitivity_ref.html
Normal file
17
tests/ref/attr_selector_case_sensitivity_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue