summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/text-autosizing/form-controls-autosizing-fieldset-element-expected.html
blob: a516612643dabbfd474925060ccfb38d24cf2598 (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
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html style="font-size: 16px">
<head>

<meta name="viewport" content="width=800">
<style>
  body {
    width: 800px;
    margin: 0;
    overflow-y: hidden;
  }
  fieldset {
      margin-top: 0.5em;
  }
</style>

</head>
<body>

<div style="font-size: 2.5rem">
    This paragraph should be autosized to 40px computed font-size (16 * 800/320),
    whereas the input text fields should be rendered at their default font size and
    the accompanying text below should remain 16px.
</div>

<div>
    <fieldset>
        <legend>Not autosized title</legend>
        <input type="email" name="email" id="email" value="noautosize@aol.com"> <label for="email">Not autosized email</label>
        <br>
        <input type="radio" name="radio" id="radio"> <label for="radio">Not autosized radio</label>
    </fieldset>
</div>
<div>
    <fieldset>
        <input type="text" name="text" id="text" value="not autosized text">
    </fieldset>
</div>
<div>
    <fieldset>
        <legend>Not autosized title</legend>
        This text should not be autosized.
    </fieldset>
</div>
<div>
    <fieldset>
        <textarea>This text should not be autosized.</textarea>
    </fieldset>
</div>
<div style="font-size: 2.5rem">
    This text should be autosized.
</div>

</body>
</html>