Re: [csswg-drafts] [css-shape] Logical values for the `shape()` function (#12114)

The documentation on https://developer.mozilla.org/en-US/docs/Web/CSS/basic-shape/shape does not show `hline to inline-end` as a supported value (neither in prose nor in the formal syntax which is derived from the spec).

And this would only works for cases where I need a line going until the end of the shape, which is quite restrictive. It also does not match syntax for anything else than `vline` and `hline`. All other commands work with coordinate pairs, which are all physical coordinates.

What I need is being able to define a shape which is reversed horizontally in a RTL context (basically being equivalent to having an X axis going from right to left). For that, it would require allowing to give a coordinate along the `inline` axis instead of along the `x` axis.
Note that my description here focuses on the RTL use case (where the inline axis is reversed and block axis stays the same), but full logical support should also support vertical writing modes (where inline and block axis are swapped). In such context, even the name `hline` does not make sense (as a line following the inline axis would become vertical).

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


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

Received on Wednesday, 17 September 2025 09:43:43 UTC