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

LibWeb: Add CSSStyleSheet.ownerRule attribute

This returns the `CSSImportRule` corresponding to the `@import` at-rule
that imported the stylesheet into the document. If the stylesheet
wasn't imported then this property is null.
This commit is contained in:
Tim Ledbetter 2024-02-24 07:46:59 +00:00 committed by Andreas Kling
parent 588a031e2d
commit 9b1ea4e2fc
3 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,7 @@
interface CSSStyleSheet : StyleSheet {
// FIXME: constructor(optional CSSStyleSheetInit options = {});
// FIXME: readonly attribute CSSRule? ownerRule;
readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules;
unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
undefined deleteRule(unsigned long index);