[css-houdini-drafts] [css-typed-om-1] Combining a number and the division of two dimensions of the same type (#1117)

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

== [css-typed-om-1] Combining a number and the division of two dimensions of the same type ==
Should `min(1px / 1px, 1)` be valid?

Please forgive me if I am mistaken:

  - the type of `1px / 1px` is `[ length → 0 ]` and matches `<number>`
  - the type of `1` is `[]` and matches `<number>`
  - the result from determining the type of `min(1px / 1px, 1)` is a failure

Maybe step 6 of [*add two types*](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-add-two-types) should be:

```diff
- 6. If all the entries of type1 with non-zero values are contained in type2 with the same value, and vice-versa
+ 6. If all the entries of type1 with non-zero values are contained in type2 with the same value, and vice-versa, or if type1 and type2 only have entries with zero values or no entries
```

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


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

Received on Thursday, 23 November 2023 13:08:14 UTC