Currently all percentages are floored before being converted into pixels.
12.5% of 1000px is currently 120px. After this change 12.5% of 1000px is 125px. 12.5% of 100px remains 12px.
I also added as const in a few places. This should turn OVERFLOW from string[] to 'visible' | 'hidden'. I made the same change to CSS_COLOR_NAMES, DISPLAY, POSITION, ALIGN and VERTICAL_ALIGN as well.
Currently all percentages are floored before being converted into pixels.
12.5% of 1000px is currently 120px. After this change 12.5% of 1000px is 125px. 12.5% of 100px remains 12px.
I also added
as const
in a few places. This should turnOVERFLOW
fromstring[]
to'visible' | 'hidden'
. I made the same change toCSS_COLOR_NAMES
,DISPLAY
,POSITION
,ALIGN
andVERTICAL_ALIGN
as well.