blob: a5e18c105471ac7bcc21e770c62405d8a6f0b722 [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
.flexbox {
position: relative;
display: flex;
background-color: grey;
max-width: 100px;
align-content: flex-start;
}
.flexbox > * {
flex: none;
}
.title {
margin-top: 1em;
}
.ltr {
direction: ltr;
}
.rtl {
direction: rtl;
}
.horizontal-tb {
writing-mode: horizontal-tb;
}
.vertical-rl {
writing-mode: vertical-rl;
}
.vertical-lr {
writing-mode: vertical-lr;
}
.row {
flex-flow: row;
}
.row-reverse {
flex-flow: row-reverse;
}
.column {
flex-flow: column;
}
.column-reverse {
flex-flow: column-reverse;
}
.wrap {
flex-wrap: wrap;
}
.wrap-reverse {
flex-wrap: wrap-reverse;
}
.justify-content-flex-start {
justify-content: flex-start;
}
.justify-content-flex-end {
justify-content: flex-end;
}
.justify-content-center {
justify-content: center;
}
.justify-content-space-between {
justify-content: space-between;
}
.justify-content-space-around {
justify-content: space-around;
}
.flexbox > :nth-child(1) {
background-color: #0f0;
}
.flexbox > :nth-child(2) {
background-color: #090;
}
.flexbox > :nth-child(3) {
background-color: #00f;
}
.flexbox > :nth-child(4) {
background-color: #009;
}
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
<body onload="checkLayout('.flexbox')">
<div id=log></div>
<script>
var expectations = {
'horizontal-tb': {
'row': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 10],
'child2': [20, 10, 40, 10],
'child3': [40, 10, 0, 0],
'child4': [20, 10, 40, 0],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 10],
'child2': [20, 10, 60, 10],
'child3': [40, 10, 20, 0],
'child4': [20, 10, 60, 0],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 10, 10],
'child2': [20, 10, 50, 10],
'child3': [40, 10, 10, 0],
'child4': [20, 10, 50, 0],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 10],
'child2': [20, 10, 60, 10],
'child3': [40, 10, 0, 0],
'child4': [20, 10, 60, 0],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 5, 10],
'child2': [20, 10, 55, 10],
'child3': [40, 10, 5, 0],
'child4': [20, 10, 55, 0],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 10],
'child2': [20, 10, 20, 10],
'child3': [40, 10, 40, 0],
'child4': [20, 10, 20, 0],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 10],
'child2': [20, 10, 0, 10],
'child3': [40, 10, 20, 0],
'child4': [20, 10, 0, 0],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 30, 10],
'child2': [20, 10, 10, 10],
'child3': [40, 10, 30, 0],
'child4': [20, 10, 10, 0],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 10],
'child2': [20, 10, 0, 10],
'child3': [40, 10, 40, 0],
'child4': [20, 10, 0, 0],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 35, 10],
'child2': [20, 10, 5, 10],
'child3': [40, 10, 35, 0],
'child4': [20, 10, 5, 0],
},
},
},
},
'column': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 0],
'child2': [10, 20, 90, 40],
'child3': [10, 40, 80, 0],
'child4': [10, 20, 80, 40],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 20],
'child2': [10, 20, 90, 60],
'child3': [10, 40, 80, 20],
'child4': [10, 20, 80, 60],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 10],
'child2': [10, 20, 90, 50],
'child3': [10, 40, 80, 10],
'child4': [10, 20, 80, 50],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 0],
'child2': [10, 20, 90, 60],
'child3': [10, 40, 80, 0],
'child4': [10, 20, 80, 60],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 5],
'child2': [10, 20, 90, 55],
'child3': [10, 40, 80, 5],
'child4': [10, 20, 80, 55],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 0],
'child2': [10, 20, 90, 40],
'child3': [10, 40, 80, 0],
'child4': [10, 20, 80, 40],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 20],
'child2': [10, 20, 90, 60],
'child3': [10, 40, 80, 20],
'child4': [10, 20, 80, 60],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 10],
'child2': [10, 20, 90, 50],
'child3': [10, 40, 80, 10],
'child4': [10, 20, 80, 50],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 0],
'child2': [10, 20, 90, 60],
'child3': [10, 40, 80, 0],
'child4': [10, 20, 80, 60],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 5],
'child2': [10, 20, 90, 55],
'child3': [10, 40, 80, 5],
'child4': [10, 20, 80, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
},
},
'row-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 10],
'child2': [20, 10, 20, 10],
'child3': [40, 10, 40, 0],
'child4': [20, 10, 20, 0],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 10],
'child2': [20, 10, 0, 10],
'child3': [40, 10, 20, 0],
'child4': [20, 10, 0, 0],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 30, 10],
'child2': [20, 10, 10, 10],
'child3': [40, 10, 30, 0],
'child4': [20, 10, 10, 0],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 40, 10],
'child2': [20, 10, 0, 10],
'child3': [40, 10, 40, 0],
'child4': [20, 10, 0, 0],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 35, 10],
'child2': [20, 10, 5, 10],
'child3': [40, 10, 35, 0],
'child4': [20, 10, 5, 0],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 10],
'child2': [20, 10, 40, 10],
'child3': [40, 10, 0, 0],
'child4': [20, 10, 40, 0],
},
'flex-end': {
'flexbox': [80, 20],
'child1': [40, 10, 20, 10],
'child2': [20, 10, 60, 10],
'child3': [40, 10, 20, 0],
'child4': [20, 10, 60, 0],
},
'center': {
'flexbox': [80, 20],
'child1': [40, 10, 10, 10],
'child2': [20, 10, 50, 10],
'child3': [40, 10, 10, 0],
'child4': [20, 10, 50, 0],
},
'space-between': {
'flexbox': [80, 20],
'child1': [40, 10, 0, 10],
'child2': [20, 10, 60, 10],
'child3': [40, 10, 0, 0],
'child4': [20, 10, 60, 0],
},
'space-around': {
'flexbox': [80, 20],
'child1': [40, 10, 5, 10],
'child2': [20, 10, 55, 10],
'child3': [40, 10, 5, 0],
'child4': [20, 10, 55, 0],
},
},
},
},
'column-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 40],
'child2': [10, 20, 90, 20],
'child3': [10, 40, 80, 40],
'child4': [10, 20, 80, 20],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 20],
'child2': [10, 20, 90, 0],
'child3': [10, 40, 80, 20],
'child4': [10, 20, 80, 0],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 30],
'child2': [10, 20, 90, 10],
'child3': [10, 40, 80, 30],
'child4': [10, 20, 80, 10],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 40],
'child2': [10, 20, 90, 0],
'child3': [10, 40, 80, 40],
'child4': [10, 20, 80, 0],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 35],
'child2': [10, 20, 90, 5],
'child3': [10, 40, 80, 35],
'child4': [10, 20, 80, 5],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 40],
'child2': [10, 20, 90, 20],
'child3': [10, 40, 80, 40],
'child4': [10, 20, 80, 20],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 20],
'child2': [10, 20, 90, 0],
'child3': [10, 40, 80, 20],
'child4': [10, 20, 80, 0],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 30],
'child2': [10, 20, 90, 10],
'child3': [10, 40, 80, 30],
'child4': [10, 20, 80, 10],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 40],
'child2': [10, 20, 90, 0],
'child3': [10, 40, 80, 40],
'child4': [10, 20, 80, 0],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 90, 35],
'child2': [10, 20, 90, 5],
'child3': [10, 40, 80, 35],
'child4': [10, 20, 80, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [100, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
},
},
},
'vertical-rl': {
'row': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 40],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 10],
'child2': [10, 20, 10, 50],
'child3': [10, 40, 0, 10],
'child4': [10, 20, 0, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 5],
'child2': [10, 20, 10, 55],
'child3': [10, 40, 0, 5],
'child4': [10, 20, 0, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 20],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 30],
'child2': [10, 20, 10, 10],
'child3': [10, 40, 0, 30],
'child4': [10, 20, 0, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 35],
'child2': [10, 20, 10, 5],
'child3': [10, 40, 0, 35],
'child4': [10, 20, 0, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
},
},
'column': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 20, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 0, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, -10],
'child4': [20, 10, 10, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 0, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, -10],
'child4': [20, 10, 5, -10],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 20, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 0, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, -10],
'child4': [20, 10, 10, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 0, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, -10],
'child4': [20, 10, 5, -10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
},
},
'row-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 20],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 30],
'child2': [10, 20, 10, 10],
'child3': [10, 40, 0, 30],
'child4': [10, 20, 0, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 35],
'child2': [10, 20, 10, 5],
'child3': [10, 40, 0, 35],
'child4': [10, 20, 0, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 40],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 10],
'child2': [10, 20, 10, 50],
'child3': [10, 40, 0, 10],
'child4': [10, 20, 0, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 5],
'child2': [10, 20, 10, 55],
'child3': [10, 40, 0, 5],
'child4': [10, 20, 0, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
},
},
'column-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 40, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 60, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, -10],
'child4': [20, 10, 50, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 60, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, -10],
'child4': [20, 10, 55, -10],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 40, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 60, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, -10],
'child4': [20, 10, 50, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 60, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, -10],
'child4': [20, 10, 55, -10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
},
},
},
'vertical-lr': {
'row': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 40],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 10],
'child2': [10, 20, 10, 50],
'child3': [10, 40, 0, 10],
'child4': [10, 20, 0, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 5],
'child2': [10, 20, 10, 55],
'child3': [10, 40, 0, 5],
'child4': [10, 20, 0, 55],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 20],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 30],
'child2': [10, 20, 10, 10],
'child3': [10, 40, 0, 30],
'child4': [10, 20, 0, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 35],
'child2': [10, 20, 10, 5],
'child3': [10, 40, 0, 35],
'child4': [10, 20, 0, 5],
},
},
},
},
'column': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 40, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 60, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, -10],
'child4': [20, 10, 50, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 60, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, -10],
'child4': [20, 10, 55, -10],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 40, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 60, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, -10],
'child4': [20, 10, 50, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, -10],
'child4': [20, 10, 60, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, -10],
'child4': [20, 10, 55, -10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 40, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 40, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 60, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 10, 0],
'child2': [20, 10, 50, 0],
'child3': [40, 10, 10, 10],
'child4': [20, 10, 50, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 0, 0],
'child2': [20, 10, 60, 0],
'child3': [40, 10, 0, 10],
'child4': [20, 10, 60, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 5, 0],
'child2': [20, 10, 55, 0],
'child3': [40, 10, 5, 10],
'child4': [20, 10, 55, 10],
},
},
},
},
'row-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 20],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 30],
'child2': [10, 20, 0, 10],
'child3': [10, 40, 10, 30],
'child4': [10, 20, 10, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 40],
'child2': [10, 20, 0, 0],
'child3': [10, 40, 10, 40],
'child4': [10, 20, 10, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 35],
'child2': [10, 20, 0, 5],
'child3': [10, 40, 10, 35],
'child4': [10, 20, 10, 5],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 20],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 20],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 0],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 30],
'child2': [10, 20, 10, 10],
'child3': [10, 40, 0, 30],
'child4': [10, 20, 0, 10],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 40],
'child2': [10, 20, 10, 0],
'child3': [10, 40, 0, 40],
'child4': [10, 20, 0, 0],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 35],
'child2': [10, 20, 10, 5],
'child3': [10, 40, 0, 35],
'child4': [10, 20, 0, 5],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 40],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 20],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 20],
'child4': [10, 20, 10, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 10],
'child2': [10, 20, 0, 50],
'child3': [10, 40, 10, 10],
'child4': [10, 20, 10, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 0],
'child2': [10, 20, 0, 60],
'child3': [10, 40, 10, 0],
'child4': [10, 20, 10, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 0, 5],
'child2': [10, 20, 0, 55],
'child3': [10, 40, 10, 5],
'child4': [10, 20, 10, 55],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 40],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 40],
},
'flex-end': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 20],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 20],
'child4': [10, 20, 0, 60],
},
'center': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 10],
'child2': [10, 20, 10, 50],
'child3': [10, 40, 0, 10],
'child4': [10, 20, 0, 50],
},
'space-between': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 0],
'child2': [10, 20, 10, 60],
'child3': [10, 40, 0, 0],
'child4': [10, 20, 0, 60],
},
'space-around': {
'flexbox': [20, 80],
'child1': [10, 40, 10, 5],
'child2': [10, 20, 10, 55],
'child3': [10, 40, 0, 5],
'child4': [10, 20, 0, 55],
},
},
},
},
'column-reverse': {
'ltr': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 20, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 0, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, -10],
'child4': [20, 10, 10, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 0, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, -10],
'child4': [20, 10, 5, -10],
},
},
},
'rtl': {
'wrap': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 20, -10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, -10],
'child4': [20, 10, 0, -10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, -10],
'child4': [20, 10, 10, -10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, -10],
'child4': [20, 10, 0, -10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, -10],
'child4': [20, 10, 5, -10],
},
},
'wrap-reverse': {
'flex-start': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 20, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 20, 10],
},
'flex-end': {
'flexbox': [80, 10],
'child1': [40, 10, 20, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 20, 10],
'child4': [20, 10, 0, 10],
},
'center': {
'flexbox': [80, 10],
'child1': [40, 10, 30, 0],
'child2': [20, 10, 10, 0],
'child3': [40, 10, 30, 10],
'child4': [20, 10, 10, 10],
},
'space-between': {
'flexbox': [80, 10],
'child1': [40, 10, 40, 0],
'child2': [20, 10, 0, 0],
'child3': [40, 10, 40, 10],
'child4': [20, 10, 0, 10],
},
'space-around': {
'flexbox': [80, 10],
'child1': [40, 10, 35, 0],
'child2': [20, 10, 5, 0],
'child3': [40, 10, 35, 10],
'child4': [20, 10, 5, 10],
},
},
},
},
},
};
function mainAxisDirection(writingMode, flexDirection)
{
if ((writingMode.indexOf('horizontal') != -1 && flexDirection.indexOf('row') != -1)
|| (writingMode.indexOf('vertical') != -1 && flexDirection.indexOf('column') != -1))
return 'width';
return 'height';
}
function addChild(flexbox, mainAxis, crossAxis, preferredSize, crossAxisLength, expectations)
{
var child = document.createElement('div');