-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathrule-break-shorthand.html
More file actions
55 lines (52 loc) · 1.29 KB
/
rule-break-shorthand.html
File metadata and controls
55 lines (52 loc) · 1.29 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
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: rule-break sets longhands</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/#propdef-rule-break">
<meta name="assert" content="rule-break supports the full grammar '<*-rule-break>'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
const rule_properties = {
'rule-break': ['column-rule-break',
'row-rule-break'],
};
const testCases = [
{
input: 'intersection',
expected: {
column: 'intersection',
row: 'intersection'
}
},
{
input: 'none',
expected: {
column: 'none',
row: 'none'
}
},
{
input: 'normal',
expected: {
column: 'normal',
row: 'normal'
}
},
];
for(rule_property in rule_properties) {
const [column, row] = rule_properties[rule_property];
for (const { input, expected } of testCases) {
test_shorthand_value(rule_property, input, {
[column]: expected.column,
[row]: expected.row
});
}
}
</script>
</body>
</html>