mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
script: Support custom element states (#38564)
Also adds support for `:state`. Testing: Covered by existing tests --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
dcd25072d3
commit
04dd74dddb
20 changed files with 209 additions and 152 deletions
|
@ -35,8 +35,5 @@
|
|||
["::part(mypart):playing" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["::part(mypart):state(mystate)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["::part(mypart):xr-overlay" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
[parse-state.html]
|
||||
[":state(--foo)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
[":state(bar)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
[":state(--)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
[":state(--0)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
[":host(:state(--foo))" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["my-input[type=\\"foo\\"\]:state(checked)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["my-input[type=\\"foo\\"\]:state(--0)::before" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["my-input[type=\\"foo\\"\]:state(--0)::part(inner)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["my-input[type=\\"foo\\"\]:state(--0)::part(inner):state(bar)" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["::part(inner):state(bar)::before" should be a valid selector]
|
||||
expected: FAIL
|
||||
|
||||
["::part(inner):state(bar)::after" should be a valid selector]
|
||||
expected: FAIL
|
|
@ -1,12 +1,3 @@
|
|||
[ElementInternals-states.html]
|
||||
[CustomStateSet behavior of ElementInternals.states: Initial state]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet behavior of ElementInternals.states: Exceptions]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet behavior of ElementInternals.states: Modifications]
|
||||
expected: FAIL
|
||||
|
||||
[Updating a CustomStateSet while iterating it should work]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[custom-state-set-strong-ref.html]
|
||||
[customstateset doesn't crash after GC on detached node]
|
||||
expected: FAIL
|
|
@ -1,10 +1,6 @@
|
|||
[state-css-selector-nth-of.html]
|
||||
expected: ERROR
|
||||
[state selector has influence on nth-of when state is applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector only applies on given ident]
|
||||
expected: NOTRUN
|
||||
|
||||
[style is invalided on clear()]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,30 +1,6 @@
|
|||
[state-css-selector.html]
|
||||
[state selector has no influence when state is not applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector has no influence on sibling selectors when not applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector has influence when state is applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector influences siblings when state is applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector influences has() when state is applied]
|
||||
expected: FAIL
|
||||
|
||||
[state selector only applies on given ident]
|
||||
expected: FAIL
|
||||
|
||||
[state selector only applies to siblings on given ident]
|
||||
expected: FAIL
|
||||
|
||||
[state selector only applies to has() on given ident]
|
||||
expected: FAIL
|
||||
|
||||
[states added multiple times counts as one]
|
||||
expected: FAIL
|
||||
|
||||
[style is invalided on clear()]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
[state-pseudo-class.html]
|
||||
[:state() parsing passes]
|
||||
expected: FAIL
|
||||
|
||||
[:state(foo) serialization]
|
||||
expected: FAIL
|
||||
|
||||
[:state(foo) in simple cases]
|
||||
expected: FAIL
|
||||
|
||||
[:state(foo) and other pseudo classes]
|
||||
expected: FAIL
|
||||
|
||||
[:state(foo) and ::part()]
|
||||
expected: FAIL
|
||||
|
||||
[:state(foo) and :host()]
|
||||
expected: FAIL
|
||||
|
|
|
@ -4394,30 +4394,6 @@
|
|||
[OffscreenCanvasRenderingContext2D interface: operation roundRect(unrestricted double, unrestricted double, unrestricted double, unrestricted double, optional (unrestricted double or DOMPointInit or sequence<(unrestricted double or DOMPointInit)>))]
|
||||
expected: FAIL
|
||||
|
||||
[ElementInternals interface: attribute states]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[CustomStateSet interface: setlike<DOMString>]
|
||||
expected: FAIL
|
||||
|
||||
[UserActivation interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -13749,7 +13749,7 @@
|
|||
]
|
||||
],
|
||||
"interfaces.https.html": [
|
||||
"a9447edae08028bd992e3aa7c9e7a2a483baa446",
|
||||
"1397b723a1cb001521ac1b2032c380f1e02cf1f0",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
|
|
@ -62,6 +62,7 @@ test_interfaces([
|
|||
"CSSStyleRule",
|
||||
"CSSStyleSheet",
|
||||
"CSSSupportsRule",
|
||||
"CustomStateSet",
|
||||
"DataTransfer",
|
||||
"DataTransferItem",
|
||||
"DataTransferItemList",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue