Skip to content

Commit 075aea4

Browse files
Sam Davis Omekarachromium-wpt-export-bot
Sam Davis Omekara
authored andcommitted
[Gap Decorations]: Parse column-rule-break property
This CL introduces parsing for the `column-rule-break` property which controls the behavior of breaking gap decorations within gap into segments, see: https://drafts.csswg.org/css-gaps-1/#break. Bug: 357648037 Change-Id: I7201d9113654e689d2dfcba3981e9138c3dfc60d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6216649 Reviewed-by: Kevin Babbitt <[email protected]> Reviewed-by: Alison Maher <[email protected]> Commit-Queue: Sam Davis Omekara <[email protected]> Reviewed-by: Kurt Catti-Schmidt <[email protected]> Cr-Commit-Position: refs/heads/main@{#1415251}
1 parent 792e6b8 commit 075aea4

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CSS Gaps: column-rule-break getComputedStyle()</title>
6+
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:[email protected]">
7+
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/#break">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/css/support/computed-testcommon.js"></script>
11+
<script src="/css/support/inheritance-testcommon.js"></script>
12+
</head>
13+
<body>
14+
<div id="target"></div>
15+
</div>
16+
<script>
17+
test_computed_value("column-rule-break", "none");
18+
test_computed_value("column-rule-break", "spanning-item");
19+
test_computed_value("column-rule-break", "intersection");
20+
</script>
21+
</body>
22+
</html>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CSS Gaps: parsing column-rule-break with invalid values</title>
6+
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:[email protected]">
7+
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/#break">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/css/support/parsing-testcommon.js"></script>
11+
</head>
12+
<body>
13+
<div id="target"></div>
14+
<script>
15+
test_invalid_value('column-rule-break', 'auto');
16+
test_invalid_value('column-rule-break', 'true');
17+
test_invalid_value('column-rule-break', '10px');
18+
test_invalid_value('column-rule-break', 'default');
19+
</script>
20+
</body>
21+
</html>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CSS Gaps: parsing column-rule-break with valid values</title>
6+
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:[email protected]">
7+
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/#break">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/css/support/parsing-testcommon.js"></script>
11+
</head>
12+
<body>
13+
<div id="target"></div>
14+
<script>
15+
test_valid_value('column-rule-break', 'none');
16+
test_valid_value('column-rule-break', 'spanning-item');
17+
test_valid_value('column-rule-break', 'intersection');
18+
</script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)