Implement disabled attribute for <link rel="stylesheet"> (#36446)

Adds support for both the content and the IDL attribute.
Note this doesn't cover dynamic updates to `document.styleSheets` and
the owner node of the sheet.

Testing: Covered by WPT
Fixes: #26739

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-04-10 09:28:01 -07:00 committed by GitHub
parent e62aecb103
commit 2d40fb7fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 46 additions and 28 deletions

View file

@ -13,17 +13,24 @@ interface HTMLLinkElement : HTMLElement {
attribute DOMString? crossOrigin;
[CEReactions]
attribute DOMString rel;
// [CEReactions] attribute DOMString as;
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
[CEReactions]
attribute DOMString media;
[CEReactions]
attribute DOMString integrity;
[CEReactions]
attribute DOMString hreflang;
[CEReactions]
attribute DOMString type;
[CEReactions]
attribute DOMString integrity;
// [SameObject, PutForwards=value] readonly attribute DOMTokenList sizes;
// [CEReactions] attribute USVString imageSrcset;
// [CEReactions] attribute DOMString imageSizes;
[CEReactions]
attribute DOMString referrerPolicy;
// [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
[CEReactions] attribute boolean disabled;
// [CEReactions] attribute DOMString fetchPriority;
// also has obsolete members
};