summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-rhythm/parsing/block-step-insert-invalid.html
blob: a186b49e5dd128d6cbb18a8c9fd5c9b2ecb9c2dd (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
<!DOCTYPE html>
<html>
<head>
<title>CSS Rhythm: block-step-insert invalid values</title>
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-insert">
<meta name="assert" content="Invalid values for block-step-insert should not be parsed">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<style>
    #target {
      font-size: 40px;
    }
</style>
</head>
<body>
<div id="target"></div>
<script>
    test_invalid_value("block-step-insert", "auto");
    test_invalid_value("block-step-insert", "-1px");
    test_invalid_value("block-step-insert", "min-content");
    test_invalid_value("block-step-insert", "10%");
    test_invalid_value("block-step-insert", "20");
    test_invalid_value("block-step-insert", "none");
    test_invalid_value("block-step-insert", "border-box");
    test_invalid_value('block-step-insert', "margin-box");
    test_invalid_value("block-step-insert", "margin padding");
    test_invalid_value("block-step-insert", "padding margin");
</script>
</body>
</html>