mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Turn CSSStyleRule
into a CSSGroupingRule
subclass (#36254)
Note that `StyleRule` may not have the `CssRules` readily available, they may need to be created. So the previous approach of providing `CSSGroupingRule` with the `CssRules` is no good: it would require writing them in advance, just in case they end up being used. Therefore, this removes the `CSSGroupingRule::rules` field. Instead, they are lazily obtained in `CSSGroupingRule::rulelist()` by downcasting and calling the appropriate method for the subclass. Testing: covered by WPT Fixes: #36245 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dba8a0c22c
commit
0cdc1dcf72
8 changed files with 83 additions and 76 deletions
27
tests/wpt/meta/css/css-nesting/cssom.html.ini
vendored
27
tests/wpt/meta/css/css-nesting/cssom.html.ini
vendored
|
@ -1,33 +1,6 @@
|
|||
[cssom.html]
|
||||
[CSSStyleRule is a CSSGroupingRule]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 1]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 2]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 3]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 4]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 5]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 6]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 7]
|
||||
expected: FAIL
|
||||
|
||||
[Simple CSSOM manipulation of subrules 9]
|
||||
expected: FAIL
|
||||
|
||||
[Manipulation of nested declarations through CSSOM]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue