Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-align/parsing/place-self-shorthand.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: place-self sets longhands</title>
<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>