Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit ea6ef3b

Browse files
noamrmoz-wptsync-bot
authored andcommitted
Bug 1947321 [wpt PR 50617] - Parse the corner-shape shorthand, a=testonly
Automatic update from web-platform-tests Parse the corner-shape shorthand `corner-shape` works similarly to `border-radius`, with a space-separated list of numbers. See https://drafts.csswg.org/css-borders-4/#corner-shape-shorthand Bug: 393942214 Change-Id: I8dad98531068b7bc5d1c8ca81b3076e1f72ad303 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6234257 Commit-Queue: Noam Rosenthal <[email protected]> Reviewed-by: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/main@{#1418531} -- wpt-commits: 2897a7bbe05d9b3e43deb694c7ffb5eb33d8f7a7 wpt-pr: 50617
1 parent f84e9b6 commit ea6ef3b

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

testing/web-platform/tests/css/css-borders/tentative/parsing/corner-shape-computed.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,17 @@
2525
test_computed_value("corner-top-right-shape", "superellipse(5)");
2626
test_computed_value("corner-bottom-right-shape", "scoop");
2727
test_computed_value("corner-bottom-left-shape", "superellipse(5)");
28+
test_computed_value("corner-shape", "superellipse(5) round");
29+
test_computed_value("corner-shape", "round");
30+
test_computed_value("corner-shape", "bevel superellipse(0.1) round squircle");
31+
test_computed_value("corner-shape", "superellipse(0.1) superellipse(3) superellipse(7) superellipse(0.1)");
32+
test_computed_value("corner-shape", "round round round round", "round");
33+
test_computed_value("corner-shape", "round scoop");
34+
test_computed_value("corner-shape", "round scoop round scoop", "round scoop");
35+
test_computed_value("corner-shape", "bevel superellipse(2)", "bevel round");
36+
test_computed_value("corner-shape", "superellipse(0.5) superellipse(3) straight", "scoop superellipse(3) straight");
37+
test_computed_value("corner-shape", "superellipse(0.5) superellipse(3) superellipse(1)", "scoop superellipse(3) bevel");
38+
test_computed_value("corner-shape", "bevel superellipse(2) squircle round", "bevel round squircle");
39+
test_computed_value("corner-shape", "superellipse(0.5) superellipse(3) superellipse(1) superellipse(infinity)", "scoop superellipse(3) bevel straight");
40+
2841
</script>

testing/web-platform/tests/css/css-borders/tentative/parsing/corner-shape-invalid.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@
1919
test_invalid_value("corner-shape", "superellipse(4,0.1)");
2020
test_invalid_value("corner-shape", "superellipse(foo)");
2121
test_invalid_value("corner-shape", "superellipse(1 abc)");
22+
test_invalid_value("corner-shape", "superellipse(1) / bevel");
23+
test_invalid_value("corner-shape", "superellipse(1) / superellipse(3)");
24+
test_invalid_value("corner-shape", "superellipse(1), superellipse(3)");
2225
</script>

testing/web-platform/tests/css/css-borders/tentative/parsing/corner-shape-valid.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@
3636
test_values_for_prop(`corner-${block}-${inline}-shape`);
3737
}
3838
}
39+
test_valid_value("corner-shape", "round round round round", "round");
40+
test_valid_value("corner-shape", "round scoop");
41+
test_valid_value("corner-shape", "round scoop round scoop", "round scoop");
42+
test_valid_value("corner-shape", "bevel superellipse(2)");
43+
test_valid_value("corner-shape", "superellipse(0.5) superellipse(3) straight");
44+
test_valid_value("corner-shape", "superellipse(0.5) superellipse(3) superellipse(1)");
45+
test_valid_value("corner-shape", "bevel superellipse(2) squircle round", "bevel superellipse(2) squircle round");
46+
test_valid_value("corner-shape", "superellipse(0.5) superellipse(3) superellipse(1) superellipse(infinity)");
47+
3948
</script>

0 commit comments

Comments
 (0)