summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/button/button-with-float.html
blob: d42d84fcd1cb4100b97b5870f8c3fe949250fb24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<head>
<style>
    button {
        position: relative;
        -webkit-appearance: none;
        border: 1px solid black;
        padding: 0;
    }

    .margin {
        margin: 5px 10px 5px 5px;
    }
    .sized {
        width: 50px;
        height: 50px;
    }
    .pink {
        background-color: pink;
    }
    .float {
        float: left;
    }
    .line {
        height: 2px;
        border-top: solid 1px #fff;
        background: #00f;

        position: absolute;
        width: 50px;
        bottom: 5px;
        left: 5px;
    }
</style>
</head>
<body>
    You should see an almost-square grey rectangle containing a pink square with a blue line below it.
    There should be no pink below the blue line.
<hr>
<button>
    <div class="margin sized float">
        <div class="sized">
            <div class="sized pink">
            <div class="line"></div>
        </div>
    </div>
</button>