summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-rhythm/parsing/block-step-size-computed.html
blob: e90b608215de16d9b80ad1d4090ec52e337ace51 (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
<!DOCTYPE html>
<html>
<head>
<title>CSS Rhythm: block-step-size computed 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-size">
<meta name="assert" content="Checking computed values for block-step-size">
<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_computed_value("block-step-size", "0px");
    test_computed_value("block-step-size", "none");
    test_computed_value("block-step-size", "100px");
    test_computed_value("block-step-size", "2em", "80px");
    test_computed_value("block-step-size", "calc(10px + 0.5em)", "30px");
    test_computed_value("block-step-size", "calc(10px - 0.5em)", "0px");
</script>
</body>
</html>