Update web-platform-tests to revision 786fc058fd83cbf002be3a35100ab2a3b1f98d58

This commit is contained in:
WPT Sync Bot 2019-09-20 10:34:03 +00:00
parent 748fa72320
commit d38b1c8241
76 changed files with 1323 additions and 174 deletions

View file

@ -0,0 +1,35 @@
<!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>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: place-content sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-content">
<meta name="assert" content="place-content supports the full grammar '<align-content> <justify-content>?'.">
<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('place-content', 'normal', {
'align-content': 'normal',
'justify-content': 'normal'
});
test_shorthand_value('place-content', 'first baseline', {
'align-content': 'baseline',
'justify-content': 'start'
});
test_shorthand_value('place-content', 'last baseline flex-start', {
'align-content': 'last baseline',
'justify-content': 'flex-start'
});
test_shorthand_value('place-content', 'space-around', {
'align-content': 'space-around',
'justify-content': 'space-around'
});
test_shorthand_value('place-content', 'space-evenly unsafe end', {
'align-content': 'space-evenly',
'justify-content': 'unsafe end'
});
</script>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: place-items sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-items">
<meta name="assert" content="place-items supports the full grammar '<align-items> <justify-items>?'.">
<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('place-items', 'normal', {
'align-items': 'normal',
'justify-items': 'normal'
});
test_shorthand_value('place-items', 'first baseline', {
'align-items': 'baseline',
'justify-items': 'baseline'
});
test_shorthand_value('place-items', 'last baseline flex-start', {
'align-items': 'last baseline',
'justify-items': 'flex-start'
});
test_shorthand_value('place-items', 'stretch right legacy', {
'align-items': 'stretch',
'justify-items': 'legacy right'
});
</script>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: place-self sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-self">
<meta name="assert" content="place-self supports the full grammar '<align-self> <justify-self>?'.">
<meta name="assert" content="<baseline-position> and <baseline-position> start are equivalent.">
<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('place-self', 'normal', {
'align-self': 'normal',
'justify-self': 'normal'
});
test_shorthand_value('place-self', 'first baseline', {
'align-self': 'baseline',
'justify-self': 'baseline'
});
test_shorthand_value('place-self', 'last baseline flex-start', {
'align-self': 'last baseline',
'justify-self': 'flex-start'
});
test_shorthand_value('place-self', 'unsafe self-start stretch', {
'align-self': 'unsafe self-start',
'justify-self': 'stretch'
});
</script>
</body>
</html>