layout
layout copied to clipboard
Percentage number values can contain fractions
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.