about summary refs log tree commit diff stats
path: root/test/layout/float-with-margins.html
blob: 09206e51848aff3b5843287353530a43ab53c40f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<style>
* {
font-family: monospace;
font-size: 16px
}
</style>
<div style="width: 20ch">
<div style="float: left; width: 20ch">
testing
</div>
<aside style="float: left; margin-right: -10ch">
aside
</aside>
</div>
<br>
<!-- test if margins & padding do not get consumed after a float -->
<div style="float: left">1</div>
<div style="margin-left: 3ch; padding-left: 3ch">
2<br>
3<br>
4
</div>