Oriol Brufau
b394727ff6
Upgrade Stylo to 2025-06-03 ( #37444 )
...
This continues #36835
Changelog:
- Upstream:
ca369cbc83...7e2201c32c
- Servo fixups:
f387e6396c...2e1f66b068
Stylo tracking issue: https://github.com/servo/stylo/issues/200
---------
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-06-19 12:30:32 +00:00
webbeef
30fdf48ca6
Implement CSSStyleSheet::replaceSync ( #36586 )
...
Implements the `replaceSync` method on CSSStyleSheet
Testing: Covered by wpt tests. Expectations are updated.
Signed-off-by: webbeef <me@webbeef.org>
2025-04-23 15:29:01 +00:00
Oriol Brufau
10f6f50c61
script: Implement CSSStyleSheet constructor ( #36521 )
...
https://drafts.csswg.org/cssom/#dom-cssstylesheet-cssstylesheet
Testing: covered by WPT
This is part of #36162
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-15 14:05:13 +00:00
Oriol Brufau
e1213f9dbc
Enable layout_grid_enabled pref for all tests ( #36316 )
...
This is part of #36315
Testing: This improves several tests that rely on this feature
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-03 18:48:05 +00:00
Oriol Brufau
f29c182929
script: Implement deprecated CSSStyleSheet members ( #36313 )
...
Implements `rules`, `addRule()` and `removeRule()` for `CSSStyleSheet`.
https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
This is part of #36162
Testing:
- `/css/css-cascade/at-scope-parsing.html`
- `/css/css-conditional/at-supports-whitespace.html`
- `/css/css-nesting/invalidation-004.html`
- `/css/css-nesting/parsing.html`
- `/css/css-nesting/serialize-group-rules-with-decls.html`
- `/css/css-syntax/custom-property-rule-ambiguity.html`
- `/css/css-syntax/invalid-nested-rules.html`
- `/css/css-syntax/trailing-braces.html`
- `/css/css-syntax/var-with-blocks.html`
- `/css/css-transitions/parsing/starting-style-parsing.html`
- `/css/cssom/CSSStyleSheet.html`
- `/css/cssom/idlharness.html`
- `/css/cssom/insertRule-across-context.html`
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-03 15:56:47 +00:00
Oriol Brufau
0cdc1dcf72
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>
2025-04-01 19:18:07 +00:00
Oriol Brufau
e8d5a019a4
Enable CSS parent selector (&
) ( #36249 )
...
Bumps Stylo to servo/stylo#164
Changelog:
bc4717c784...600b5c4297
Testing: covered by WPT
This is part of https://github.com/servo/servo/issues/36245
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-01 09:08:18 +00:00
Oriol Brufau
77525cef84
Enable css-nesting WPT tests ( #36246 )
...
So that we can see the improvement when enabling the feature.
Testing: This PR enables tests
This is part of #36245
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-03-31 19:07:27 +00:00