Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: gap sets longhands</title>
<meta name="assert" content="gap supports the full grammar '<row-gap> <column-gap>?'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
test_shorthand_value('gap', 'normal', {
'row-gap': 'normal',
'column-gap': 'normal'
});
test_shorthand_value('gap', '10px 20%', {
'row-gap': '10px',
'column-gap': '20%'
});
test_shorthand_value('gap', '10px normal', {
'row-gap': '10px',
'column-gap': 'normal'
});
test_shorthand_value('gap', 'normal calc(20% + 10px)', {
'row-gap': 'normal',
'column-gap': 'calc(20% + 10px)'
});
</script>
</body>
</html>