Skip to content

CSSOM: ignore title attributes on style elements in shadow trees #391

Closed

Description

Style elements inside a shadow tree should not be able to set the preferred stylesheet set for the document. Also, style elements inside a shadow tree should still be applied if it has a title element not matching the preferred stylesheet set of the top document.

https://lists.w3.org/Archives/Public/public-webapps/2015OctDec/0223.html

Activity

  1. rniwa commented on Feb 22, 2016

    @rniwa
    Collaborator

    What's the point of doing this change? I'd rather not diverge the behavior of various elements inside shadow DOM as much as possible.

  2. hayatoito commented on Feb 24, 2016

    @hayatoito
    Contributor

    Yeah, although the spec should not mention it clearly, we should honor an encapsulation here.

    This should be one of the instances which we should use the label html-dom so that we do not forget this issue in upstreaming Shadow DOM into HTML/DOM Standard.

  3. annevk commented on Feb 29, 2016

    @annevk
    Collaborator

    This should really be fixed in the CSSOM specification I think once we have the terminology in place. Paging @zcorpan.

  4. annevk commented on Feb 29, 2016

    @annevk
    Collaborator

    Or maybe this is still defined in HTML? Hmm.

  5. annevk commented on Feb 29, 2016

    @annevk
    Collaborator

    We should still update it to account for stylesheets within the Shadow DOM, no?

  6. rniwa commented on Feb 29, 2016

    @rniwa
    Collaborator

    I think it would be still useful to clarify it in the shadow DOM spec.

  7. hayatoito commented on Mar 1, 2016

    @hayatoito
    Contributor

    Yeah, let me have another section for clarification, mentioning misc. such as script, iframe, title attributes of style and so on, as a tentative clarification before upstreaming.

  8. zcorpan commented on Mar 1, 2016

    @zcorpan
    Contributor
  9. changed the title [-]Ignore title attributes on style elements in shadow trees[/-] [+]CSSOM: ignore title attributes on style elements in shadow trees[/+] on Mar 28, 2016
  10. added a commit that references this issue on Jul 30, 2025
    08793be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions