Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 9 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-gaps/parsing/rule-visibility-items-shorthand.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Gap Decorations: rule-visibility-items sets longhands</title>
<meta name="assert" content="rule-visibility-items supports the full grammar '<*-rule-visibility-items>'.">
<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-visibility-items': ['column-rule-visibility-items',
'row-rule-visibility-items'],
};
const testCases = [
{
input: 'all',
expected: {
column: 'all',
row: 'all'
}
},
{
input: 'around',
expected: {
column: 'around',
row: 'around'
}
},
{
input: 'between',
expected: {
column: 'between',
row: 'between'
}
},
];
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>