diff --git a/Cargo.lock b/Cargo.lock index fc964a33289..a2b9440fadc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1641,7 +1641,7 @@ dependencies = [ [[package]] name = "dom" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "bitflags 2.6.0", ] @@ -4277,7 +4277,7 @@ dependencies = [ [[package]] name = "malloc_size_of" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "accountable-refcell", "app_units", @@ -6313,7 +6313,7 @@ dependencies = [ [[package]] name = "selectors" version = "0.25.0" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "bitflags 2.6.0", "cssparser", @@ -6601,7 +6601,7 @@ dependencies = [ [[package]] name = "servo_arc" version = "0.4.0" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "serde", "stable_deref_trait", @@ -6610,7 +6610,7 @@ dependencies = [ [[package]] name = "servo_atoms" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "string_cache", "string_cache_codegen", @@ -6963,7 +6963,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "static_prefs" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" [[package]] name = "strck" @@ -7022,7 +7022,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "style" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "app_units", "arrayvec", @@ -7080,7 +7080,7 @@ dependencies = [ [[package]] name = "style_config" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "lazy_static", ] @@ -7088,7 +7088,7 @@ dependencies = [ [[package]] name = "style_derive" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "darling", "proc-macro2", @@ -7118,7 +7118,7 @@ dependencies = [ [[package]] name = "style_traits" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "app_units", "bitflags 2.6.0", @@ -7469,7 +7469,7 @@ dependencies = [ [[package]] name = "to_shmem" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "cssparser", "servo_arc", @@ -7482,7 +7482,7 @@ dependencies = [ [[package]] name = "to_shmem_derive" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2024-10-04#1c069c5e62fb70a64f3305fcafed2c12073608b8" +source = "git+https://github.com/servo/stylo?branch=2024-10-04#bedab74ee38a04c9b8a8fe97e963a133ef5228c0" dependencies = [ "darling", "proc-macro2", diff --git a/resources/servo.css b/resources/servo.css index 543167dca24..2704ea7dc69 100644 --- a/resources/servo.css +++ b/resources/servo.css @@ -9,7 +9,6 @@ input { color: black; font-family: sans-serif; font-size: 0.8333em; - text-align: left; } textarea { diff --git a/tests/wpt/meta/css/css-cascade/scope-evaluation.html.ini b/tests/wpt/meta/css/css-cascade/scope-evaluation.html.ini index 7b6c4a7059d..112334ebbb1 100644 --- a/tests/wpt/meta/css/css-cascade/scope-evaluation.html.ini +++ b/tests/wpt/meta/css/css-cascade/scope-evaluation.html.ini @@ -2,9 +2,6 @@ [Single scope] expected: FAIL - [Scope can not match its own root without :scope] - expected: FAIL - [Selecting self with :scope] expected: FAIL @@ -26,15 +23,9 @@ [Multiple scopes from same @scope-rule, only one limited] expected: FAIL - [Multiple scopes from same @scope-rule, both limited] - expected: FAIL - [Nested scopes] expected: FAIL - [Nested scopes, reverse] - expected: FAIL - [Nested scopes, with to-selector] expected: FAIL @@ -47,21 +38,9 @@ [Simulated inclusive scoping limit] expected: FAIL - [Scope with no elements] - expected: FAIL - - [:scope direct adjacent sibling] - expected: FAIL - - [:scope indirect adjacent sibling] - expected: FAIL - [Relative selector inside @scope] expected: FAIL - [:scope in two different compounds] - expected: FAIL - [Scope root with :has()] expected: FAIL diff --git a/tests/wpt/meta/css/css-cascade/scope-visited-cssom.html.ini b/tests/wpt/meta/css/css-cascade/scope-visited-cssom.html.ini index 096de91cb9d..11fd49b8f2e 100644 --- a/tests/wpt/meta/css/css-cascade/scope-visited-cssom.html.ini +++ b/tests/wpt/meta/css/css-cascade/scope-visited-cssom.html.ini @@ -14,15 +14,9 @@ [:link as scoping root] expected: FAIL - [:visited as scoping root] - expected: FAIL - [:not(:visited) as scoping root] expected: FAIL - [:not(:link) as scoping root] - expected: FAIL - [:link as scoping root, :scope] expected: FAIL diff --git a/tests/wpt/meta/css/selectors/invalidation/is-where-pseudo-containing-hard-pseudo.html.ini b/tests/wpt/meta/css/selectors/invalidation/is-where-pseudo-containing-hard-pseudo.html.ini deleted file mode 100644 index aee13cdb5d8..00000000000 --- a/tests/wpt/meta/css/selectors/invalidation/is-where-pseudo-containing-hard-pseudo.html.ini +++ /dev/null @@ -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 diff --git a/tests/wpt/meta/css/selectors/invalidation/is.html.ini b/tests/wpt/meta/css/selectors/invalidation/is.html.ini deleted file mode 100644 index 39f96467488..00000000000 --- a/tests/wpt/meta/css/selectors/invalidation/is.html.ini +++ /dev/null @@ -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 diff --git a/tests/wpt/meta/css/selectors/invalidation/not-002.html.ini b/tests/wpt/meta/css/selectors/invalidation/not-002.html.ini deleted file mode 100644 index 27743b4fdfd..00000000000 --- a/tests/wpt/meta/css/selectors/invalidation/not-002.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[not-002.html] - [Invalidate nested :is() inside :not().] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/invalidation/where.html.ini b/tests/wpt/meta/css/selectors/invalidation/where.html.ini deleted file mode 100644 index 0c372eb853b..00000000000 --- a/tests/wpt/meta/css/selectors/invalidation/where.html.ini +++ /dev/null @@ -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 diff --git a/tests/wpt/meta/css/selectors/is-default-ns-002.html.ini b/tests/wpt/meta/css/selectors/is-default-ns-002.html.ini deleted file mode 100644 index b8de9607a92..00000000000 --- a/tests/wpt/meta/css/selectors/is-default-ns-002.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[is-default-ns-002.html] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/is-nested.html.ini b/tests/wpt/meta/css/selectors/is-nested.html.ini deleted file mode 100644 index 3eaa440121f..00000000000 --- a/tests/wpt/meta/css/selectors/is-nested.html.ini +++ /dev/null @@ -1,6 +0,0 @@ -[is-nested.html] - [Test nested :is() chooses highest specificity for class outside :is().] - expected: FAIL - - [Test nested :is() specificity for class within arguments.] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/is-specificity-shadow.html.ini b/tests/wpt/meta/css/selectors/is-specificity-shadow.html.ini deleted file mode 100644 index 02e353e2a76..00000000000 --- a/tests/wpt/meta/css/selectors/is-specificity-shadow.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[is-specificity-shadow.html] - [Specificity of :host() inside :is()] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/is-specificity.html.ini b/tests/wpt/meta/css/selectors/is-specificity.html.ini deleted file mode 100644 index d72a6d7b963..00000000000 --- a/tests/wpt/meta/css/selectors/is-specificity.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[is-specificity.html] - [Test :is() uses highest possible specificity] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/is-where-basic.html.ini b/tests/wpt/meta/css/selectors/is-where-basic.html.ini deleted file mode 100644 index 0ff9dc76ce8..00000000000 --- a/tests/wpt/meta/css/selectors/is-where-basic.html.ini +++ /dev/null @@ -1,45 +0,0 @@ -[is-where-basic.html] - [:is() matches expected elements] - expected: FAIL - - [:is(#a) matches expected elements] - expected: FAIL - - [:is(#a, #f) matches expected elements] - expected: FAIL - - [:is(#a, #c) :where(#a #d, #c #f) matches expected elements] - expected: FAIL - - [#c > :is(#c > #f) matches expected elements] - expected: FAIL - - [#c > :is(#b > #f) matches expected elements] - expected: FAIL - - [#a div:is(#d) matches expected elements] - expected: FAIL - - [:is(div) > div matches expected elements] - expected: FAIL - - [:is(*) > div matches expected elements] - expected: FAIL - - [:is(*) div matches expected elements] - expected: FAIL - - [div > :where(#e, #f) matches expected elements] - expected: FAIL - - [div > :where(*) matches expected elements] - expected: FAIL - - [:is(*) > :where(*) matches expected elements] - expected: FAIL - - [:is(#a + #b) + :is(#c) matches expected elements] - expected: FAIL - - [:is(#a, #b) + div matches expected elements] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/is-where-error-recovery.html.ini b/tests/wpt/meta/css/selectors/is-where-error-recovery.html.ini deleted file mode 100644 index af513ca1c36..00000000000 --- a/tests/wpt/meta/css/selectors/is-where-error-recovery.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[is-where-error-recovery.html] - [CSS Selectors: :is() and :where() error recovery] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/is-where-not.html.ini b/tests/wpt/meta/css/selectors/is-where-not.html.ini deleted file mode 100644 index 97a2fd2f3be..00000000000 --- a/tests/wpt/meta/css/selectors/is-where-not.html.ini +++ /dev/null @@ -1,54 +0,0 @@ -[is-where-not.html] - [:not(:is(#a)) matches expected elements] - expected: FAIL - - [:not(:where(#b)) matches expected elements] - expected: FAIL - - [:not(:where(:root #c)) matches expected elements] - expected: FAIL - - [:not(:is(#a, #b)) matches expected elements] - expected: FAIL - - [:not(:is(#b div)) matches expected elements] - expected: FAIL - - [:not(:is(#a div, div + div)) matches expected elements] - expected: FAIL - - [:not(:is(span)) matches expected elements] - expected: FAIL - - [:not(:is(div)) matches expected elements] - expected: FAIL - - [:not(:is(*|div)) matches expected elements] - expected: FAIL - - [:not(:is(*|*)) matches expected elements] - expected: FAIL - - [:not(:is(*)) matches expected elements] - expected: FAIL - - [:not(:is(svg|div)) matches expected elements] - expected: FAIL - - [:not(:is(:not(div))) matches expected elements] - expected: FAIL - - [:not(:is(span, b, i)) matches expected elements] - expected: FAIL - - [:not(:is(span, b, i, div)) matches expected elements] - expected: FAIL - - [:not(:is(#b ~ div div, * + #c)) matches expected elements] - expected: FAIL - - [:not(:is(div > :not(#e))) matches expected elements] - expected: FAIL - - [:not(:is(div > :not(:where(#e, #f)))) matches expected elements] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/is-where-pseudo-classes.html.ini b/tests/wpt/meta/css/selectors/is-where-pseudo-classes.html.ini deleted file mode 100644 index ddc276664b5..00000000000 --- a/tests/wpt/meta/css/selectors/is-where-pseudo-classes.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[is-where-pseudo-classes.html] - [:is() combined with pseudo-classes] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/is-where-pseudo-elements.html.ini b/tests/wpt/meta/css/selectors/is-where-pseudo-elements.html.ini deleted file mode 100644 index 087533a1e9b..00000000000 --- a/tests/wpt/meta/css/selectors/is-where-pseudo-elements.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[is-where-pseudo-elements.html] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/parsing/parse-is-where.html.ini b/tests/wpt/meta/css/selectors/parsing/parse-is-where.html.ini index 55f8b960e45..c698a273547 100644 --- a/tests/wpt/meta/css/selectors/parsing/parse-is-where.html.ini +++ b/tests/wpt/meta/css/selectors/parsing/parse-is-where.html.ini @@ -1,76 +1,4 @@ [parse-is-where.html] - [":is(div )" should be a valid selector] - expected: FAIL - - [":where(div )" should be a valid selector] - expected: FAIL - - [":is(div + bar, div ~ .baz)" should be a valid selector] - expected: FAIL - - [":where(div + bar, div ~ .baz)" should be a valid selector] - expected: FAIL - - [":is(:is(div))" should be a valid selector] - expected: FAIL - - [":where(:is(div))" should be a valid selector] - expected: FAIL - - [":is(:where(div))" should be a valid selector] - expected: FAIL - - [":where(:where(div))" should be a valid selector] - expected: FAIL - - [":host(:is(div))" should be a valid selector] - expected: FAIL - - [":host(:where(div))" should be a valid selector] - expected: FAIL - - [":host(:is(div ))" should be a valid selector] - expected: FAIL - - [":host(:where(div ))" should be a valid selector] - expected: FAIL - - [":host(:is(div .foo))" should be a valid selector] - expected: FAIL - - [":host(:where(div .foo))" should be a valid selector] - expected: FAIL - - [":is(:hover, :active)" should be a valid selector] - expected: FAIL - - [":where(:hover, :active)" should be a valid selector] - expected: FAIL - - [":is(div):hover" should be a valid selector] - expected: FAIL - - [":where(div):hover" should be a valid selector] - expected: FAIL - - [":is(div)::before" should be a valid selector] - expected: FAIL - - [":where(div)::before" should be a valid selector] - expected: FAIL - - [":is(::before)" should be a valid selector] - expected: FAIL - - [":where(::before)" should be a valid selector] - expected: FAIL - - [":is(div) + bar" should be a valid selector] - expected: FAIL - - [":where(div) + bar" should be a valid selector] - expected: FAIL - ["::part(foo):is(:hover)" should be a valid selector] expected: FAIL @@ -82,15 +10,3 @@ ["::part(foo):where([attr='value'\])" should be a valid selector] expected: FAIL - - [":not(:is(div))" should be a valid selector] - expected: FAIL - - [":not(:where(div))" should be a valid selector] - expected: FAIL - - [":not(:is(div .foo))" should be a valid selector] - expected: FAIL - - [":not(:where(div .foo))" should be a valid selector] - expected: FAIL diff --git a/tests/wpt/meta/css/selectors/parsing/parse-is.html.ini b/tests/wpt/meta/css/selectors/parsing/parse-is.html.ini deleted file mode 100644 index effe1a09629..00000000000 --- a/tests/wpt/meta/css/selectors/parsing/parse-is.html.ini +++ /dev/null @@ -1,19 +0,0 @@ -[parse-is.html] - [":is(#a)" should be a valid selector] - expected: FAIL - - [".a.b ~ :is(.c.d ~ .e.f)" should be a valid selector] - expected: FAIL - - [".a.b ~ .c.d:is(span.e + .f, .g.h > .i.j .k)" should be a valid selector] - expected: FAIL - - [":is(:hover,:focus)" should be a valid selector] - expected: FAIL - - ["a:is(:not(:hover))" should be a valid selector] - expected: FAIL - - [":is(ul,ol,.list) > [hidden\]" should be a valid selector] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/parsing/parse-where.html.ini b/tests/wpt/meta/css/selectors/parsing/parse-where.html.ini deleted file mode 100644 index b5ffbae6945..00000000000 --- a/tests/wpt/meta/css/selectors/parsing/parse-where.html.ini +++ /dev/null @@ -1,19 +0,0 @@ -[parse-where.html] - [":where(#a)" should be a valid selector] - expected: FAIL - - [":where(:hover,:focus)" should be a valid selector] - expected: FAIL - - [".a.b ~ .c.d:where(span.e + .f, .g.h > .i.j .k)" should be a valid selector] - expected: FAIL - - [":where(ul,ol,.list) > [hidden\]" should be a valid selector] - expected: FAIL - - ["a:where(:not(:hover))" should be a valid selector] - expected: FAIL - - [".a.b ~ :where(.c.d ~ .e.f)" should be a valid selector] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/query/query-is.html.ini b/tests/wpt/meta/css/selectors/query/query-is.html.ini deleted file mode 100644 index 3dea30f295f..00000000000 --- a/tests/wpt/meta/css/selectors/query/query-is.html.ini +++ /dev/null @@ -1,19 +0,0 @@ -[query-is.html] - [Selector '.a :is(:where(:where(.b ~ .c)))" should find the expected elements] - expected: FAIL - - [Selector '.a+:is(.b+.f, :is(.c>.e, .g))" should find the expected elements] - expected: FAIL - - [Selector '.b + :is(.c + .c + .c, .b + .c:not(span), .b + .c + .e) ~ .h" should find the expected elements] - expected: FAIL - - [Selector '.a :is(.b, .c)" should find the expected elements] - expected: FAIL - - [Selector '.a :is(.e+.f, .g>.b, .h)" should find the expected elements] - expected: FAIL - - [Selector '.a :is(.c#d, .e)" should find the expected elements] - expected: FAIL - diff --git a/tests/wpt/meta/css/selectors/query/query-where.html.ini b/tests/wpt/meta/css/selectors/query/query-where.html.ini deleted file mode 100644 index 4c72d25b187..00000000000 --- a/tests/wpt/meta/css/selectors/query/query-where.html.ini +++ /dev/null @@ -1,19 +0,0 @@ -[query-where.html] - [Selector '.a+:where(.b+.f, :where(.c>.e, .g))" should find the expected elements] - expected: FAIL - - [Selector '.a :where(:is(:is(.b ~ .c)))" should find the expected elements] - expected: FAIL - - [Selector '.a :where(.e+.f, .g>.b, .h)" should find the expected elements] - expected: FAIL - - [Selector '.a :where(.c#d, .e)" should find the expected elements] - expected: FAIL - - [Selector '.b + :where(.c + .c + .c, .b + .c:not(span), .b + .c + .e) ~ .h" should find the expected elements] - expected: FAIL - - [Selector '.a :where(.b, .c)" should find the expected elements] - expected: FAIL -