Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masonry: masonry-auto-tracks with invalid values</title>
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<meta name="assert" content="masonry-auto-tracks supports only the grammar '<track-size>+'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
// <track-breadth>
test_invalid_value("masonry-auto-tracks", "none");
test_invalid_value("masonry-auto-tracks", "-1px");
test_invalid_value("masonry-auto-tracks", "-4%");
// minmax( <inflexible-breadth> , <track-breadth> )
test_invalid_value("masonry-auto-tracks", "minmax(1px)");
test_invalid_value("masonry-auto-tracks", "minmax(1px, 2px, 3px)");
test_invalid_value("masonry-auto-tracks", "minmax(5fr, 1px)");
test_invalid_value("masonry-auto-tracks", "minmax(6px, -7%)");
test_invalid_value("masonry-auto-tracks", "minmax(8px, -9fr)");
// fit-content( <length-percentage> )
test_invalid_value("masonry-auto-tracks", "fit-content(-1px)");
test_invalid_value("masonry-auto-tracks", "fit-content(1px, 2px)");
test_invalid_value("masonry-auto-tracks", "fit-content(1px auto)");
// <track-size>+
test_invalid_value("masonry-auto-tracks", "2em / 3em");
test_invalid_value("masonry-auto-tracks", "auto, 10%");
test_invalid_value("masonry-auto-tracks", "1px [a] 1px");
test_invalid_value("masonry-auto-tracks", "[] 1px []");
</script>
</body>
</html>