[csswg-drafts] viewport segment pseudo element (#11131)

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

== viewport segment pseudo element ==
It's very useful when we want to place some positioned elements associated with a specific viewport segment.

```
@media (horizontal-viewport-segments: 1) {
  html {
    anchor-name: --viewport-0-0;
  }
}

@media (horizontal-viewport-segments: 2) {
  ::viewport(0, 0) {
    anchor-name: --viewport-0-0;
  }
}

.taskbar {
  top: 10px;
  justify-self: anchor-center;
}
```

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


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

Received on Friday, 1 November 2024 12:01:02 UTC