Skip to content

[cssom] LinkStyle.sheet to return CSSStyleSheet instead of StyleSheet? #3311

@saschanaz

Description

@saschanaz

https://drafts.csswg.org/cssom/#the-linkstyle-interface

The associated CSS style sheet of a node is the CSS style sheet in the list of document or shadow root CSS style sheets of which the owner node implements the LinkStyle interface.

interface mixin LinkStyle {
 readonly attribute StyleSheet? sheet;
};

The sheet attribute must return the associated CSS style sheet for the node or null if there is no associated CSS style sheet.

The prose says sheet returns a CSS style sheet but the IDL says it returns a superclass instance (StyleSheet). Can we fix the IDL to return CSSStyleSheet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions