[csswg-drafts] Rendering of style and script elements (white-space: pre) (#7167)

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

== Rendering of style and script elements (white-space: pre) ==
Although script and style elements are not displayed by default, it would make sense to display spaces if you want to display the elements anyway.

This document specifies the rendering of "flow content".
https://www.w3.org/TR/2021/NOTE-html53-20210128/rendering.html#non-replaced-elements-flow-content

I recommend the following change:
```css
- listing, plaintext, pre, xmp {
+ listing, plaintext, pre, xmp, script, style {
    font-family: monospace; white-space: pre;
  }
```

I don't know exactly what this would mean for backwards compatibility, but I think it would be a tolerable change.


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


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

Received on Wednesday, 23 March 2022 07:39:41 UTC