Make color-filter affect caret-color
[WebKit-https.git] / LayoutTests / css3 / overwrite-content-alignment.html
1 <!DOCTYPE html>
2 <style>
3 .parent {
4    display: -webkit-flex;
5 }
6 .parent .child {
7    display: -webkit-flex;
8    justify-content: unsafe flex-end;
9    align-content: safe center;
10 }
11 #parentId .child {
12    justify-content: space-between;
13    align-content: space-around;
14 }
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');
26
27 var childOfDefaultParent = document.getElementById("childOfDefaultParent");
28 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content')", "unsafe flex-end");
29 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-content')", "safe center");
30
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>