1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibWeb: Extract the LinkStyle IDL mixin

This commit is contained in:
Sam Atkins 2022-07-27 20:30:32 +01:00 committed by Linus Groh
parent 8d2d315858
commit 899fa30bdd
2 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,6 @@
#import <CSS/CSSStyleSheet.idl>
// https://www.w3.org/TR/cssom-1/#ref-for-linkstyle
interface mixin LinkStyle {
readonly attribute CSSStyleSheet? sheet;
};

View file

@ -1,13 +1,17 @@
#import <CSS/CSSStyleSheet.idl> #import <CSS/CSSStyleSheet.idl>
#import <CSS/LinkStyle.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement
interface HTMLStyleElement : HTMLElement { interface HTMLStyleElement : HTMLElement {
// FIXME: [HTMLConstructor] constructor();
// FIXME: attribute boolean disabled;
[Reflect] attribute DOMString media; [Reflect] attribute DOMString media;
// FIXME: [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
// Obsolete
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;
// FIXME: This should come from a LinkStyle mixin
readonly attribute CSSStyleSheet? sheet;
}; };
HTMLStyleElement includes LinkStyle;