-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcorners-invalid.html
More file actions
36 lines (34 loc) · 1.99 KB
/
Copy pathcorners-invalid.html
File metadata and controls
36 lines (34 loc) · 1.99 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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders and Box Decorations 4 Test: Parsing 'corners' with invalid values</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 'corners' is not supported in any form (since it was renamed to 'corner' in August of 2025).">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_invalid_value("corners", "auto");
test_invalid_value("corners", "none");
test_invalid_value("corners", "scoop");
test_invalid_value("corners", "3% normal");
test_invalid_value("corners", "round round round round round");
test_invalid_value("corners", "-1px");
test_invalid_value("corners", "10px");
test_invalid_value("corners", "4px 12px");
test_invalid_value("corners", "4px 12px / normal");
test_invalid_value("corners", "4px 2% 1em 4% 2px");
test_invalid_value("corners", "4px / 2px 4% 1em 2% 2px");
test_invalid_value("corners", "4px / angle");
test_invalid_value("corners", "angle / 4px");
test_invalid_value("corners", "4px angle 2% round");
test_invalid_value("corners", "round 30%", "30% round");
test_invalid_value("corners", "10px bevel");
test_invalid_value("corners", "round 10% / 2rem squircle", "10% round / 2rem squircle");
test_invalid_value("corners", "notch 10px / squircle 30% 10px / 1rem bevel / 2px round", "10px notch / 30% 10px squircle / 1rem bevel / 2px round");
test_invalid_value("corners", "normal");
test_invalid_value("corners", "4px 2% round");
test_invalid_value("corners", "4px 2% round / bevel 1em / normal", "4px 2% round / 1em bevel / normal");
test_invalid_value("corners", "normal / 1px round / normal / 3% squircle");
test_invalid_value("corners", "normal / superellipse(-0.5) 30% 10px / 10px 1rem notch", "normal / 30% 10px superellipse(-0.5) / 10px 1rem notch");
</script>