- From: 張俊芝 via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Nov 2024 15:35:06 +0000
- To: public-css-archive@w3.org
Zhang-Junzhi has just created a new issue for https://github.com/w3c/csswg-drafts: == env(viewport-segment-width/height ...) should provide RTL and BTT counting mechanisms. == Currently, `env(viewport-segment-width/height ...)` can only be counted left-to-right and top-to-bottom. For example, it's easy to target the second leftmost viewport segment: ``` @media (horizontal-viewport-segments >= 2) { .example1 { width: env(viewport-segment-width 1 0); } } ``` Targeting the second topmost works similarly. But there's no logically equivalent way to target the second rightmost/bottommost viewport segment. The spec need to functionally support the logical symmetry. I suggest that negative numbers counting from right-to-left and bottom-to-top is an easy way to provide the feature. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11141 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 15:35:07 UTC