blob: 52397fb744b990c3b9227f4f7a68a9004223007e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: gap sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-gap">
<meta name="assert" content="row-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>