mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-05 04:06:08 +00:00
LibWeb: Extract the LinkStyle IDL mixin
This commit is contained in:
6
Userland/Libraries/LibWeb/CSS/LinkStyle.idl
Normal file
6
Userland/Libraries/LibWeb/CSS/LinkStyle.idl
Normal 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;
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user