summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-decoration-thickness-overline-001.html
blob: 325811c96fd45463cc4802232fc6e5f5df6fd652 (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
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Test case for text-decoration-thickness</title>
    <meta name="assert" content="text-decoration-thickness: the width of the decoration line is increased">
    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
    <link rel="match" href="reference/text-decoration-thickness-green-rect-ref.html">
    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
    <style>
        #box{
            font: 20px/1 Ahem;
            overflow: hidden;
            height: 1em;
            width: 4em;
            background-color: red;
        }
        /*
         * This is testing to ensure that the overline
         * "grows up" and covers the red in the box
         */
        #text{
            color: transparent;
            position: relative;
            top: 3em;
            text-decoration: green overline;
            text-decoration-skip-ink: none;
            text-decoration-thickness: 4em;
        }
    </style>
</head>
<body>
    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
    <div id="box">
        <div id="text">XXXXXXXXXXXXXXXXXXXX</div>
    </div>
</body>
</html>