- From: Nicky McCurdy via GitHub <sysbot+gh@w3.org>
- Date: Sun, 29 Sep 2024 06:58:36 +0000
- To: public-css-archive@w3.org
Example using `streaming` to toggle displaying the user's phone number on stream:
```css
@media (streaming: active) {
.phone {
display: none;
}
}
@media (streaming: none) {
.phone {
display: block;
}
}
```
```js
document.querySelector(".phone").style.display = window.matchMedia(
"(streaming: active)",
).matches
? "none"
: "block";
```
--
GitHub Notification of comment by nickserv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10973#issuecomment-2381136611 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 29 September 2024 06:58:37 UTC