Add support for HTMLStyleElement.type (#35038)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-01-20 18:21:16 -08:00 committed by GitHub
parent 4705881692
commit e43baed585
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 51 additions and 145 deletions

View file

@ -6208,18 +6208,12 @@
[HTMLStyleElement interface: attribute blocking]
expected: FAIL
[HTMLStyleElement interface: attribute type]
expected: FAIL
[HTMLStyleElement interface: document.createElement("style") must inherit property "media" with the proper type]
expected: FAIL
[HTMLStyleElement interface: document.createElement("style") must inherit property "blocking" with the proper type]
expected: FAIL
[HTMLStyleElement interface: document.createElement("style") must inherit property "type" with the proper type]
expected: FAIL
[HTMLBodyElement interface: attribute link]
expected: FAIL

View file

@ -2477,120 +2477,6 @@
[style.nonce: IDL set to object "test-valueOf"]
expected: FAIL
[style.type: typeof IDL attribute]
expected: FAIL
[style.type: IDL get with DOM attribute unset]
expected: FAIL
[style.type: setAttribute() to ""]
expected: FAIL
[style.type: setAttribute() to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo "]
expected: FAIL
[style.type: setAttribute() to undefined]
expected: FAIL
[style.type: setAttribute() to 7]
expected: FAIL
[style.type: setAttribute() to 1.5]
expected: FAIL
[style.type: setAttribute() to "5%"]
expected: FAIL
[style.type: setAttribute() to "+100"]
expected: FAIL
[style.type: setAttribute() to ".5"]
expected: FAIL
[style.type: setAttribute() to true]
expected: FAIL
[style.type: setAttribute() to false]
expected: FAIL
[style.type: setAttribute() to object "[object Object\]"]
expected: FAIL
[style.type: setAttribute() to NaN]
expected: FAIL
[style.type: setAttribute() to Infinity]
expected: FAIL
[style.type: setAttribute() to -Infinity]
expected: FAIL
[style.type: setAttribute() to "\\0"]
expected: FAIL
[style.type: setAttribute() to null]
expected: FAIL
[style.type: setAttribute() to object "test-toString"]
expected: FAIL
[style.type: setAttribute() to object "test-valueOf"]
expected: FAIL
[style.type: IDL set to ""]
expected: FAIL
[style.type: IDL set to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo "]
expected: FAIL
[style.type: IDL set to undefined]
expected: FAIL
[style.type: IDL set to 7]
expected: FAIL
[style.type: IDL set to 1.5]
expected: FAIL
[style.type: IDL set to "5%"]
expected: FAIL
[style.type: IDL set to "+100"]
expected: FAIL
[style.type: IDL set to ".5"]
expected: FAIL
[style.type: IDL set to true]
expected: FAIL
[style.type: IDL set to false]
expected: FAIL
[style.type: IDL set to object "[object Object\]"]
expected: FAIL
[style.type: IDL set to NaN]
expected: FAIL
[style.type: IDL set to Infinity]
expected: FAIL
[style.type: IDL set to -Infinity]
expected: FAIL
[style.type: IDL set to "\\0"]
expected: FAIL
[style.type: IDL set to null]
expected: FAIL
[style.type: IDL set to object "test-toString"]
expected: FAIL
[style.type: IDL set to object "test-valueOf"]
expected: FAIL
[head.tabIndex: setAttribute() to "7\\v"]
expected: FAIL

View file

@ -1,9 +0,0 @@
[style_type_change.html]
[Check initial styleSheets length type]
expected: FAIL
[Change type from invalid type to valid type]
expected: FAIL
[Change type from valid type to invalid type]
expected: FAIL

View file

@ -1,6 +0,0 @@
[style_type_html.html]
[With a whitespace-surrounded type attribute, the style should not apply]
expected: FAIL
[With a charset parameter in the type attribute, the style should not apply]
expected: FAIL

View file

@ -1,2 +0,0 @@
[update-style-block-ascii-case-insensitive.html]
expected: FAIL