-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathborder-shape-computed.html
More file actions
34 lines (32 loc) · 2.68 KB
/
Copy pathborder-shape-computed.html
File metadata and controls
34 lines (32 loc) · 2.68 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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders and Box Decorations 4 Test: Parsing 'border-shape' with computed values</title>
<link rel="help" href="https://drafts.csswg.org/css-borders-4/#border-shape">
<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("border-shape", "none");
test_computed_value("border-shape", "circle()");
test_computed_value("border-shape", "circle(closest-corner at center)", "circle(closest-corner at 50% 50%)");
test_computed_value("border-shape", "circle(closest-corner at 20px 50px)");
test_computed_value("border-shape", "circle(farthest-corner at center)", "circle(farthest-corner at 50% 50%)");
test_computed_value("border-shape", "ellipse(closest-corner farthest-corner at 20px 50px)");
test_computed_value("border-shape", "polygon(10px 10px, 100px 10px, 10px 100px)");
test_computed_value("border-shape", "shape(from 0px 0px, hline to 100px, vline to 100px, close)");
test_computed_value("border-shape", "circle() circle()");
test_computed_value("border-shape", "circle() border-box circle() padding-box", "circle() circle()");
test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px)");
test_computed_value("border-shape", "circle(closest-corner) ellipse(farthest-corner closest-corner)");
test_computed_value("border-shape", "circle() content-box");
test_computed_value("border-shape", "circle() border-box");
test_computed_value("border-shape", "circle() border-box polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px) border-box");
test_computed_value("border-shape", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) border-box");
test_computed_value("border-shape", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) padding-box", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px)");
test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px) border-box");
test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px) content-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px) content-box");
test_computed_value("border-shape", "circle() half-border-box", "circle()");
test_computed_value("border-shape", "circle() half-border-box circle() half-border-box", "circle()");
test_computed_value("border-shape", "circle() border-box circle() border-box", "circle() border-box");
</script>