layout icon indicating copy to clipboard operation
layout copied to clipboard

Percentage number values can contain fractions

Open albinkong opened this issue 9 months ago • 0 comments

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.

albinkong avatar May 14 '24 12:05 albinkong