[css-houdini-drafts] [css-typed-om-1] Handle `<decibel>` and `<semitones>` (#1075)

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

== [css-typed-om-1] Handle `<decibel>` and `<semitones>` ==
[4.3.2. Numeric Value Typing](https://drafts.css-houdini.org/css-typed-om-1/#numeric-typing):

> Note: As new unit types are added to CSS, they’ll be added to this list of base types, and to the CSS math functions.

Is there any particular reason for not supporting `<decibel>` and `<semitones>`?

`<decibel>` seems to be used in the value definition of [`cue-after` and `cue-before` (CSS Speech)](https://drafts.csswg.org/css-speech-1/#cue-props-cue-before-after).

`<semitones>` seems to be used in the value definition of [`voice-pitch` and `voice-range` (CSS Speech)](https://drafts.csswg.org/css-speech-1/#voice-props-voice-pitch). Both properties are marked as *at-risk*:

> The following features are at-risk, and may be dropped during the CR period: `voice-balance`, `voice-duration`, `voice-pitch`, `voice-range`, and `voice-stress`

Both [`<decibel>`](https://drafts.csswg.org/css-speech-1/#typedef-voice-volume-decibel) and [`<semitones>`](https://drafts.csswg.org/css-speech-1/#typedef-voice-pitch-semitones) are defined as `<dimension>`s:

> The `<decibel>` type denotes a dimension with a "dB" (decibel unit) unit identifier.

> The syntax of `<semitones>` allowed values is a dimension with the unit identifier st (semitones).

They are missing in CSS Values but generally speaking, wouldn't it be better to refer to the dimensions defined in CSS Values, and avoid explicitly listing the supported dimensions?

To be honest, I'm also creating this issue to ask a question. I would like to know the reason why type entries must be ordered according to the order of the base types:

> The base types are "length", "angle", "time", "frequency", "resolution", "flex", and "percent". The ordering of a type’s entries always matches this base type ordering.

I'm trying to find a test case that would fail if they were defined in a different order.

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


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

Received on Friday, 1 July 2022 05:16:07 UTC