5 justify-items: flex-end true;
6 align-items: flex-start safe;
10 justify-self: flex-end true;
11 align-self: flex-start safe;
14 justify-items: center;
22 <script src=
"../../resources/js-test.js"></script>
24 <div id=
"childOfDefaultParent" class=
"child"></div>
26 <div id=
"parentId" class=
"parent">
27 <div id=
"childOfParentId" class=
"child"></div>
29 <script src=
"resources/alignment-parsing-utils.js"></script>
31 description('Test overwriting justify-self and align-self works as expected');
33 var parent
= document
.getElementById("parentId");
34 shouldBeEqualToString("getComputedStyle(parent, '').getPropertyValue('justify-items')", "center");
35 shouldBeEqualToString("getComputedStyle(parent, '').getPropertyValue('align-items')", "stretch");
37 var childOfDefaultParent
= document
.getElementById("childOfDefaultParent");
38 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-self')", "flex-end true");
39 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-self')", "flex-start safe");
41 var childOfParentId
= document
.getElementById("childOfParentId");
42 shouldBeEqualToString("getComputedStyle(childOfParentId, '').getPropertyValue('justify-self')", "center");
43 shouldBeEqualToString("getComputedStyle(childOfParentId, '').getPropertyValue('align-self')", "stretch");