Re: [csswg-drafts] [mediaqueries] `streaming` media feature for implementing streamer mode (#10973)

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