mirror of
https://github.com/servo/servo.git
synced 2025-09-09 06:28:22 +01:00
Correctly test CSSStyleRule.style.
Remove the assert_readonly test and add one to verify that assigning to CSSStyleRule.style correctly forwards to CSSStyleRule.style.cssText. We currently test for whether CSSStyleRule.style is read-only by trying to assign to it; however, the spec has it as actually: interface CSSStyleRule : CSSRule { ... [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; }; See: https://drafts.csswg.org/cssom/ The `PutForwards=cssText` means that assigning to CSSStyleRule.style should actually assign to style.cssText.
This commit is contained in:
parent
1f531f66ea
commit
b6667181ee
2 changed files with 19 additions and 2 deletions
|
@ -574763,7 +574763,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"cssom/CSSStyleRule.html": [
|
||||
"e9d0acfc0c9123dcd2295e217bdfc1ac5195c3f0",
|
||||
"9fe62d2e23709b77e9b5cda4522ec1c04d2940cf",
|
||||
"testharness"
|
||||
],
|
||||
"cssom/CSSStyleSheet.html": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue