1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00
serenity/Userland/Libraries/LibWeb/CSS/StyleSheet.idl
Andreas Kling a9830d9a55 LibWeb: Start exposing CSS style sheets to JavaScript :^)
This patch adds bindings for the following objects:

- StyleSheet
- StyleSheetList
- CSSStyleSheet

You can get to a document's style sheets via Document.styleSheets
and iterate through them using StyleSheetList's item() and length().

That's it in terms of functionality at this point, but still neat. :^)
2021-03-08 11:50:36 +01:00

9 lines
403 B
Text

interface StyleSheet {
// readonly attribute CSSOMString type;
// readonly attribute USVString? href;
// readonly attribute (Element or ProcessingInstruction)? ownerNode;
// readonly attribute CSSStyleSheet? parentStyleSheet;
// readonly attribute DOMString? title;
// [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
// attribute boolean disabled;
};