diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-07-27 20:30:32 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-29 17:15:49 +0100 |
commit | 899fa30bddb400a6f8492a3e9f747bce6ad468f5 (patch) | |
tree | 52653fd85bace7f2f7dc7b429415c76486c8e959 /Userland | |
parent | 8d2d3158583873d0aa99e6214558e8ad31e2f5fe (diff) | |
download | serenity-899fa30bddb400a6f8492a3e9f747bce6ad468f5.zip |
LibWeb: Extract the LinkStyle IDL mixin
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/LinkStyle.idl | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLStyleElement.idl | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/LinkStyle.idl b/Userland/Libraries/LibWeb/CSS/LinkStyle.idl new file mode 100644 index 0000000000..d44e6fc8df --- /dev/null +++ b/Userland/Libraries/LibWeb/CSS/LinkStyle.idl @@ -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; +}; diff --git a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.idl index 322862742f..c33e8be66d 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.idl @@ -1,13 +1,17 @@ #import <CSS/CSSStyleSheet.idl> +#import <CSS/LinkStyle.idl> #import <HTML/HTMLElement.idl> +// https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement interface HTMLStyleElement : HTMLElement { + // FIXME: [HTMLConstructor] constructor(); + // FIXME: attribute boolean disabled; [Reflect] attribute DOMString media; + // FIXME: [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking; + // Obsolete [Reflect] attribute DOMString type; - - // FIXME: This should come from a LinkStyle mixin - readonly attribute CSSStyleSheet? sheet; - }; + +HTMLStyleElement includes LinkStyle; |