style: Add support for is() and where() selectors (#34066)

Additionally, changes now need to be made to `servo.css` in order to
ensure that `<button>` text is centered the same way that it is for
`<input type=button>`. In the past the rule for centering text for the
latter was ignored because it used `:is()`.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2024-11-19 15:05:46 +01:00 committed by GitHub
parent 975e2ae859
commit 0eda2de19f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 12 additions and 393 deletions

View file

@ -1,36 +0,0 @@
[is-where-pseudo-containing-hard-pseudo.html]
[subject1 is red when .other-match added]
expected: FAIL
[subject1 is orangered when .parent added to parent]
expected: FAIL
[subject1 is orangered when .parent removed from parent]
expected: FAIL
[subject2 is darkred when .other-match added]
expected: FAIL
[subject2 is pink when .parent added to parent]
expected: FAIL
[subject2 is pink when .parent removed from parent]
expected: FAIL
[subject3 is green when .other-match added]
expected: FAIL
[subject3 is lightgreen when .parent added to parent]
expected: FAIL
[subject3 is lightgreen when .parent removed from parent]
expected: FAIL
[subject4 is darkgreen when .other-match added]
expected: FAIL
[subject4 is yellowgreen when .parent added to parent]
expected: FAIL
[subject4 is yellowgreen when .parent removed from parent]
expected: FAIL

View file

@ -1,15 +0,0 @@
[is.html]
[Invalidate :is() for simple selector arguments.]
expected: FAIL
[Invalidate :is() for compound selector arguments.]
expected: FAIL
[Invalidate :is() for complex selector arguments.]
expected: FAIL
[Invalidate nested :is().]
expected: FAIL
[Test specificity of :is().]
expected: FAIL

View file

@ -1,3 +0,0 @@
[not-002.html]
[Invalidate nested :is() inside :not().]
expected: FAIL

View file

@ -1,15 +0,0 @@
[where.html]
[Preconditions.]
expected: FAIL
[Invalidate :where() for simple selector arguments.]
expected: FAIL
[Invalidate :where() for compound selector arguments.]
expected: FAIL
[Invalidate :where() for complex selector arguments.]
expected: FAIL
[Invalidate nested :where().]
expected: FAIL