Skip to content

[cssom-1] Relationship between owner node and associated css style sheet #3341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
domfarolino opened this issue Nov 25, 2018 · 2 comments
Closed
Labels
cssom-1 Current Work

Comments

@domfarolino
Copy link
Member

The definition of associated CSS style sheet is a bit fuzzy to me, and I don't think captures the intended definition. Is it trying to say one of the following:

  • Only nodes that implement the LinkStyle interface can have "associated CSS style sheets", or...
  • More specifically, given a node that implements the LinkStyle interface, its associated CSS style sheet is the style sheet (from a larger list of sheets) whose owner node is the given node.

From this I'm trying to understand the relationship between a CSS style sheet's owner node and a some node's associated style sheet. Given how the spec is written, it seems that CSS style sheets can have owner nodes that either implement the LinkStyle interface or not, but only nodes that implement the LinkStyle interface have "associated CSS style sheets". Does this mean that a CSS style sheet can have an owner node that does not implement LinkStyle, and as such, does not have an associated CSS style sheet?

@upsuper upsuper added the cssom-1 Current Work label Nov 25, 2018
@upsuper
Copy link
Member

upsuper commented Nov 25, 2018

Given

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.

and

owner node: Specified when created. The DOM node associated with the CSS style sheet or null if there is no associated DOM node.

I don't think it is possible that a style sheet can have an owner node which doesn't implement LinkStyle as far as the two "associated"s refer to the same thing.

@emilio
Copy link
Collaborator

emilio commented Nov 26, 2018

I think #3343 clarifies this, but feel free to reopen otherwise. Thanks again!

@emilio emilio closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cssom-1 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants