about summary refs log tree commit diff stats
path: root/src/layout/layoutunit.nim
Commit message (Collapse)AuthorAgeFilesLines
* layout: ensure lines are not higher than they must bebptato2024-03-261-0/+3
| | | | | | This is still a more conservative approach than completely disabling line-height. It seems to work better than preserving rounded line-height in all cases, anyway.
* layout: round atom offsets toobptato2024-02-281-0/+3
| | | | | it is useful to round them so that they don't get positioned somewhere in the middle of a line (which is rounded to the same precision as well)
* Fix bug in media-query parsingbptato2023-07-041-20/+25
| | | | This fixes interpretation of "@media (min/max-width: 1234px)".
* Use LayoutUnit in layoutbptato2023-07-041-0/+48
Reduces ugly rendering caused by rounding errors.