[css-houdini-drafts] [css-typed-om] ratio (#1094)

OliverJAsh has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] ratio ==
Relevant spec: https://www.w3.org/TR/css-typed-om-1/

Currently it doesn't seem possible to parse `aspect-ratio`:

```ts
console.log(CSSStyleValue.parse('aspect-ratio', '1 / 2'))
// => CSSStyleValue
```

Would it make sense to create a new subclass of `CSSStyleValue` to capture the [`<ratio>` type](https://w3c.github.io/csswg-drafts/css-values-4/#ratios)? E.g. `CSSRatioValue`.

(Apologies if I've filed this issue in the wrong place.)

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


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

Received on Wednesday, 3 May 2023 09:19:10 UTC