mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support [*|attr], attribute selectors in any namespace (fixes #1558)
This commit is contained in:
parent
070b6046aa
commit
b9e23563bb
7 changed files with 57 additions and 10 deletions
|
@ -1,13 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Attribute exists selector: [foo]</title>
|
||||
<title>Attribute exists selector: [foo] and [*|foo]</title>
|
||||
<style>
|
||||
p[data-green] { color: green }
|
||||
p[*|data-red] { color: red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p data-green="">This text should be green.</p>
|
||||
<p data-red="">This text should be red.</p>
|
||||
<p>This text should be black.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<p style="color: green">This text should be green.</p>
|
||||
<p style="color: red">This text should be red.</p>
|
||||
<p>This text should be black.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This text should be green.</p>
|
||||
<p>This text should be red.</p>
|
||||
<p>This text should be black.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue