1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:47:44 +00:00

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. :^)
This commit is contained in:
Andreas Kling 2021-03-08 11:22:18 +01:00
parent 0d515dea5d
commit a9830d9a55
12 changed files with 86 additions and 13 deletions

View file

@ -203,7 +203,7 @@ class XMLHttpRequestEventTarget;
}
namespace Web::Bindings {
class CSSStyleSheetWrapper;
class CanvasRenderingContext2DWrapper;
class CharacterDataWrapper;
class CommentWrapper;
@ -301,6 +301,8 @@ class SVGGeometryElementWrapper;
class SVGGraphicsElementWrapper;
class SVGPathElementWrapper;
class SVGSVGElementWrapper;
class StyleSheetWrapper;
class StyleSheetListWrapper;
class TextWrapper;
class UIEventWrapper;
class WindowObject;