Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / alignment / overwrite-content-alignment.html
blobb8fc5f8700042ce1ed820af337db77056707f1e3
1 <!DOCTYPE html>
2 <style>
3 .parent {
4 display: flex;
6 .parent .child {
7 display: flex;
8 justify-content: flex-end true;
9 align-content: center safe;
11 #parentId .child {
12 justify-content: space-between;
13 align-content: space-around;
15 </style>
16 <script src="../../resources/js-test.js"></script>
17 <div class="parent">
18 <div id="childOfDefaultParent" class="child"></div>
19 </div>
20 <div id="parentId" class="parent">
21 <div id="childOfParentId" class="child"></div>
22 </div>
23 <script src="resources/alignment-parsing-utils.js"></script>
24 <script>
25 description('Test overwriting justify-content and align-content works as expected');
27 var childOfDefaultParent = document.getElementById("childOfDefaultParent");
28 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content')", "flex-end true");
29 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-content')", "center safe");
31 var childOfParentId = document.getElementById("childOfParentId");
32 shouldBeEqualToString("getComputedStyle(childOfParentId, '').getPropertyValue('justify-content')", "space-between");
33 shouldBeEqualToString("getComputedStyle(childOfParentId, '').getPropertyValue('align-content')", "space-around");
34 </script>