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:
parent
8d2d315858
commit
899fa30bdd
2 changed files with 14 additions and 4 deletions
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/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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue