-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcorner-shape-computed.html
More file actions
53 lines (50 loc) · 3.85 KB
/
Copy pathcorner-shape-computed.html
File metadata and controls
53 lines (50 loc) · 3.85 KB
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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders and Box Decorations 4 Test: Computed values of 'corner-shape'</title>
<link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-borders-4/#corner-shaping">
<meta name="assert" content="This test checks that the computed value of 'corner-shape' 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("corner-top-left-shape", "round", "superellipse(1)");
test_computed_value("corner-top-left-shape", "scoop", "superellipse(-1)");
test_computed_value("corner-top-left-shape", "superellipse(5)");
test_computed_value("corner-top-left-shape", "superellipse(0.2)");
test_computed_value("corner-top-left-shape", "superellipse(-infinity)");
test_computed_value("corner-top-left-shape", "superellipse(infinity)");
test_computed_value("corner-top-left-shape", "superellipse(1)");
test_computed_value("corner-top-left-shape", "superellipse(0)");
test_computed_value("corner-top-left-shape", "superellipse(2)");
test_computed_value("corner-top-left-shape", "superellipse( -1)", "superellipse(-1)");
test_computed_value("corner-top-right-shape", "round", "superellipse(1)");
test_computed_value("corner-top-right-shape", "superellipse(5)");
test_computed_value("corner-bottom-right-shape", "scoop", "superellipse(-1)");
test_computed_value("corner-bottom-left-shape", "superellipse(5)");
test_computed_value("corner-shape", "superellipse(5) round", "superellipse(5) superellipse(1)");
test_computed_value("corner-shape", "round", "superellipse(1)");
test_computed_value("corner-shape", "bevel superellipse(0.1) round squircle", "superellipse(0) superellipse(0.1) superellipse(1) superellipse(2)");
test_computed_value("corner-shape", "superellipse(-5) superellipse(3) superellipse(7) superellipse(-5.5)");
test_computed_value("corner-shape", "round round round round", "superellipse(1)");
test_computed_value("corner-shape", "round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-shape", "round scoop round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-shape", "bevel superellipse(1)", "superellipse(0) superellipse(1)");
test_computed_value("corner-shape", "superellipse(-1) superellipse(3) square", "superellipse(-1) superellipse(3) superellipse(infinity)");
test_computed_value("corner-shape", "superellipse(-1) superellipse(3) superellipse(0)");
test_computed_value("corner-shape", "bevel superellipse(1) squircle round", "superellipse(0) superellipse(1) superellipse(2)");
test_computed_value("corner-shape", "superellipse(-1) superellipse(3) superellipse(0) superellipse(infinity)");
test_computed_value("corner-left-shape", "round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-top-shape", "round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-top-shape", "superellipse(4)");
test_computed_value("corner-right-shape", "superellipse(-1.5) superellipse(3)");
test_computed_value("corner-right-shape", "superellipse(-1) superellipse(2)", "superellipse(-1) superellipse(2)");
test_computed_value("corner-bottom-shape", "scoop scoop", "superellipse(-1)");
test_computed_value("corner-inline-start-shape", "round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-block-start-shape", "round scoop", "superellipse(1) superellipse(-1)");
test_computed_value("corner-block-end-shape", "superellipse(4)");
test_computed_value("corner-inline-end-shape", "superellipse(-1.5) superellipse(3)");
test_computed_value("corner-inline-start-shape", "superellipse(-1) superellipse(2)", "superellipse(-1) superellipse(2)");
test_computed_value("corner-block-end-shape", "scoop scoop", "superellipse(-1)");
</script>