Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: getComputedStyle().alignSelf</title>
<meta name="assert" content="align-self computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("align-self", "auto");
test_computed_value("align-self", "normal");
test_computed_value("align-self", "stretch");
test_computed_value("align-self", "baseline");
test_computed_value("align-self", "last baseline");
test_computed_value("align-self", "center");
test_computed_value("align-self", "start");
test_computed_value("align-self", "end");
test_computed_value("align-self", "self-start");
test_computed_value("align-self", "self-end");
test_computed_value("align-self", "flex-start");
test_computed_value("align-self", "flex-end");
test_computed_value("align-self", "unsafe center");
test_computed_value("align-self", "safe self-end");
</script>
</body>
</html>