Add support for HTMLStyleElement.media (#35148)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-01-24 20:34:58 -08:00 committed by GitHub
parent fe5a075766
commit 8748071329
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1389 additions and 1364 deletions

View file

@ -6202,15 +6202,9 @@
[HTMLMetaElement interface: document.createElement("meta") must inherit property "scheme" with the proper type]
expected: FAIL
[HTMLStyleElement interface: attribute media]
expected: FAIL
[HTMLStyleElement interface: attribute blocking]
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

View file

@ -2249,120 +2249,6 @@
[style.tabIndex: IDL set to -2147483648]
expected: FAIL
[style.media: typeof IDL attribute]
expected: FAIL
[style.media: IDL get with DOM attribute unset]
expected: FAIL
[style.media: setAttribute() to ""]
expected: FAIL
[style.media: 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.media: setAttribute() to undefined]
expected: FAIL
[style.media: setAttribute() to 7]
expected: FAIL
[style.media: setAttribute() to 1.5]
expected: FAIL
[style.media: setAttribute() to "5%"]
expected: FAIL
[style.media: setAttribute() to "+100"]
expected: FAIL
[style.media: setAttribute() to ".5"]
expected: FAIL
[style.media: setAttribute() to true]
expected: FAIL
[style.media: setAttribute() to false]
expected: FAIL
[style.media: setAttribute() to object "[object Object\]"]
expected: FAIL
[style.media: setAttribute() to NaN]
expected: FAIL
[style.media: setAttribute() to Infinity]
expected: FAIL
[style.media: setAttribute() to -Infinity]
expected: FAIL
[style.media: setAttribute() to "\\0"]
expected: FAIL
[style.media: setAttribute() to null]
expected: FAIL
[style.media: setAttribute() to object "test-toString"]
expected: FAIL
[style.media: setAttribute() to object "test-valueOf"]
expected: FAIL
[style.media: IDL set to ""]
expected: FAIL
[style.media: 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.media: IDL set to undefined]
expected: FAIL
[style.media: IDL set to 7]
expected: FAIL
[style.media: IDL set to 1.5]
expected: FAIL
[style.media: IDL set to "5%"]
expected: FAIL
[style.media: IDL set to "+100"]
expected: FAIL
[style.media: IDL set to ".5"]
expected: FAIL
[style.media: IDL set to true]
expected: FAIL
[style.media: IDL set to false]
expected: FAIL
[style.media: IDL set to object "[object Object\]"]
expected: FAIL
[style.media: IDL set to NaN]
expected: FAIL
[style.media: IDL set to Infinity]
expected: FAIL
[style.media: IDL set to -Infinity]
expected: FAIL
[style.media: IDL set to "\\0"]
expected: FAIL
[style.media: IDL set to null]
expected: FAIL
[style.media: IDL set to object "test-toString"]
expected: FAIL
[style.media: IDL set to object "test-valueOf"]
expected: FAIL
[style.nonce: typeof IDL attribute]
expected: FAIL

View file

@ -4,6 +4,3 @@
[The LinkStyle interface's sheet attribute must return StyleSheet object; the disabled attribute must be same as the StyleSheet's disabled attribute]
expected: FAIL
[The media must be the same as the value of the element's media content attribute, or the empty string if it is omitted]
expected: FAIL

View file

@ -1,3 +0,0 @@
[style_media.html]
[The style information must be applied to the environment specified by the media attribute]
expected: FAIL

View file

@ -1,6 +0,0 @@
[style_media_change.html]
[change media value dynamically]
expected: FAIL
[removing media attribute]
expected: FAIL