about summary refs log tree commit diff stats
path: root/src/html/event.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-22 03:00:48 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-22 03:00:48 +0100
commitdef15ede4fbd686b0ee9b193f41b2a47190aa43a (patch)
treef5e19e6dd04e671e7bcfede37202c91355e59833 /src/html/event.nim
parent91d1e18d42a63d355095cf20bbd1767ecd2393fc (diff)
downloadchawan-def15ede4fbd686b0ee9b193f41b2a47190aa43a.tar.gz
layout: remove justify
The way `justify' was implemented just made text annoying to read.
(The algorithm of distributing spacing evenly does not really work
on a cell-based screen because of rounding errors.)

CSS 2.1 says:

> Conforming user agents may interpret the value 'justify' as 'left' or
> 'right', depending on whether the element's default writing direction
> is left-to-right or right-to-left, respectively.

Since we have no bidi yet, just interpret it as `left'.

Maybe in the future we could add an implementation that tries to align
line box lengths instead of their contents, but this will probably be
difficult to get right.
Diffstat (limited to 'src/html/event.nim')
0 files changed, 0 insertions, 0 deletions