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

zp1996 has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display-3] Can `<style>` & `<script>`computes `display: contents` to `display: none`? ==
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?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12082 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 April 2025 11:58:17 UTC