html: Add the reflected 'sizes' IDL attribute for <image> (#39466)

Add the reflected 'sizes' IDL attribute for <image> element's DOM
interface which defines image sizes for different page layouts.

See https://html.spec.whatwg.org/multipage/#dom-img-sizes

Testing: Improvements in the following tests
- custom-elements/reactions/customized-builtins/HTMLImageElement.html
- html/dom/idlharness.https.html
-
html/semantics/embedded-content/the-img-element/relevant-mutations.html

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
Andrei Volykhin 2025-09-24 12:29:44 +03:00 committed by GitHub
parent 72555de341
commit f91dc33350
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 18 deletions

View file

@ -1,10 +1,4 @@
[HTMLImageElement.html]
[sizes on HTMLImageElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL
[sizes on HTMLImageElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL
[decoding on HTMLImageElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL