-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathmasonry-flow-valid.html
60 lines (57 loc) · 2.11 KB
/
masonry-flow-valid.html
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
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masonry: parsing masonry-flow with valid values</title>
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("masonry-flow", "column normal");
test_valid_value("masonry-flow", "column reverse");
test_shorthand_value('masonry-flow', 'column normal', {
'masonry-direction': 'column',
'masonry-fill': 'normal'
});
test_shorthand_value('masonry-flow', 'column reverse', {
'masonry-direction': 'column',
'masonry-fill': 'reverse'
});
test_valid_value("masonry-flow", "row normal");
test_valid_value("masonry-flow", "row reverse");
test_shorthand_value('masonry-flow', 'row normal', {
'masonry-direction': 'row',
'masonry-fill': 'normal'
});
test_shorthand_value('masonry-flow', 'row reverse', {
'masonry-direction': 'row',
'masonry-fill': 'reverse'
});
test_valid_value("masonry-flow", "column-reverse normal");
test_valid_value("masonry-flow", "column-reverse reverse");
test_shorthand_value('masonry-flow', 'column-reverse normal', {
'masonry-direction': 'column-reverse',
'masonry-fill': 'normal'
});
test_shorthand_value('masonry-flow', 'column-reverse reverse', {
'masonry-direction': 'column-reverse',
'masonry-fill': 'reverse'
});
test_valid_value("masonry-flow", "row-reverse normal");
test_valid_value("masonry-flow", "row-reverse reverse");
test_shorthand_value('masonry-flow', 'row-reverse normal', {
'masonry-direction': 'row-reverse',
'masonry-fill': 'normal'
});
test_shorthand_value('masonry-flow', 'row-reverse reverse', {
'masonry-direction': 'row-reverse',
'masonry-fill': 'reverse'
});
</script>
</body>
</html>