mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
@@ -13,6 +13,7 @@ interface HTMLImageElement : HTMLElement {
|
||||
attribute USVString src;
|
||||
[CEReactions]
|
||||
attribute USVString srcset;
|
||||
[CEReactions] attribute DOMString sizes;
|
||||
[CEReactions]
|
||||
attribute DOMString? crossOrigin;
|
||||
[CEReactions]
|
||||
|
||||
Reference in New Issue
Block a user