summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-borders/tentative/parsing/corners-computed.html
blob: 6605f9eeb0cccf9f5882278ac123470e546cd168 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders and Box Decorations 4 Test: Computed values of 'corners'</title>
<link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-borders-4/#corners-shorthand">
<meta name="assert" content="This test checks that the computed value of 'corners' is correct.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>

<div id="target"></div>

<script>
test_computed_value("corners", "round");
test_computed_value("corners", "angle");
test_computed_value("corners", "round angle");
test_computed_value("corners", "round angle round");
test_computed_value("corners", "round angle round angle");
test_computed_value("corners", "4px");
test_computed_value("corners", "2%");
test_computed_value("corners", "4px 2%");
test_computed_value("corners", "4px 2% 1em", "4px 2% 16px");
test_computed_value("corners", "4px 2% 1em 4%", "4px 2% 16px 4%");
test_computed_value("corners", "4px / 2px");
test_computed_value("corners", "2% / 2px");
test_computed_value("corners", "4px 2% / 2px");
test_computed_value("corners", "4px 2% 1em / 2px", "4px 2% 16px / 2px");
test_computed_value("corners", "4px 2% 1em 4% / 2px", "4px 2% 16px 4% / 2px");
test_computed_value("corners", "4px / 2px 4%");
test_computed_value("corners", "4px / 2px 4% 1em", "4px / 2px 4% 16px");
test_computed_value("corners", "4px / 2px 4% 1em 2%", "4px / 2px 4% 16px 2%");
test_computed_value("corners", "4px 2% / 2px 4%");
test_computed_value("corners", "4px 2% 1em / 2px 4% 1em", "4px 2% 16px / 2px 4% 16px");
test_computed_value("corners", "4px 2% 1em 4% / 2px 4% 1em 2%", "4px 2% 16px 4% / 2px 4% 16px 2%");
test_computed_value("corners", "4px round");
test_computed_value("corners", "4px angle");
test_computed_value("corners", "4px round angle");
test_computed_value("corners", "4px round angle round");
test_computed_value("corners", "4px round angle round angle");
test_computed_value("corners", "4px 2% round");
test_computed_value("corners", "4px 2% / 2px round");
test_computed_value("corners", "4px / 2px 4% round");
test_computed_value("corners", "4px / 2px 4% round angle");
test_computed_value("corners", "round 4px");
test_computed_value("corners", "round 4px 2%");
test_computed_value("corners", "round 4px 2% / 2px");
test_computed_value("corners", "round 4px / 2px 4%");
test_computed_value("corners", "round angle 4px / 2px 4%");
test_computed_value("corners", "round angle round angle 4px 2% 1em 4% / 2px 4% 1em 2%", "round angle round angle 4px 2% 16px 4% / 2px 4% 16px 2%");
</script>