about summary refs log tree commit diff stats
path: root/src/server
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-30 02:27:13 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-30 02:34:59 +0100
commit40e79dd4b42f4d93a8de8e24786e450b59ddc4de (patch)
treedb6b29558c2aaaea3e7a2e80c61e155587e61ae0 /src/server
parentb3cf0be08e9b67361d307e463a907a6b4d35a859 (diff)
downloadchawan-40e79dd4b42f4d93a8de8e24786e450b59ddc4de.tar.gz
layout: fix float positioning with margins
Here we are restricting the float to the same width constraint as its
parent, so we must add offset.x both when the float is larger than this
constraint *and* when the float fits into the constraint.

An example of what this fixes:

<div style="padding-left: 10em; background: green">
<div style="float: right; background: red">
wat

^ previously the float was positioned as if the padding had been on the
*right*, because it did not take into account offset.x.
Diffstat (limited to 'src/server')
0 files changed, 0 insertions, 0 deletions