Add Time duration support#87
Conversation
| const Node = require('./Node'); | ||
|
|
||
| const unitRegex = /%|ch|cm|em|ex|in|mm|pc|pt|px|q|rem|vh|vmax|vmin|vw$/i; | ||
| const unitRegex = /%|ch|cm|em|ex|in|mm|ms|pc|pt|px|s|q|rem|vh|vmax|vmin|vw$/i; |
There was a problem hiding this comment.
As defined in:
CSS Level 2: https://www.w3.org/TR/CSS2/aural.html#times
CSS Values Level 3: https://drafts.csswg.org/css-values-3/#time
CSS Values Level 4: https://drafts.csswg.org/css-values-4/#time
|
@shellscape, this seems pretty clean. I‘m not sure why the |
|
I tried to add also angle units. But it doesn't take |
|
Thanks for putting this together 🍺 |
This PR contains:
Breaking Changes?
Please Describe Your Changes
This PR adds support for time duration values. Nothing more.