servo/components/script_bindings
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
..
codegen Support single-value <select> elements (#35684) 2025-04-03 12:11:55 +00:00
webidls script: Implement deprecated CSSStyleSheet members (#36313) 2025-04-03 15:56:47 +00:00
build.rs script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
callback.rs Move various reflector types and traits to script_bindings (#35279) 2025-02-04 06:58:08 +00:00
Cargo.toml Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
constant.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
conversions.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
error.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
finalize.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
inheritance.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
interfaces.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
iterable.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
lib.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
like.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
lock.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
num.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
proxyhandler.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
record.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00
reflector.rs Move various reflector types and traits to script_bindings (#35279) 2025-02-04 06:58:08 +00:00
root.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
script_runtime.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
str.rs Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
trace.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00
utils.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
weakref.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00