sebastiaanvisser / clay

A CSS preprocessor as embedded Haskell.
Other
360 stars 73 forks source link

Add some missing relative units #246

Closed floh1695 closed 1 year ago

floh1695 commented 1 year ago

Simply adds some relative units I noticed were missing

turion commented 1 year ago

I couldn't find documentation for these, can you point me to it?

ddssff commented 1 year ago

I see a number of them here: https://drafts.csswg.org/css-values-4/#cap

floh1695 commented 1 year ago

I originally found these all listed here https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#lengths

From the spec @ddssff posted, ch, lh, rlh, vb, and vi are listed at https://drafts.csswg.org/css-values-4/#relative-lengths with svw, svh, lvw, lvh, dvw, and dvh being listed at https://drafts.csswg.org/css-values-4/#viewport-relative-units

turion commented 1 year ago

Thanks for the clarifications!