Skip to content

[css-display-3] Can <style> & <script>computes display: contents to display: none? #12082

Open
@zp1996

Description

@zp1996

At present, some special HTML elements compute display: contents to display: none.(https://drafts.csswg.org/css-display/#unbox).
By default, web browsers hide <style> and <script> elements using the display: none property. However, when display: contents is applied, the script will be displayed as text. Should we create specific exceptions for <style> and <script> elements as well?

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