Re: [csswg-drafts] [css-text] What does the `white-space-collapse` apply to when white-space trimming/positioning (#9724)

```html
<style>
  div {
    border: 1px solid black;
    text-align: center;
    animation: 5s linear infinite alternate width-animation;
  }
  .unconditional {
    white-space: normal;
    background-color: purple;
    opacity: 0.6;
  }
  .conditional {
    white-space: pre-wrap;
    background-color: orange;
    opacity: 0.6;
  }
</style>

<div><!--
  -->qwertyuiop<!--
  --><span class="unconditional">&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;</span><!--
  --><span class="conditional">             </span><!--
--></div>
```

Do I assume that a correct implementation should render this animation? No browser currently does this.

![](https://github.com/w3c/csswg-drafts/assets/8225977/1f1f3636-50e2-4abd-a149-af83fc9a29c0)

-- 
GitHub Notification of comment by andreubotella
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9724#issuecomment-1867809865 using your GitHub account


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

Received on Friday, 22 December 2023 15:23:49 UTC