[community-group] Promote ISO standards in units representation (#159)

rdlopes has just created a new issue for https://github.com/design-tokens/community-group:

== Promote ISO standards in units representation ==
Hi community 🙌,

following up on the [duration description](https://github.com/design-tokens/community-group/blob/main/technical-reports/format/types.md), I noticed we are using the "traditional" unit based on milliseconds.

I'm fine with that, but I'm more on the cross-standards side of things.

Hence my suggestion to add a more css-agnostic way of representing durations (in ms), to onboard with the [ISO 8601 durations](https://en.wikipedia.org/wiki/ISO_8601#Durations).

I know this sounds unfamiliar to all the folks having dealt with milliseconds in CSS history, but for someone who has touched on many things other than CSS, it doesn't sound completely awkward to experiment with cross-standardisation.

I'd love to see W3C standards using standard units representation for duration.

For instance, a duration of a second for a transition, noted `1000ms` could as well be represented in the ISO standard `PT1S`.
This allows for better cross-worlds communication and is more specific than an ever growing set of regex rules.

I would suggest enlarging duration definition to ISO format.
We could think of types like `ms-duration` and `iso-duration`, keeping `duration` type as a default ms format for backward compatibility.

Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/159 using your GitHub account


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

Received on Thursday, 21 July 2022 18:03:14 UTC