diff --git a/src/Layout.c b/src/Layout.c index 2bea9773..275214b9 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -133,6 +133,15 @@ void print_style(css_node_t *node, int level) { print_number_0("paddingBottom", node->style.padding[CSS_BOTTOM]); } + if (four_equal(node->style.border)) { + print_number_0("borderWidth", node->style.border[CSS_LEFT]); + } else { + print_number_0("borderLeftWidth", node->style.border[CSS_LEFT]); + print_number_0("borderRightWidth", node->style.border[CSS_RIGHT]); + print_number_0("borderTopWidth", node->style.border[CSS_TOP]); + print_number_0("borderBottomWidth", node->style.border[CSS_BOTTOM]); + } + print_number_nan("width", node->style.dimensions[CSS_WIDTH]); print_number_nan("height", node->style.dimensions[CSS_HEIGHT]); @@ -203,7 +212,33 @@ float getMargin(css_node_t *node, int location) { } float getPadding(css_node_t *node, int location) { - return node->style.padding[location]; + if (node->style.padding[location] >= 0) { + return node->style.padding[location]; + } + return 0; +} + +float getBorder(css_node_t *node, int location) { + if (node->style.border[location] >= 0) { + return node->style.border[location]; + } + return 0; +} + +float getPaddingAndBorder(css_node_t *node, int location) { + return getPadding(node, location) + getBorder(node, location); +} + +float getMarginAxis(css_node_t *node, css_flex_direction_t axis) { + return getMargin(node, leading[axis]) + getMargin(node, trailing[axis]); +} + +float getPaddingAndBorderAxis(css_node_t *node, css_flex_direction_t axis) { + return getPaddingAndBorder(node, leading[axis]) + getPaddingAndBorder(node, trailing[axis]); +} + +css_position_type_t getPositionType(css_node_t *node) { + return node->style.position_type; } css_justify_t getJustifyContent(css_node_t *node) { @@ -235,6 +270,10 @@ bool isDimDefined(css_node_t *node, css_flex_direction_t axis) { return !isUndefined(node->style.dimensions[dim[axis]]); } +bool isPosDefined(css_node_t *node, css_position_t pos) { + return !isUndefined(node->style.position[pos]); +} + float getPosition(css_node_t *node, css_position_t pos) { float result = node->style.position[pos]; if (!isUndefined(result)) { @@ -261,23 +300,37 @@ void layoutNode(css_node_t *node) { bool mainDimInStyle = isDimDefined(node, mainAxis); if (isUndefined(node->layout.dimensions[dim[mainAxis]]) && mainDimInStyle) { - node->layout.dimensions[dim[mainAxis]] = node->style.dimensions[dim[mainAxis]]; + node->layout.dimensions[dim[mainAxis]] = fmaxf( + node->style.dimensions[dim[mainAxis]], + getPaddingAndBorderAxis(node, mainAxis) + ); } bool crossDimInStyle = isDimDefined(node, crossAxis); if (isUndefined(node->layout.dimensions[dim[crossAxis]]) && crossDimInStyle) { - node->layout.dimensions[dim[crossAxis]] = node->style.dimensions[dim[crossAxis]]; + node->layout.dimensions[dim[crossAxis]] = fmaxf( + node->style.dimensions[dim[crossAxis]], + getPaddingAndBorderAxis(node, crossAxis) + ); } float mainContentDim = 0; int flexibleChildrenCount = 0; + int absoluteChildrenCount = 0; for (int i = 0; i < node->children_count; ++i) { css_node_t* child = &node->children[i]; - if (isUndefined(node->layout.dimensions[dim[mainAxis]]) || !getFlex(child)) { + if (isUndefined(node->layout.dimensions[dim[mainAxis]]) || + getPositionType(child) == CSS_POSITION_ABSOLUTE || + !getFlex(child)) { layoutNode(child); - mainContentDim += getDimWithMargin(child, mainAxis); + if (getPositionType(child) == CSS_POSITION_RELATIVE) { + mainContentDim += getDimWithMargin(child, mainAxis); + } else { + absoluteChildrenCount++; + } } else { flexibleChildrenCount++; + mainContentDim += getPaddingAndBorderAxis(child, mainAxis) + getMarginAxis(child, mainAxis); } } @@ -285,16 +338,18 @@ void layoutNode(css_node_t *node) { float betweenMainDim = 0; if (!isUndefined(node->layout.dimensions[dim[mainAxis]])) { float remainingMainDim = node->layout.dimensions[dim[mainAxis]] - - getPadding(node, leading[mainAxis]) - - getPadding(node, trailing[mainAxis]) - + getPaddingAndBorderAxis(node, mainAxis) - mainContentDim; if (flexibleChildrenCount) { float flexibleMainDim = remainingMainDim / flexibleChildrenCount; + if (flexibleMainDim < 0) { + flexibleMainDim = 0; + } for (int i = 0; i < node->children_count; ++i) { css_node_t* child = &node->children[i]; - if (getFlex(child)) { - child->layout.dimensions[dim[mainAxis]] = flexibleMainDim; + if (getPositionType(child) == CSS_POSITION_RELATIVE && getFlex(child)) { + child->layout.dimensions[dim[mainAxis]] = flexibleMainDim + getPaddingAndBorderAxis(child, mainAxis); layoutNode(child); } } @@ -307,31 +362,39 @@ void layoutNode(css_node_t *node) { } else if (justifyContent == CSS_JUSTIFY_FLEX_END) { leadingMainDim = remainingMainDim; } else if (justifyContent == CSS_JUSTIFY_SPACE_BETWEEN) { - betweenMainDim = remainingMainDim / (node->children_count - 1); + betweenMainDim = remainingMainDim / (node->children_count - absoluteChildrenCount - 1); } else if (justifyContent == CSS_JUSTIFY_SPACE_AROUND) { - betweenMainDim = remainingMainDim / node->children_count; + betweenMainDim = remainingMainDim / (node->children_count - absoluteChildrenCount); leadingMainDim = betweenMainDim / 2; } } } float crossDim = 0; - float mainPos = getPadding(node, leading[mainAxis]) + leadingMainDim; + float mainPos = getPaddingAndBorder(node, leading[mainAxis]) + leadingMainDim; for (int i = 0; i < node->children_count; ++i) { css_node_t* child = &node->children[i]; - child->layout.position[pos[mainAxis]] += mainPos; - mainPos += getDimWithMargin(child, mainAxis) + betweenMainDim; + if (getPositionType(child) == CSS_POSITION_ABSOLUTE && isPosDefined(child, leading[mainAxis])) { + child->layout.position[pos[mainAxis]] = getPosition(child, leading[mainAxis]) + + getBorder(node, leading[mainAxis]) + + getMargin(child, leading[mainAxis]); + } else { + child->layout.position[pos[mainAxis]] += mainPos; + } + if (getPositionType(child) == CSS_POSITION_RELATIVE) { + mainPos += getDimWithMargin(child, mainAxis) + betweenMainDim; - if (!isUndefined(child->layout.dimensions[dim[crossAxis]])) { - float childCrossDim = getDimWithMargin(child, crossAxis); - if (childCrossDim > crossDim) { - crossDim = childCrossDim; + if (!isUndefined(child->layout.dimensions[dim[crossAxis]])) { + float childCrossDim = getDimWithMargin(child, crossAxis); + if (childCrossDim > crossDim) { + crossDim = childCrossDim; + } } } } - mainPos += getPadding(node, trailing[mainAxis]); - crossDim += getPadding(node, leading[crossAxis]) + - getPadding(node, trailing[crossAxis]); + mainPos += getPaddingAndBorder(node, trailing[mainAxis]); + crossDim += getPaddingAndBorder(node, leading[crossAxis]) + + getPaddingAndBorder(node, trailing[crossAxis]); if (isUndefined(node->layout.dimensions[dim[mainAxis]]) && !mainDimInStyle) { node->layout.dimensions[dim[mainAxis]] = mainPos > 0 ? mainPos : 0; @@ -342,27 +405,37 @@ void layoutNode(css_node_t *node) { for (int i = 0; i < node->children_count; ++i) { css_node_t* child = &node->children[i]; - css_align_t alignItem = getAlignItem(node, child); - float remainingCrossDim = node->layout.dimensions[dim[crossAxis]] - - getDimWithMargin(child, crossAxis) - - getPadding(node, leading[crossAxis]) - - getPadding(node, trailing[crossAxis]); - float leadingCrossDim = getPadding(node, leading[crossAxis]); - if (alignItem == CSS_ALIGN_FLEX_START) { - // Do nothing - } else if (alignItem == CSS_ALIGN_CENTER) { - leadingCrossDim += remainingCrossDim / 2; - } else if (alignItem == CSS_ALIGN_FLEX_END) { - leadingCrossDim += remainingCrossDim; - } else if (alignItem == CSS_ALIGN_STRETCH) { - child->layout.dimensions[dim[crossAxis]] = node->layout.dimensions[dim[crossAxis]] - - getPadding(node, leading[crossAxis]) - - getPadding(node, trailing[crossAxis]) - - getMargin(child, leading[crossAxis]) - - getMargin(child, trailing[crossAxis]); + if (getPositionType(child) == CSS_POSITION_RELATIVE) { + css_align_t alignItem = getAlignItem(node, child); + float remainingCrossDim = node->layout.dimensions[dim[crossAxis]] - + getDimWithMargin(child, crossAxis) - + getPaddingAndBorderAxis(node, crossAxis); + + float leadingCrossDim = getPaddingAndBorder(node, leading[crossAxis]); + if (alignItem == CSS_ALIGN_FLEX_START) { + // Do nothing + } else if (alignItem == CSS_ALIGN_CENTER) { + leadingCrossDim += remainingCrossDim / 2; + } else if (alignItem == CSS_ALIGN_FLEX_END) { + leadingCrossDim += remainingCrossDim; + } else if (alignItem == CSS_ALIGN_STRETCH) { + if (!isDimDefined(child, crossAxis)) { + child->layout.dimensions[dim[crossAxis]] = node->layout.dimensions[dim[crossAxis]] - + getPaddingAndBorderAxis(node, crossAxis) - + getMarginAxis(child, crossAxis); + } + } + child->layout.position[pos[crossAxis]] += leadingCrossDim; + } else { + if (isPosDefined(child, leading[crossAxis])) { + child->layout.position[pos[crossAxis]] = getPosition(child, leading[crossAxis]) + + getBorder(node, leading[crossAxis]) + + getMargin(child, leading[crossAxis]); + } else { + child->layout.position[pos[crossAxis]] += getPaddingAndBorder(node, leading[crossAxis]); + } } - child->layout.position[pos[crossAxis]] += leadingCrossDim; } node->layout.position[leading[mainAxis]] += getMargin(node, leading[mainAxis]) + diff --git a/src/Layout.h b/src/Layout.h index b012a2d8..07d97623 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -30,6 +30,11 @@ typedef enum { CSS_FLEX_ONE } css_flex_t; +typedef enum { + CSS_POSITION_RELATIVE = 0, + CSS_POSITION_ABSOLUTE +} css_position_type_t; + // Note: left and top are shared between position[2] and position[4], so // they have to be before right and bottom. typedef enum { @@ -56,8 +61,10 @@ typedef struct { css_align_t align_items; css_align_t align_self; css_flex_t flex; + css_position_type_t position_type; float margin[4]; float padding[4]; + float border[4]; float position[4]; float dimensions[2]; } css_style_t; diff --git a/src/Layout.js b/src/Layout.js index 800bf887..a930ee6c 100755 --- a/src/Layout.js +++ b/src/Layout.js @@ -61,7 +61,7 @@ var computeLayout = (function() { } function isUndefined(value) { - return value == undefined; + return value === undefined; } function getMargin(node, location) { @@ -120,7 +120,7 @@ var computeLayout = (function() { } function getFlex(node) { - return node.style.flex == 1; + return node.style.flex === 1; } function getDimWithMargin(node, axis) { @@ -169,6 +169,13 @@ var computeLayout = (function() { column: 'height' }; + function fmaxf(a, b) { + if (a > b) { + return a; + } + return b; + } + var CSS_FLEX_DIRECTION_ROW = 'row'; var CSS_FLEX_DIRECTION_COLUMN = 'column'; @@ -183,15 +190,18 @@ var computeLayout = (function() { var CSS_ALIGN_FLEX_END = 'flex-end'; var CSS_ALIGN_STRETCH = 'stretch'; + var CSS_POSITION_RELATIVE = 'relative'; + var CSS_POSITION_ABSOLUTE = 'absolute'; + function layoutNode(node) { var/*css_flex_direction_t*/ mainAxis = getFlexDirection(node); - var/*css_flex_direction_t*/ crossAxis = mainAxis == CSS_FLEX_DIRECTION_ROW ? + var/*css_flex_direction_t*/ crossAxis = mainAxis === CSS_FLEX_DIRECTION_ROW ? CSS_FLEX_DIRECTION_COLUMN : CSS_FLEX_DIRECTION_ROW; var/*bool*/ mainDimInStyle = isDimDefined(node, mainAxis); if (isUndefined(node.layout[dim[mainAxis]]) && mainDimInStyle) { - node.layout[dim[mainAxis]] = Math.max( + node.layout[dim[mainAxis]] = fmaxf( node.style[dim[mainAxis]], getPaddingAndBorderAxis(node, mainAxis) ); @@ -199,7 +209,7 @@ var computeLayout = (function() { var/*bool*/ crossDimInStyle = isDimDefined(node, crossAxis); if (isUndefined(node.layout[dim[crossAxis]]) && crossDimInStyle) { - node.layout[dim[crossAxis]] = Math.max( + node.layout[dim[crossAxis]] = fmaxf( node.style[dim[crossAxis]], getPaddingAndBorderAxis(node, crossAxis) ); @@ -211,10 +221,10 @@ var computeLayout = (function() { for (var/*int*/ i = 0; i < node.children.length; ++i) { var/*css_node_t**/ child = node.children[i]; if (isUndefined(node.layout[dim[mainAxis]]) || - getPositionType(child) === 'absolute' || + getPositionType(child) === CSS_POSITION_ABSOLUTE || !getFlex(child)) { layoutNode(child); - if (getPositionType(child) === 'relative') { + if (getPositionType(child) === CSS_POSITION_RELATIVE) { mainContentDim += getDimWithMargin(child, mainAxis); } else { absoluteChildrenCount++; @@ -239,22 +249,22 @@ var computeLayout = (function() { } for (var/*int*/ i = 0; i < node.children.length; ++i) { var/*css_node_t**/ child = node.children[i]; - if (getPositionType(child) === 'relative' && getFlex(child)) { + if (getPositionType(child) === CSS_POSITION_RELATIVE && getFlex(child)) { child.layout[dim[mainAxis]] = flexibleMainDim + getPaddingAndBorderAxis(child, mainAxis); layoutNode(child); } } } else { var/*css_justify_t*/ justifyContent = getJustifyContent(node); - if (justifyContent == CSS_JUSTIFY_FLEX_START) { + if (justifyContent === CSS_JUSTIFY_FLEX_START) { // Do nothing - } else if (justifyContent == CSS_JUSTIFY_CENTER) { + } else if (justifyContent === CSS_JUSTIFY_CENTER) { leadingMainDim = remainingMainDim / 2; - } else if (justifyContent == CSS_JUSTIFY_FLEX_END) { + } else if (justifyContent === CSS_JUSTIFY_FLEX_END) { leadingMainDim = remainingMainDim; - } else if (justifyContent == CSS_JUSTIFY_SPACE_BETWEEN) { + } else if (justifyContent === CSS_JUSTIFY_SPACE_BETWEEN) { betweenMainDim = remainingMainDim / (node.children.length - absoluteChildrenCount - 1); - } else if (justifyContent == CSS_JUSTIFY_SPACE_AROUND) { + } else if (justifyContent === CSS_JUSTIFY_SPACE_AROUND) { betweenMainDim = remainingMainDim / (node.children.length - absoluteChildrenCount); leadingMainDim = betweenMainDim / 2; } @@ -265,14 +275,14 @@ var computeLayout = (function() { var/*float*/ mainPos = getPaddingAndBorder(node, leading[mainAxis]) + leadingMainDim; for (var/*int*/ i = 0; i < node.children.length; ++i) { var/*css_node_t**/ child = node.children[i]; - if (getPositionType(child) === 'absolute' && isPosDefined(child, leading[mainAxis])) { + if (getPositionType(child) === CSS_POSITION_ABSOLUTE && isPosDefined(child, leading[mainAxis])) { child.layout[pos[mainAxis]] = getPosition(child, leading[mainAxis]) + getBorder(node, leading[mainAxis]) + getMargin(child, leading[mainAxis]); } else { child.layout[pos[mainAxis]] += mainPos; } - if (getPositionType(child) === 'relative') { + if (getPositionType(child) === CSS_POSITION_RELATIVE) { mainPos += getDimWithMargin(child, mainAxis) + betweenMainDim; if (!isUndefined(child.layout[dim[crossAxis]])) { @@ -297,20 +307,20 @@ var computeLayout = (function() { for (var/*int*/ i = 0; i < node.children.length; ++i) { var/*css_node_t**/ child = node.children[i]; - if (getPositionType(child) === 'relative') { + if (getPositionType(child) === CSS_POSITION_RELATIVE) { var/*css_align_t*/ alignItem = getAlignItem(node, child); var/*float*/ remainingCrossDim = node.layout[dim[crossAxis]] - getDimWithMargin(child, crossAxis) - getPaddingAndBorderAxis(node, crossAxis); var/*float*/ leadingCrossDim = getPaddingAndBorder(node, leading[crossAxis]); - if (alignItem == CSS_ALIGN_FLEX_START) { + if (alignItem === CSS_ALIGN_FLEX_START) { // Do nothing - } else if (alignItem == CSS_ALIGN_CENTER) { + } else if (alignItem === CSS_ALIGN_CENTER) { leadingCrossDim += remainingCrossDim / 2; - } else if (alignItem == CSS_ALIGN_FLEX_END) { + } else if (alignItem === CSS_ALIGN_FLEX_END) { leadingCrossDim += remainingCrossDim; - } else if (alignItem == CSS_ALIGN_STRETCH) { + } else if (alignItem === CSS_ALIGN_STRETCH) { if (!isDimDefined(child, crossAxis)) { child.layout[dim[crossAxis]] = node.layout[dim[crossAxis]] - getPaddingAndBorderAxis(node, crossAxis) - diff --git a/src/__tests__/Layout-test.c b/src/__tests__/Layout-test.c index f641f3bc..d3017a77 100644 --- a/src/__tests__/Layout-test.c +++ b/src/__tests__/Layout-test.c @@ -1687,90 +1687,24 @@ int main() test("should layout node with both top and bottom", root_node, root_layout); } - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 655; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 655; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #0", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #1", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_RIGHT] = 5; - node->style.position[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #2", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #3", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 4; + node->style.dimensions[CSS_WIDTH] = 500; + init_css_node_children(node, 3); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->style.flex = CSS_FLEX_ONE; + node = &outer_node_1->children[1]; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.dimensions[CSS_WIDTH] = 50; + node = &outer_node_1->children[2]; + node->style.flex = CSS_FLEX_ONE; + } } css_node_t *root_layout = new_css_node(); @@ -1778,383 +1712,31 @@ int main() css_node_t *node = root_layout; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_WIDTH] = 500; node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 3); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 250; + node->layout.dimensions[CSS_HEIGHT] = 0; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 250; + node->layout.dimensions[CSS_WIDTH] = 50; + node->layout.dimensions[CSS_HEIGHT] = 0; + node = &outer_node_1->children[2]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 250; + node->layout.dimensions[CSS_WIDTH] = 250; + node->layout.dimensions[CSS_HEIGHT] = 0; + } } - test("Random #4", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #5", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #6", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #7", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #8", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 403; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 403; - } - - test("Random #9", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 910; - node->style.position[CSS_TOP] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 910; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #10", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 6; - node->style.padding[CSS_LEFT] = 5; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #11", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #12", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.position[CSS_LEFT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #13", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 18; - node->style.position[CSS_LEFT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #14", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 14; - node->style.position[CSS_LEFT] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #15", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 10; - node->style.position[CSS_BOTTOM] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #16", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 358; - node->style.margin[CSS_LEFT] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 358; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #17", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #18", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #19", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 11; - node->style.position[CSS_RIGHT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #20", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 6; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #21", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #22", root_node, root_layout); + test("should layout node with position: absolute", root_node, root_layout); } { @@ -2166,8 +1748,8 @@ int main() css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_RIGHT] = -4; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.margin[CSS_RIGHT] = 15; } } @@ -2184,13 +1766,13 @@ int main() css_node_t *node; node = &outer_node_1->children[0]; node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; + node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #23", root_node, root_layout); + test("should layout node with child with position: absolute and margin", root_node, root_layout); } { @@ -2202,12 +1784,147 @@ int main() css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_BOTTOM] = 10; + node->style.align_self = CSS_ALIGN_CENTER; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.padding[CSS_RIGHT] = 12; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 12; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + } + + test("should layout node with position: absolute, padding and alignSelf: center", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.dimensions[CSS_HEIGHT] = 5; + node->style.padding[CSS_BOTTOM] = 20; + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 20; + } + + test("should work with height smaller than paddingBottom", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.dimensions[CSS_WIDTH] = 5; + node->style.padding[CSS_LEFT] = 20; + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 20; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + + test("should work with width smaller than paddingLeft", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + init_css_node_children(node, 2); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + init_css_node_children(node, 1); + { + css_node_t *outer_node_2 = node; + css_node_t *node; + node = &outer_node_2->children[0]; + node->style.dimensions[CSS_WIDTH] = 400; + } + node = &outer_node_1->children[1]; + node->style.align_self = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_WIDTH] = 200; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 400; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 2); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 400; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 1); + { + css_node_t *outer_node_2 = node; + css_node_t *node; + node = &outer_node_2->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 400; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 200; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + } + + test("should layout node with specified width and stretch", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.padding[CSS_LEFT] = 5; + node->style.padding[CSS_TOP] = 5; + node->style.padding[CSS_RIGHT] = 5; + node->style.padding[CSS_BOTTOM] = 5; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->style.position_type = CSS_POSITION_ABSOLUTE; } } @@ -2217,7 +1934,7 @@ int main() node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 15; + node->layout.dimensions[CSS_HEIGHT] = 10; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; @@ -2230,655 +1947,34 @@ int main() } } - test("Random #24", root_node, root_layout); + test("should layout node with padding and child with position absolute", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #25", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #26", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.position[CSS_TOP] = -10; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #27", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_BOTTOM] = 11; - node->style.padding[CSS_BOTTOM] = 6; - node->style.position[CSS_TOP] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - } - - test("Random #28", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 1; - node->style.position[CSS_TOP] = 0; - node->style.position[CSS_RIGHT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #29", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position[CSS_TOP] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #30", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #31", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_TOP] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #32", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 114; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 114; - } - - test("Random #33", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_TOP] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #34", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #35", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 12; - node->style.position[CSS_LEFT] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_RIGHT] = 2; - node->style.position[CSS_BOTTOM] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #36", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 931; - node->style.position[CSS_LEFT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_RIGHT] = 8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 931; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #37", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #38", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = 2; init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_RIGHT] = 1; + node->style.dimensions[CSS_HEIGHT] = 100; node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.margin[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 12; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.position[CSS_LEFT] = 10; + node->style.position[CSS_TOP] = 10; } } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 24; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 100; init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 10; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #39", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 539; - node->style.padding[CSS_BOTTOM] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 539; - } - - test("Random #40", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 629; - node->style.position[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 629; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #41", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 867; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 867; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #42", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #43", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #44", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #45", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #46", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 2; - node->style.position[CSS_TOP] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #47", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 726; - node->style.position[CSS_LEFT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 726; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #48", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #49", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 295; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 295; - init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; @@ -2886,571 +1982,32 @@ int main() node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #50", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #51", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #52", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #53", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #54", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 582; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 582; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #55", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 821; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 821; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #56", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node->style.padding[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 31; - } - - test("Random #57", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 753; - node->style.margin[CSS_TOP] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 753; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #58", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 134; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 10; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 134; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 17; + node->layout.dimensions[CSS_HEIGHT] = 100; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 10; node->layout.position[CSS_LEFT] = 10; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #59", root_node, root_layout); + test("should layout node with position absolute, top and left", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_RIGHT] = 13; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_BOTTOM] = 19; - node->style.position[CSS_BOTTOM] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_TOP] = -7; - node = &outer_node_2->children[1]; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.dimensions[CSS_WIDTH] = 540; - init_css_node_children(node, 1); - { - css_node_t *outer_node_4 = node; - css_node_t *node; - node = &outer_node_4->children[0]; - } - node = &outer_node_3->children[1]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 10; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - } - node = &outer_node_1->children[1]; - node->style.align_items = CSS_ALIGN_FLEX_END; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node = &outer_node_2->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_HEIGHT] = 458; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.margin[CSS_RIGHT] = 2; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 540; - node->layout.dimensions[CSS_HEIGHT] = 544; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 540; - node->layout.dimensions[CSS_HEIGHT] = 69; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = -7; - node->layout.position[CSS_LEFT] = 540; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 540; - node->layout.dimensions[CSS_HEIGHT] = 40; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 540; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_4 = node; - css_node_t *node; - node = &outer_node_4->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_3->children[1]; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 69; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 475; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 458; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #60", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #61", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 901; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 901; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #62", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 2; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - node->style.padding[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 34; - node->layout.dimensions[CSS_HEIGHT] = 34; - } - - test("Random #63", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #64", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.position[CSS_LEFT] = -10; + node->style.padding[CSS_LEFT] = 20; + node->style.padding[CSS_TOP] = 20; + node->style.padding[CSS_RIGHT] = 20; + node->style.padding[CSS_BOTTOM] = 20; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_RIGHT] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #65", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 61; - node->style.position[CSS_LEFT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 63; - node->layout.dimensions[CSS_HEIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 61; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #66", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 205; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 731; + node->style.position_type = CSS_POSITION_ABSOLUTE; node->style.position[CSS_LEFT] = 5; } } @@ -3460,495 +2017,21 @@ int main() css_node_t *node = root_layout; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 731; - node->layout.dimensions[CSS_HEIGHT] = 205; + node->layout.dimensions[CSS_WIDTH] = 40; + node->layout.dimensions[CSS_HEIGHT] = 40; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_TOP] = 20; node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 731; - node->layout.dimensions[CSS_HEIGHT] = 205; - } - } - - test("Random #67", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #68", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 0; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - node->style.padding[CSS_RIGHT] = 11; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #69", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #70", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_TOP] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #71", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 305; - node->style.margin[CSS_TOP] = 2; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - node->style.position[CSS_RIGHT] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 305; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - } - - test("Random #72", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #73", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #74", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #75", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 740; - node = &outer_node_1->children[1]; - node->style.dimensions[CSS_WIDTH] = 644; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 13; - node->style.margin[CSS_BOTTOM] = 13; - node->style.margin[CSS_BOTTOM] = 14; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 774; - node->layout.dimensions[CSS_HEIGHT] = 61; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 740; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 30; - node->layout.position[CSS_LEFT] = 30; - node->layout.dimensions[CSS_WIDTH] = 644; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #76", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #77", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #78", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #79", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #80", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 14; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #81", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 495; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_BOTTOM] = 6; - node->style.position[CSS_LEFT] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 495; - } - - test("Random #82", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #83", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 4; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #84", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -5; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #85", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #86", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #87", root_node, root_layout); + test("should layout node with padding and child position absolute, left", root_node, root_layout); } { @@ -3960,1478 +2043,12 @@ int main() css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_TOP] = 8; - node->style.position[CSS_LEFT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - } - - test("Random #88", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.position[CSS_RIGHT] = 4; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #89", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 415; - node->style.position[CSS_LEFT] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 415; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #90", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #91", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #92", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 9; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_TOP] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #93", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #94", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #95", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 35; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 35; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #96", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #97", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 345; - node->style.position[CSS_TOP] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 345; - } - - test("Random #98", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_TOP] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #99", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_LEFT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #100", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #101", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position[CSS_TOP] = 7; - node->style.position[CSS_BOTTOM] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #102", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #103", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #104", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 828; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 828; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #105", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.margin[CSS_RIGHT] = 1; - node->style.position[CSS_RIGHT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #106", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #107", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #108", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 974; - node->style.margin[CSS_RIGHT] = 16; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 974; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #109", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 19; - node->style.position[CSS_TOP] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #110", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_LEFT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #111", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 584; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 584; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #112", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #113", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #114", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_LEFT] = -4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - } - - test("Random #115", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_LEFT] = -4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #116", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #117", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_RIGHT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #118", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 8; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #119", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #120", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #121", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 850; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 850; - } - - test("Random #122", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.position[CSS_RIGHT] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = -2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #123", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_BOTTOM] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #124", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 262; - node->style.margin[CSS_TOP] = 17; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 262; - } - - test("Random #125", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #126", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 27; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #127", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #128", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #129", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #130", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 14; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 21; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #131", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - node->style.margin[CSS_BOTTOM] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; + node->style.position_type = CSS_POSITION_ABSOLUTE; node->style.margin[CSS_TOP] = 5; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_HEIGHT] = 326; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_LEFT] = -1; - } + node->style.position[CSS_TOP] = 5; } } - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 335; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 330; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 326; - } - } - } - - test("Random #132", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 126; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 9; - node->style.position[CSS_RIGHT] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 126; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #133", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 31; - } - - test("Random #134", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = 9; - node->style.position[CSS_TOP] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #135", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 7; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #136", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #137", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #138", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 567; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 567; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #139", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #140", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 147; - node->style.dimensions[CSS_HEIGHT] = 603; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 11; - node->style.padding[CSS_RIGHT] = 12; - node->style.position[CSS_RIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.position[CSS_LEFT] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_HEIGHT] = 232; - node->style.margin[CSS_LEFT] = 6; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 147; - node->layout.dimensions[CSS_HEIGHT] = 603; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 232; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 232; - } - } - } - - test("Random #141", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #142", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 323; - node->style.margin[CSS_LEFT] = 14; - node->style.position[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 323; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #143", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_BOTTOM] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 16; - node->style.position[CSS_LEFT] = -9; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #144", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 223; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 223; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #145", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; @@ -5439,1492 +2056,32 @@ int main() node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #146", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 6; - node->style.position[CSS_RIGHT] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 22; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #147", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_TOP] = 15; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_RIGHT] = -10; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_TOP] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 15; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 35; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #148", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.position[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #149", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #150", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #151", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_TOP] = 19; - node->style.padding[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #152", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #153", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 43; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 43; - } - - test("Random #154", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[CSS_LEFT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #155", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - node->style.position[CSS_TOP] = 7; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 10; - node = &outer_node_1->children[1]; - node->style.padding[CSS_LEFT] = 11; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_RIGHT] = 5; - node->style.padding[CSS_LEFT] = 6; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 53; - node->layout.dimensions[CSS_HEIGHT] = 28; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 29; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #156", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #157", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #158", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 13; - node->style.position[CSS_BOTTOM] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 17; + node->layout.position[CSS_TOP] = 10; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #159", root_node, root_layout); + test("should layout node with position: absolute, top and marginTop", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.position[CSS_TOP] = 1; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 10; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 19; - node->style.padding[CSS_TOP] = 9; - } - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.position[CSS_LEFT] = -4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 33; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 33; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 33; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #160", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 529; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = 8; - node->style.position[CSS_BOTTOM] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 529; - } - - test("Random #161", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #162", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #163", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #164", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #165", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 516; - node->style.padding[CSS_TOP] = 5; - node->style.position[CSS_BOTTOM] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 516; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #166", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 0; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #167", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #168", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #169", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #170", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.margin[CSS_RIGHT] = 18; - node->style.position[CSS_TOP] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #171", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_RIGHT] = 18; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #172", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 744; - node->style.dimensions[CSS_HEIGHT] = 306; - node->style.margin[CSS_RIGHT] = 10; - node->style.position[CSS_RIGHT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 744; - node->layout.dimensions[CSS_HEIGHT] = 306; - } - - test("Random #173", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_RIGHT] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 7; - node->style.padding[CSS_LEFT] = 15; - node->style.position[CSS_LEFT] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 35; - node->layout.dimensions[CSS_HEIGHT] = 27; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #174", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #175", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #176", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #177", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 290; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 290; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #178", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #179", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 396; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 396; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #180", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #181", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #182", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #183", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #184", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 748; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 748; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #185", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #186", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #187", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #188", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #189", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 751; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 4; - node->style.position[CSS_RIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_BOTTOM] = 6; - node->style.position[CSS_LEFT] = -8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 751; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #190", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 19; - node->style.position[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #191", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_RIGHT] = 15; - node = &outer_node_1->children[1]; - node->style.margin[CSS_BOTTOM] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 33; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #192", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 120; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 120; - } - - test("Random #193", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #194", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 412; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 16; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_WIDTH] = 704; - } - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_END; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 412; - node->layout.dimensions[CSS_HEIGHT] = 37; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 37; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 712; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 704; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 37; - node->layout.position[CSS_LEFT] = 396; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #195", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 159; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 159; - } - - test("Random #196", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_RIGHT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #197", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #198", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #199", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 922; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 24; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 922; - } - - test("Random #200", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 26; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #201", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #202", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 16; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position[CSS_BOTTOM] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - } - node = &outer_node_1->children[1]; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 126; - node->style.margin[CSS_RIGHT] = 19; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.margin[CSS_LEFT] = 5; node->style.position[CSS_LEFT] = 5; } } @@ -6932,1702 +2089,104 @@ int main() css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 16; + node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 126; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 10; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + } + + test("should layout node with position: absolute, left and marginLeft", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + node->style.dimensions[CSS_HEIGHT] = 200; init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -1; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node = &outer_node_1->children[1]; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 200; + init_css_node_children(node, 2); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 100; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 100; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + } + + test("should layout node with space-around and child position absolute", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.dimensions[CSS_WIDTH] = 700; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->style.flex = CSS_FLEX_ONE; + node->style.margin[CSS_LEFT] = 5; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 700; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 126; - } - } - - test("Random #203", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #204", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_BOTTOM] = 7; - node->style.position[CSS_RIGHT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #205", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 122; - node->style.margin[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 122; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #206", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 217; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_TOP] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 217; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #207", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 666; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 666; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #208", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #209", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #210", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.margin[CSS_LEFT] = 2; - node->style.position[CSS_TOP] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 24; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #211", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 696; - node->style.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_TOP] = 3; - node->style.position[CSS_RIGHT] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 696; - } - - test("Random #212", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.margin[CSS_TOP] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.position[CSS_RIGHT] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #213", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #214", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 26; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #215", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.margin[CSS_TOP] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #216", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 196; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 196; - } - - test("Random #217", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #218", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #219", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #220", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 539; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 539; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #221", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #222", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_RIGHT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #223", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 613; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_RIGHT] = 11; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 613; - } - - test("Random #224", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_RIGHT] = 19; - node->style.position[CSS_LEFT] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 19; + node->layout.dimensions[CSS_WIDTH] = 695; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #225", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #226", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 9; - node->style.position[CSS_TOP] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #227", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #228", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_BOTTOM] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.align_self = CSS_ALIGN_FLEX_START; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #229", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 34; - node->layout.dimensions[CSS_HEIGHT] = 34; - } - - test("Random #230", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #231", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #232", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 892; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 892; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #233", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #234", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #235", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #236", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #237", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #238", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #239", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #240", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #241", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -10; - node->style.position[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #242", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #243", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.position[CSS_LEFT] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 862; - node->style.padding[CSS_LEFT] = 14; - node->style.position[CSS_RIGHT] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 862; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 862; - } - } - - test("Random #244", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #245", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #246", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - node->style.position[CSS_TOP] = -3; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #247", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_TOP] = 12; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #248", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 864; - node->style.padding[CSS_LEFT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 864; - } - - test("Random #249", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - node->style.position[CSS_LEFT] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #250", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #251", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_TOP] = 10; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_LEFT] = 5; - node->style.position[CSS_RIGHT] = -8; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 11; - node->style.position[CSS_LEFT] = -10; - node = &outer_node_1->children[2]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_TOP] = 12; - node->style.padding[CSS_LEFT] = 15; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 5; - node->style.padding[CSS_TOP] = 10; - node = &outer_node_2->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_RIGHT] = 8; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 41; - node->layout.dimensions[CSS_HEIGHT] = 75; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 26; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 32; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 11; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 55; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 40; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 27.5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 20; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #252", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.padding[CSS_LEFT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #253", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 49; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 49; - } - - test("Random #254", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 835; - node->style.position[CSS_RIGHT] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 835; - } - - test("Random #255", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #256", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #257", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #258", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #259", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 117; - node->style.position[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 117; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #260", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #261", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.padding[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #262", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #263", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_TOP] = 15; - node->style.position[CSS_TOP] = -8; - node->style.position[CSS_BOTTOM] = -2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #264", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_LEFT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #265", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.padding[CSS_LEFT] = 19; - node->style.position[CSS_BOTTOM] = -7; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 283; - node->style.padding[CSS_LEFT] = 19; - node->style.position[CSS_RIGHT] = -9; - node = &outer_node_1->children[1]; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 302; - node->layout.dimensions[CSS_HEIGHT] = 38; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 28; - node->layout.dimensions[CSS_WIDTH] = 283; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 21; - node->layout.dimensions[CSS_WIDTH] = 34; - node->layout.dimensions[CSS_HEIGHT] = 34; - } - } - - test("Random #266", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = 11; - node->style.margin[CSS_BOTTOM] = 11; - node->style.padding[CSS_TOP] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #267", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #268", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 19; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_TOP] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #269", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #270", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 14; - node->style.position[CSS_LEFT] = -2; - node->style.position[CSS_RIGHT] = 1; - node->style.position[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_LEFT] = -8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 14; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #271", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_TOP] = 16; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_RIGHT] = 8; - node->style.position[CSS_BOTTOM] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #272", root_node, root_layout); + test("should layout node with flex and main margin", root_node, root_layout); } { @@ -8635,1951 +2194,16 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #273", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.position[CSS_RIGHT] = -5; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_START; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #274", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.padding[CSS_RIGHT] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #275", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #276", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #277", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #278", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #279", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #280", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 827; - node->style.margin[CSS_RIGHT] = 6; - node->style.position[CSS_BOTTOM] = 1; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_RIGHT] = 14; - node = &outer_node_2->children[1]; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 17; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 23; - node->layout.dimensions[CSS_HEIGHT] = 827; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 827; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #281", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 683; - node->style.margin[CSS_RIGHT] = 6; - node->style.position[CSS_LEFT] = 3; - node->style.position[CSS_BOTTOM] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 692; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 683; - } - } - - test("Random #282", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 187; - node->style.padding[CSS_LEFT] = 10; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 187; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #283", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_TOP] = 8; - node->style.position[CSS_BOTTOM] = 2; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - } - } - - test("Random #284", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.padding[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #285", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #286", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #287", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #288", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #289", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_BOTTOM] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #290", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 18; - node->style.position[CSS_LEFT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #291", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #292", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #293", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 923; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - } - } - - test("Random #294", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #295", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 919; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 927; - node->layout.dimensions[CSS_HEIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 919; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - - test("Random #296", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_RIGHT] = 19; + node->style.dimensions[CSS_WIDTH] = 700; init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node = &outer_node_1->children[1]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 19; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #297", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #298", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 21; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #299", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 17; - node->style.position[CSS_LEFT] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #300", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 855; - node->style.margin[CSS_TOP] = 2; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 14; - node->style.position[CSS_RIGHT] = 4; - init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 378; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 378; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #301", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #302", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #303", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #304", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 99; - node->style.margin[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 99; - } - - test("Random #305", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #306", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.position[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #307", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #308", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #309", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #310", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_RIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_LEFT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #311", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #312", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #313", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #314", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #315", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 28; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #316", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = 3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - test("Random #317", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = -9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #318", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_BOTTOM] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #319", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #320", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #321", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #322", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 3; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #323", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #324", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 832; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 846; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 832; - } - } - - test("Random #325", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #326", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #327", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #328", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #329", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 4; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = 8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #330", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 13; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #331", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #332", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.position[CSS_RIGHT] = 3; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #333", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_RIGHT] = 6; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; + node = &outer_node_1->children[1]; + node->style.flex = CSS_FLEX_ONE; node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 34; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #334", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #335", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #336", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #337", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_TOP] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #338", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #339", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 9; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #340", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #341", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 572; - node->style.dimensions[CSS_HEIGHT] = 971; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 572; - node->layout.dimensions[CSS_HEIGHT] = 971; - } - - test("Random #342", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; } } @@ -10588,328 +2212,8 @@ int main() css_node_t *node = root_layout; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_WIDTH] = 700; node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #343", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 0; - node->style.position[CSS_RIGHT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #344", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #345", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #346", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #347", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #348", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 888; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 888; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #349", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 711; - node->style.margin[CSS_LEFT] = 7; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 711; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #350", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #351", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_BOTTOM] = 7; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 630; - node->style.padding[CSS_TOP] = 18; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - node = &outer_node_1->children[1]; - node->style.position[CSS_LEFT] = -10; - node->style.position[CSS_TOP] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 25; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 22; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #352", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_LEFT] = -4; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 944; - node = &outer_node_1->children[1]; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 18; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 944; - node->layout.dimensions[CSS_HEIGHT] = 8; init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; @@ -10917,38 +2221,17 @@ int main() node = &outer_node_1->children[0]; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 944; + node->layout.dimensions[CSS_WIDTH] = 347.5; node->layout.dimensions[CSS_HEIGHT] = 0; node = &outer_node_1->children[1]; node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; + node->layout.position[CSS_LEFT] = 347.5; + node->layout.dimensions[CSS_WIDTH] = 352.5; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #353", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_RIGHT] = 5; - node->style.position[CSS_TOP] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #354", root_node, root_layout); + test("should layout node with multiple flex and padding", root_node, root_layout); } { @@ -10956,3831 +2239,58 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 155; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 155; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #355", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #356", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #357", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #358", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 7; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - node->style.padding[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #359", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_WIDTH] = 772; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 825; - node->layout.dimensions[CSS_HEIGHT] = 48; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 806; - node->layout.dimensions[CSS_HEIGHT] = 48; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 772; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - } - } - - test("Random #360", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 13; - node->style.position[CSS_BOTTOM] = -7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #361", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -6; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #362", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 585; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_BOTTOM] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 248; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.position[CSS_RIGHT] = -7; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 585; - node->layout.dimensions[CSS_HEIGHT] = 3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 248; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #363", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #364", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #365", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #366", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #367", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #368", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_TOP] = -1; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #369", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 210; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 210; - } - - test("Random #370", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 0; - node->style.padding[CSS_TOP] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_LEFT] = 12; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #371", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #372", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #373", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 12; - node->style.position[CSS_LEFT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #374", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #375", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - node->style.position[CSS_RIGHT] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 122; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - } - - test("Random #376", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 952; - node->style.margin[CSS_TOP] = 12; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 952; - } - - test("Random #377", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 13; - node->style.position[CSS_LEFT] = 3; - node->style.position[CSS_TOP] = -9; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #378", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 9; - node->style.margin[CSS_LEFT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #379", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #380", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 988; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = 11; - node->style.margin[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 988; - } - - test("Random #381", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #382", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #383", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_RIGHT] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #384", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #385", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #386", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #387", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 160; - node->style.margin[CSS_TOP] = 12; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 160; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #388", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #389", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #390", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #391", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 8; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #392", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #393", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #394", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 974; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_TOP] = 0; - node->style.position[CSS_BOTTOM] = -10; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 66; - node->layout.dimensions[CSS_HEIGHT] = 974; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 51; - node->layout.dimensions[CSS_HEIGHT] = 50; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #395", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #396", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #397", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #398", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #399", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node = &outer_node_1->children[1]; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_BOTTOM] = 0; - node->style.position[CSS_TOP] = -7; - node->style.position[CSS_RIGHT] = -6; - init_css_node_children(node, 4); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 125; - node = &outer_node_2->children[1]; - node->style.dimensions[CSS_WIDTH] = 599; - node->style.padding[CSS_RIGHT] = 15; - node = &outer_node_2->children[2]; - node->style.margin[CSS_LEFT] = 16; - node->style.padding[CSS_RIGHT] = 15; - node = &outer_node_2->children[3]; - } - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_HEIGHT] = 38; - node->style.position[CSS_RIGHT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 208; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 36; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 38; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 125; - init_css_node_children(node, 4); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 125; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[2]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[3]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 170; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - } - - test("Random #400", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 44; - node->style.dimensions[CSS_HEIGHT] = 606; - node->style.margin[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 44; - node->layout.dimensions[CSS_HEIGHT] = 606; - } - - test("Random #401", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #402", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 426; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_RIGHT] = 7; - node->style.position[CSS_BOTTOM] = 0; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 426; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #403", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 26; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - } - - test("Random #404", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #405", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #406", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 14; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_HEIGHT] = 639; - node->style.padding[CSS_BOTTOM] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 639; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 639; - } - } - - test("Random #407", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 0; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #408", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.padding[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #409", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #410", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 0; - node->style.margin[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #411", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_CENTER; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_RIGHT] = 16; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #412", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 497; - node->style.dimensions[CSS_HEIGHT] = 337; - node->style.position[CSS_TOP] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 497; - node->layout.dimensions[CSS_HEIGHT] = 337; - } - - test("Random #413", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #414", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_RIGHT] = 15; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #415", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_TOP] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_HEIGHT] = 4; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 22; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 22; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - } - - test("Random #416", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #417", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #418", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_HEIGHT] = 733; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 733; - } - - test("Random #419", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #420", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_BOTTOM] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #421", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 18; - node->style.position[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 16; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 24; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #422", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #423", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 538; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 19; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 26; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 538; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #424", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #425", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -4; - node->style.position[CSS_BOTTOM] = 1; - init_css_node_children(node, 1); + node->style.dimensions[CSS_WIDTH] = 700; + init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 14; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_TOP] = 6; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 35; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - } - } - - test("Random #426", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 884; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 884; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #427", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 13; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #428", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.position[CSS_TOP] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #429", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 355; - node->style.position[CSS_LEFT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 355; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #430", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #431", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #432", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #433", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 13; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_TOP] = -7; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_TOP] = 6; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_RIGHT] = 19; - node = &outer_node_3->children[1]; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_2->children[1]; - node->style.margin[CSS_TOP] = 0; - node->style.position[CSS_RIGHT] = -5; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 51; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_3->children[1]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 9.5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #434", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #435", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #436", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 91; - node->style.dimensions[CSS_HEIGHT] = 967; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 91; - node->layout.dimensions[CSS_HEIGHT] = 967; - } - - test("Random #437", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_BOTTOM] = 19; - node->style.position[CSS_LEFT] = -3; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #438", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #439", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #440", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 726; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 15; - node->style.position[CSS_TOP] = -2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 756; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 726; - } - } - - test("Random #441", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.flex = CSS_FLEX_NONE; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #442", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #443", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #444", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 19; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 21; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #445", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_LEFT] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #446", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #447", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.margin[CSS_RIGHT] = 15; - node->style.position[CSS_TOP] = -9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 31; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #448", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #449", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #450", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 816; - node->style.padding[CSS_LEFT] = 16; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 816; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #451", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.margin[CSS_LEFT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #452", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #453", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 11; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #454", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #455", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #456", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #457", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #458", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -8; - node->style.position[CSS_TOP] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #459", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 19; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #460", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #461", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_LEFT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #462", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 11; - node->style.position[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #463", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 18; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #464", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 3; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #465", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #466", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 17; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #467", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #468", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_RIGHT] = -2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #469", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.margin[CSS_LEFT] = 7; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #470", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 15; - node->style.padding[CSS_BOTTOM] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 245; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 245; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 245; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #471", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #472", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #473", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #474", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 319; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 319; - } - - test("Random #475", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 1; - node->style.padding[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #476", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_TOP] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #477", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #478", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #479", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #480", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 0; - node->style.position[CSS_TOP] = -8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #481", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 934; - node->style.padding[CSS_TOP] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 934; - } - - test("Random #482", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #483", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #484", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #485", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 6; - node->style.position[CSS_TOP] = 7; - node->style.position[CSS_BOTTOM] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #486", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 6; - node->style.position[CSS_LEFT] = -8; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #487", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #488", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 10; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #489", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #490", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 519; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 519; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #491", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_BOTTOM] = 7; - node->style.position[CSS_LEFT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_LEFT] = 16; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #492", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.position[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #493", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #494", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 8; - node->style.position[CSS_BOTTOM] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = 2; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_WIDTH] = 628; - node->style.margin[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_BOTTOM] = 17; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 37; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 29; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - } - } - - test("Random #495", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #496", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #497", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_RIGHT] = -6; - node->style.position[CSS_BOTTOM] = 6; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; node = &outer_node_1->children[1]; node->style.flex = CSS_FLEX_ONE; node->style.margin[CSS_LEFT] = 5; - node = &outer_node_1->children[2]; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 700; + node->layout.dimensions[CSS_HEIGHT] = 0; + init_css_node_children(node, 2); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 347.5; + node->layout.dimensions[CSS_HEIGHT] = 0; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 352.5; + node->layout.dimensions[CSS_WIDTH] = 347.5; + node->layout.dimensions[CSS_HEIGHT] = 0; + } + } + + test("should layout node with multiple flex and margin", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.dimensions[CSS_HEIGHT] = 300; + init_css_node_children(node, 2); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->style.dimensions[CSS_HEIGHT] = 600; + node = &outer_node_1->children[1]; node->style.flex = CSS_FLEX_ONE; } } @@ -14788,182 +2298,43 @@ int main() css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 38; - init_css_node_children(node, 3); + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 300; + init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.dimensions[CSS_HEIGHT] = 600; node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 38; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 38; + node->layout.position[CSS_TOP] = 600; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #498", root_node, root_layout); + test("should layout node with flex and overflow", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #499", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 856; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 856; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #500", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 16; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.dimensions[CSS_WIDTH] = 600; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #501", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #502", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #503", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_BOTTOM] = 6; - node->style.position[CSS_TOP] = 4; + node->style.position_type = CSS_POSITION_ABSOLUTE; } } @@ -14972,288 +2343,8 @@ int main() css_node_t *node = root_layout; node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #504", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_RIGHT] = 18; - node->style.position[CSS_TOP] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; + node->layout.dimensions[CSS_WIDTH] = 600; node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #505", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 823; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 4; - node->style.position[CSS_LEFT] = -7; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_RIGHT] = 0; - node = &outer_node_1->children[1]; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.padding[CSS_TOP] = 19; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 823; - node->layout.dimensions[CSS_HEIGHT] = 953; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 937; - } - } - - test("Random #506", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #507", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_BOTTOM] = 15; - node->style.position[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #508", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #509", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #510", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #511", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #512", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #513", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #514", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_RIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = -5; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 2; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; @@ -15262,1923 +2353,27 @@ int main() node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } + node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #515", root_node, root_layout); + test("should layout node with flex and position absolute", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 452; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 452; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #516", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #517", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 892; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_RIGHT] = 7; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 892; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #518", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 92; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 92; - } - - test("Random #519", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #520", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #521", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_TOP] = 2; - node->style.position[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #522", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #523", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 773; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 773; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #524", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #525", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.position[CSS_TOP] = 2; + node->style.dimensions[CSS_HEIGHT] = 500; init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 12; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; node->style.flex = CSS_FLEX_ONE; - node->style.position[CSS_RIGHT] = -6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #526", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.padding[CSS_RIGHT] = 7; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #527", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #528", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_RIGHT] = 6; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_HEIGHT] = 677; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = -1; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 705; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 705; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 677; - } - } - } - - test("Random #529", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 492; - node->style.margin[CSS_BOTTOM] = 7; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 492; - } - - test("Random #530", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #531", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #532", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 0; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #533", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #534", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #535", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #536", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #537", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = 7; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #538", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 16; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #539", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 762; - node->style.margin[CSS_LEFT] = 9; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 762; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #540", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 457; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 457; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #541", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 825; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 825; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #542", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #543", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 431; - node->style.dimensions[CSS_HEIGHT] = 954; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 431; - node->layout.dimensions[CSS_HEIGHT] = 954; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #544", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.position[CSS_LEFT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #545", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #546", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #547", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 7; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #548", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #549", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #550", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #551", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #552", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #553", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 934; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 938; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 934; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #554", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 966; - node->style.position[CSS_TOP] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 966; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #555", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 50; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 50; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 50; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #556", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 433; - node->style.padding[CSS_BOTTOM] = 13; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.padding[CSS_BOTTOM] = 16; - node = &outer_node_1->children[1]; - node->style.margin[CSS_TOP] = 14; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 433; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 30; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #557", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #558", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #559", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 73; - node->style.margin[CSS_LEFT] = 5; - node->style.padding[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #560", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #561", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #562", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #563", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 311; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 311; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #564", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #565", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_TOP] = 5; - node->style.position[CSS_BOTTOM] = 0; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 134; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.margin[CSS_TOP] = 5; - node->style.position[CSS_TOP] = 8; - node = &outer_node_1->children[1]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 988; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 11; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 5; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 999; - node->layout.dimensions[CSS_HEIGHT] = 54; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 432.5; - node->layout.dimensions[CSS_WIDTH] = 134; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 39; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 988; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - } - - test("Random #566", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 7; - node->style.position[CSS_LEFT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #567", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 267; - node->style.margin[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 267; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #568", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #569", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #570", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #571", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 342; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 342; - } - - test("Random #572", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #573", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 348; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 348; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #574", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #575", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 4; - node->style.position[CSS_RIGHT] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_TOP] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 13; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #576", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_LEFT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #577", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 415; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 415; - } - - test("Random #578", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 441; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 441; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #579", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #580", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #581", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 172; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_BOTTOM] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 717; - node->style.margin[CSS_LEFT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_HEIGHT] = 149; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 172; - node->layout.dimensions[CSS_HEIGHT] = 185; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 30; - node->layout.dimensions[CSS_WIDTH] = 717; - node->layout.dimensions[CSS_HEIGHT] = 183; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 149; - } - } - } - - test("Random #582", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 580; - node->style.margin[CSS_LEFT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 580; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #583", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #584", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 977; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_CENTER; node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.position[CSS_BOTTOM] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 14; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 129; - node->layout.dimensions[CSS_HEIGHT] = 977; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 118; - node->layout.dimensions[CSS_HEIGHT] = 971; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #585", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 436; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 436; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 436; - } - } - - test("Random #586", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_BOTTOM] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #587", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 444; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 444; - } - - test("Random #588", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 5; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node->style.padding[CSS_TOP] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #589", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #590", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; + node->style.position_type = CSS_POSITION_ABSOLUTE; } } @@ -17188,8 +2383,8 @@ int main() node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); + node->layout.dimensions[CSS_HEIGHT] = 500; + init_css_node_children(node, 2); { css_node_t *outer_node_1 = node; css_node_t *node; @@ -17197,359 +2392,53 @@ int main() node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #591", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #592", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #593", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #594", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_RIGHT] = 1; - node->style.position[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #595", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_TOP] = 4; - node->style.position[CSS_TOP] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #596", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #597", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #598", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 205; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 205; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #599", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #600", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #601", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 683; - node->style.margin[CSS_RIGHT] = 6; - node->style.position[CSS_LEFT] = 3; - node->style.position[CSS_BOTTOM] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 692; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 683; - } - } - - test("Random #602", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 187; - node->style.padding[CSS_LEFT] = 10; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 187; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #603", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_TOP] = 8; - node->style.position[CSS_BOTTOM] = 2; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; + node->layout.dimensions[CSS_HEIGHT] = 500; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 500; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #604", root_node, root_layout); + test("should layout node with double flex and position absolute", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.padding[CSS_TOP] = 1; + node->style.border[CSS_LEFT] = 5; + node->style.border[CSS_TOP] = 5; + node->style.border[CSS_RIGHT] = 5; + node->style.border[CSS_BOTTOM] = 5; + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 10; + node->layout.dimensions[CSS_HEIGHT] = 10; + } + + test("should layout node with borderWidth", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.border[CSS_TOP] = 1; + init_css_node_children(node, 1); + { + css_node_t *outer_node_1 = node; + css_node_t *node; + node = &outer_node_1->children[0]; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.position[CSS_TOP] = -1; + } } css_node_t *root_layout = new_css_node(); @@ -17559,1508 +2448,6 @@ int main() node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #605", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #606", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #607", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #608", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #609", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_BOTTOM] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #610", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 18; - node->style.position[CSS_LEFT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #611", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #612", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #613", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 923; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - } - } - - test("Random #614", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #615", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 919; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 927; - node->layout.dimensions[CSS_HEIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 919; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - - test("Random #616", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_RIGHT] = 19; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node = &outer_node_1->children[1]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 19; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #617", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #618", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 21; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #619", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 17; - node->style.position[CSS_LEFT] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #620", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 855; - node->style.margin[CSS_TOP] = 2; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 14; - node->style.position[CSS_RIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 378; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 378; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #621", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #622", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #623", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #624", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 99; - node->style.margin[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 99; - } - - test("Random #625", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #626", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.position[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #627", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #628", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #629", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #630", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_RIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_LEFT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #631", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #632", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #633", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #634", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #635", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 28; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #636", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = 3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - test("Random #637", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = -9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #638", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_BOTTOM] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #639", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #640", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #641", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #642", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 3; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #643", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #644", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 832; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 846; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 832; - } - } - - test("Random #645", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #646", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #647", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #648", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #649", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 4; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = 8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #650", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 13; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #651", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #652", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.position[CSS_RIGHT] = 3; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #653", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_RIGHT] = 6; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 34; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #654", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #655", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #656", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #657", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_TOP] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #658", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #659", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 9; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #660", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #661", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 572; - node->style.dimensions[CSS_HEIGHT] = 971; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 572; - node->layout.dimensions[CSS_HEIGHT] = 971; - } - - test("Random #662", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; @@ -19073,4329 +2460,24 @@ int main() } } - test("Random #663", root_node, root_layout); + test("should layout node with borderWidth and position: absolute, top", root_node, root_layout); } { css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; init_css_node_children(node, 1); { css_node_t *outer_node_1 = node; css_node_t *node; node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 0; - node->style.position[CSS_RIGHT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #664", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #665", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #666", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #667", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #668", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 888; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 888; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #669", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 711; - node->style.margin[CSS_LEFT] = 7; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 711; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #670", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #671", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_BOTTOM] = 7; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 630; - node->style.padding[CSS_TOP] = 18; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - node = &outer_node_1->children[1]; - node->style.position[CSS_LEFT] = -10; - node->style.position[CSS_TOP] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 25; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 22; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #672", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_LEFT] = -4; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 944; - node = &outer_node_1->children[1]; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 18; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 944; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 944; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #673", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_RIGHT] = 5; - node->style.position[CSS_TOP] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #674", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 155; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 155; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #675", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #676", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #677", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #678", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 7; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - node->style.padding[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #679", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.padding[CSS_BOTTOM] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_WIDTH] = 772; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 825; - node->layout.dimensions[CSS_HEIGHT] = 48; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 806; - node->layout.dimensions[CSS_HEIGHT] = 48; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 772; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - } - } - - test("Random #680", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 13; - node->style.position[CSS_BOTTOM] = -7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #681", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -6; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #682", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 585; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_BOTTOM] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 248; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.position[CSS_RIGHT] = -7; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 585; - node->layout.dimensions[CSS_HEIGHT] = 3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 248; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #683", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #684", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #685", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #686", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #687", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #688", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_TOP] = -1; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #689", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 210; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 210; - } - - test("Random #690", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 0; - node->style.padding[CSS_TOP] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_LEFT] = 12; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #691", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #692", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #693", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 12; - node->style.position[CSS_LEFT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #694", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #695", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - node->style.position[CSS_RIGHT] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 122; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - } - - test("Random #696", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 952; - node->style.margin[CSS_TOP] = 12; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 952; - } - - test("Random #697", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 13; - node->style.position[CSS_LEFT] = 3; - node->style.position[CSS_TOP] = -9; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #698", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 9; - node->style.margin[CSS_LEFT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #699", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #700", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 988; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = 11; - node->style.margin[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 988; - } - - test("Random #701", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #702", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #703", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_RIGHT] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #704", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #705", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #706", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #707", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 160; - node->style.margin[CSS_TOP] = 12; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 160; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #708", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #709", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #710", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #711", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 8; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #712", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #713", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #714", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 974; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_TOP] = 0; - node->style.position[CSS_BOTTOM] = -10; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 66; - node->layout.dimensions[CSS_HEIGHT] = 974; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 51; - node->layout.dimensions[CSS_HEIGHT] = 50; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #715", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #716", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #717", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #718", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #719", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node = &outer_node_1->children[1]; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_BOTTOM] = 0; - node->style.position[CSS_TOP] = -7; - node->style.position[CSS_RIGHT] = -6; - init_css_node_children(node, 4); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 125; - node = &outer_node_2->children[1]; - node->style.dimensions[CSS_WIDTH] = 599; - node->style.padding[CSS_RIGHT] = 15; - node = &outer_node_2->children[2]; - node->style.margin[CSS_LEFT] = 16; - node->style.padding[CSS_RIGHT] = 15; - node = &outer_node_2->children[3]; - } - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_HEIGHT] = 38; - node->style.position[CSS_RIGHT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 208; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 36; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 38; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 125; - init_css_node_children(node, 4); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 125; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 599; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[2]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_2->children[3]; - node->layout.position[CSS_TOP] = 125; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 170; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - } - - test("Random #720", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 44; - node->style.dimensions[CSS_HEIGHT] = 606; - node->style.margin[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 44; - node->layout.dimensions[CSS_HEIGHT] = 606; - } - - test("Random #721", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #722", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 426; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_RIGHT] = 7; - node->style.position[CSS_BOTTOM] = 0; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 426; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #723", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 26; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - } - - test("Random #724", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #725", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #726", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 14; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_HEIGHT] = 639; - node->style.padding[CSS_BOTTOM] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 639; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 639; - } - } - - test("Random #727", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 0; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #728", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.padding[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #729", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #730", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 0; - node->style.margin[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #731", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_CENTER; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_RIGHT] = 16; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #732", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 497; - node->style.dimensions[CSS_HEIGHT] = 337; - node->style.position[CSS_TOP] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 497; - node->layout.dimensions[CSS_HEIGHT] = 337; - } - - test("Random #733", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #734", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_RIGHT] = 15; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #735", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_TOP] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_HEIGHT] = 4; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 22; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 22; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - } - - test("Random #736", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #737", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #738", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_HEIGHT] = 733; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 733; - } - - test("Random #739", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #740", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_BOTTOM] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #741", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 18; - node->style.position[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 16; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 24; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #742", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #743", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 538; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 19; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 26; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 538; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #744", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #745", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -4; - node->style.position[CSS_BOTTOM] = 1; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 14; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_TOP] = 6; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 35; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 20; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - } - } - - test("Random #746", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 884; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 884; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #747", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 13; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #748", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.position[CSS_TOP] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #749", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 355; - node->style.position[CSS_LEFT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 355; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #750", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #751", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #752", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #753", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 13; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_TOP] = -7; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_TOP] = 6; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_RIGHT] = 19; - node = &outer_node_3->children[1]; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_2->children[1]; - node->style.margin[CSS_TOP] = 0; - node->style.position[CSS_RIGHT] = -5; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 51; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 2); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 2); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_3->children[1]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 9.5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #754", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #755", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #756", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 91; - node->style.dimensions[CSS_HEIGHT] = 967; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 91; - node->layout.dimensions[CSS_HEIGHT] = 967; - } - - test("Random #757", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_BOTTOM] = 19; - node->style.position[CSS_LEFT] = -3; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #758", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #759", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #760", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 726; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 15; - node->style.position[CSS_TOP] = -2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 756; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 726; - } - } - - test("Random #761", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.flex = CSS_FLEX_NONE; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #762", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #763", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #764", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 19; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 21; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #765", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.position[CSS_LEFT] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #766", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #767", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.margin[CSS_RIGHT] = 15; - node->style.position[CSS_TOP] = -9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 31; - node->layout.dimensions[CSS_HEIGHT] = 32; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #768", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #769", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #770", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 816; - node->style.padding[CSS_LEFT] = 16; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 816; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #771", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.margin[CSS_LEFT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #772", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #773", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 11; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #774", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #775", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #776", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #777", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #778", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -8; - node->style.position[CSS_TOP] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #779", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 19; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #780", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #781", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_LEFT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #782", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 11; - node->style.position[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #783", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 18; - node->style.position[CSS_RIGHT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #784", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 3; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #785", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #786", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 17; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #787", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #788", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_RIGHT] = -2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #789", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.margin[CSS_LEFT] = 7; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #790", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 15; - node->style.padding[CSS_BOTTOM] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 245; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 245; - node->layout.dimensions[CSS_HEIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 245; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #791", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #792", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #793", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #794", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 319; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 319; - } - - test("Random #795", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 1; - node->style.padding[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #796", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.position[CSS_TOP] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #797", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #798", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #799", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #800", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 0; - node->style.position[CSS_TOP] = -8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #801", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 934; - node->style.padding[CSS_TOP] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 934; - } - - test("Random #802", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #803", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #804", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #805", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 6; - node->style.position[CSS_TOP] = 7; - node->style.position[CSS_BOTTOM] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #806", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 6; - node->style.position[CSS_LEFT] = -8; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #807", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #808", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 10; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #809", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #810", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 519; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 519; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #811", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.padding[CSS_BOTTOM] = 7; - node->style.position[CSS_LEFT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_LEFT] = 16; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #812", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 2; - node->style.position[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #813", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #814", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 8; - node->style.position[CSS_BOTTOM] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = 2; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_WIDTH] = 628; - node->style.margin[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_BOTTOM] = 17; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 37; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 29; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 628; - node->layout.dimensions[CSS_HEIGHT] = 17; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - } - } - - test("Random #815", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #816", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #817", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_RIGHT] = -6; - node->style.position[CSS_BOTTOM] = 6; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; - node = &outer_node_1->children[1]; - node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_LEFT] = 5; - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 38; - init_css_node_children(node, 3); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 38; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 38; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #818", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #819", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 856; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 856; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #820", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #821", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #822", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.position[CSS_LEFT] = 5; } } @@ -23412,4594 +2494,13 @@ int main() css_node_t *node; node = &outer_node_1->children[0]; node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #823", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.flex = CSS_FLEX_ONE; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_BOTTOM] = 6; - node->style.position[CSS_TOP] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #824", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.padding[CSS_RIGHT] = 18; - node->style.position[CSS_TOP] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #825", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 823; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 4; - node->style.position[CSS_LEFT] = -7; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_RIGHT] = 0; - node = &outer_node_1->children[1]; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.padding[CSS_TOP] = 19; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 823; - node->layout.dimensions[CSS_HEIGHT] = 953; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 937; - } - } - - test("Random #826", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #827", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_BOTTOM] = 15; - node->style.position[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #828", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #829", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #830", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #831", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 16; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #832", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #833", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #834", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_RIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 2; - node->style.position[CSS_BOTTOM] = -5; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #835", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 452; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 452; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #836", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #837", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 892; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_RIGHT] = 7; - node->style.position[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 892; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #838", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 92; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 92; - } - - test("Random #839", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #840", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #841", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_TOP] = 2; - node->style.position[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #842", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #843", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 773; - node->style.margin[CSS_LEFT] = 19; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 773; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #844", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #845", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.position[CSS_TOP] = 2; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 12; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.flex = CSS_FLEX_ONE; - node->style.position[CSS_RIGHT] = -6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #846", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.padding[CSS_RIGHT] = 7; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_BOTTOM] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #847", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #848", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_RIGHT] = 6; - node->style.position[CSS_BOTTOM] = -8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_HEIGHT] = 677; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = -1; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 705; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 705; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 677; - } - } - } - - test("Random #849", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_HEIGHT] = 492; - node->style.margin[CSS_BOTTOM] = 7; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 492; - } - - test("Random #850", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #851", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #852", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 0; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #853", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #854", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #855", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position[CSS_BOTTOM] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 10; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #856", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #857", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = 7; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #858", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 16; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #859", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 762; - node->style.margin[CSS_LEFT] = 9; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 11; - node->style.padding[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 762; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #860", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 457; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 457; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #861", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 825; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 825; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #862", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #863", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 431; - node->style.dimensions[CSS_HEIGHT] = 954; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 431; - node->layout.dimensions[CSS_HEIGHT] = 954; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #864", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.position[CSS_LEFT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #865", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #866", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #867", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 7; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #868", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #869", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #870", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #871", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #872", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #873", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 934; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 938; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 934; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #874", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 966; - node->style.position[CSS_TOP] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 966; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #875", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 50; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 50; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 50; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #876", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 433; - node->style.padding[CSS_BOTTOM] = 13; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.padding[CSS_BOTTOM] = 16; - node = &outer_node_1->children[1]; - node->style.margin[CSS_TOP] = 14; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 433; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 30; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #877", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #878", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #879", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 73; - node->style.margin[CSS_LEFT] = 5; - node->style.padding[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #880", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #881", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #882", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #883", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 311; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 311; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #884", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #885", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.padding[CSS_TOP] = 5; - node->style.position[CSS_BOTTOM] = 0; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 134; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.margin[CSS_TOP] = 5; - node->style.position[CSS_TOP] = 8; - node = &outer_node_1->children[1]; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 988; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 11; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 5; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 999; - node->layout.dimensions[CSS_HEIGHT] = 54; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 432.5; - node->layout.dimensions[CSS_WIDTH] = 134; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 39; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 988; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - } - - test("Random #886", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 7; - node->style.position[CSS_LEFT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #887", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 267; - node->style.margin[CSS_LEFT] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 267; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #888", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.position[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #889", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_RIGHT] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #890", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #891", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 342; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 342; - } - - test("Random #892", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position[CSS_BOTTOM] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #893", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 348; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 348; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #894", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #895", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 4; - node->style.position[CSS_RIGHT] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_TOP] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 13; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #896", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_LEFT] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #897", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 415; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 415; - } - - test("Random #898", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 441; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 441; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #899", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #900", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - - test("Random #901", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 172; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_BOTTOM] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 717; - node->style.margin[CSS_LEFT] = 19; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.dimensions[CSS_HEIGHT] = 149; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 172; - node->layout.dimensions[CSS_HEIGHT] = 185; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 30; - node->layout.dimensions[CSS_WIDTH] = 717; - node->layout.dimensions[CSS_HEIGHT] = 183; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 149; - } - } - } - - test("Random #902", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 580; - node->style.margin[CSS_LEFT] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 580; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #903", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #904", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 977; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.position[CSS_BOTTOM] = -6; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 14; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 129; - node->layout.dimensions[CSS_HEIGHT] = 977; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 118; - node->layout.dimensions[CSS_HEIGHT] = 971; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #905", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 436; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 436; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 436; - } - } - - test("Random #906", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_BOTTOM] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #907", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 444; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 444; - } - - test("Random #908", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 5; - node->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 18; - node->style.padding[CSS_TOP] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #909", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #910", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #911", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #912", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #913", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #914", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_RIGHT] = 1; - node->style.position[CSS_RIGHT] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #915", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.margin[CSS_TOP] = 4; - node->style.position[CSS_TOP] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #916", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[CSS_RIGHT] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -9; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #917", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 11; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #918", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 205; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 6; - node->style.position[CSS_RIGHT] = 1; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 205; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 6; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #919", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #920", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_BOTTOM] = 17; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 13; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #921", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 9; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 683; - node->style.margin[CSS_RIGHT] = 6; - node->style.position[CSS_LEFT] = 3; - node->style.position[CSS_BOTTOM] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 692; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 683; - } - } - - test("Random #922", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 187; - node->style.padding[CSS_LEFT] = 10; - node->style.position[CSS_LEFT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 187; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #923", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = -3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_TOP] = 8; - node->style.position[CSS_BOTTOM] = 2; - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 5; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - } - } - - test("Random #924", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.padding[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #925", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #926", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #927", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = 14; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #928", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = -8; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #929", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 8; - node->style.position[CSS_TOP] = 1; - node->style.position[CSS_BOTTOM] = -4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #930", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 18; - node->style.position[CSS_LEFT] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #931", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #932", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #933", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 923; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - } - } - - test("Random #934", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.padding[CSS_BOTTOM] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #935", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 919; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 6; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 927; - node->layout.dimensions[CSS_HEIGHT] = 13; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 919; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - - test("Random #936", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_RIGHT] = 19; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node = &outer_node_1->children[1]; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 19; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 19; node->layout.position[CSS_LEFT] = 6; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } } - test("Random #937", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #938", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 21; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #939", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 12; - node->style.padding[CSS_BOTTOM] = 17; - node->style.position[CSS_LEFT] = -10; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #940", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 855; - node->style.margin[CSS_TOP] = 2; - node->style.padding[CSS_TOP] = 16; - node->style.padding[CSS_RIGHT] = 14; - node->style.position[CSS_RIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 378; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 2; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 378; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #941", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #942", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 18; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #943", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #944", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 99; - node->style.margin[CSS_RIGHT] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 99; - } - - test("Random #945", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #946", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 9; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.position[CSS_BOTTOM] = 2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #947", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #948", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #949", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.margin[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #950", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_RIGHT] = 7; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.position[CSS_LEFT] = 3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #951", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 19; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #952", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_LEFT] = 6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #953", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #954", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = -6; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #955", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_BOTTOM] = 17; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 28; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 7; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - } - - test("Random #956", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = 3; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_LEFT] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - test("Random #957", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = -9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #958", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_TOP] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.padding[CSS_BOTTOM] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->style.align_items = CSS_ALIGN_STRETCH; - } - } - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_3 = node; - css_node_t *node; - node = &outer_node_3->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - } - - test("Random #959", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_TOP] = -3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #960", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #961", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_CENTER; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #962", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 3; - node->style.position[CSS_BOTTOM] = 9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #963", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 14; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #964", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_HEIGHT] = 832; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_BOTTOM] = 14; - node->style.position[CSS_BOTTOM] = -3; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 846; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 3; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 832; - } - } - - test("Random #965", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 16; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - - test("Random #966", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_TOP] = 15; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 15; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #967", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #968", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #969", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_RIGHT] = 4; - node->style.position[CSS_TOP] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.position[CSS_BOTTOM] = 8; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #970", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 13; - node->style.position[CSS_LEFT] = -5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #971", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #972", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 12; - node->style.position[CSS_RIGHT] = 3; - node->style.position[CSS_BOTTOM] = 0; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #973", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 12; - node->style.margin[CSS_RIGHT] = 6; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 5; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 34; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #974", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_TOP] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #975", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 12; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #976", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 4; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 14; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #977", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_TOP] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #978", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #979", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 9; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_LEFT] = 13; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #980", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #981", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 572; - node->style.dimensions[CSS_HEIGHT] = 971; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = -1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 17; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 572; - node->layout.dimensions[CSS_HEIGHT] = 971; - } - - test("Random #982", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 12; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #983", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 8; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 0; - node->style.position[CSS_RIGHT] = -10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #984", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 7; - node->style.padding[CSS_RIGHT] = 2; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_BOTTOM] = 16; - node->style.position[CSS_BOTTOM] = 9; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 16; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #985", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 11; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #986", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #987", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.position[CSS_RIGHT] = -7; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #988", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.dimensions[CSS_WIDTH] = 888; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.margin[CSS_RIGHT] = 10; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 888; - node->layout.dimensions[CSS_HEIGHT] = 0; - init_css_node_children(node, 1); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #989", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 711; - node->style.margin[CSS_LEFT] = 7; - node->style.position[CSS_RIGHT] = -2; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 711; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #990", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #991", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_BOTTOM] = 7; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.dimensions[CSS_WIDTH] = 630; - node->style.padding[CSS_TOP] = 18; - node->style.position[CSS_BOTTOM] = -4; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->style.align_items = CSS_ALIGN_FLEX_END; - } - node = &outer_node_1->children[1]; - node->style.position[CSS_LEFT] = -10; - node->style.position[CSS_TOP] = 4; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 25; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 4; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 630; - node->layout.dimensions[CSS_HEIGHT] = 18; - init_css_node_children(node, 1); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = 18; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 22; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #992", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.position[CSS_LEFT] = -4; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 944; - node = &outer_node_1->children[1]; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 18; - } - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 944; - node->layout.dimensions[CSS_HEIGHT] = 8; - init_css_node_children(node, 2); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 944; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #993", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.padding[CSS_RIGHT] = 5; - node->style.position[CSS_TOP] = -5; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #994", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 155; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 155; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #995", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #996", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.position[CSS_BOTTOM] = 1; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #997", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.margin[CSS_LEFT] = 13; - node->style.position[CSS_LEFT] = 5; - node->style.position[CSS_RIGHT] = -9; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #998", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_RIGHT] = 7; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 13; - node->style.padding[CSS_RIGHT] = 3; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - - test("Random #999", root_node, root_layout); + test("should layout node with borderWidth and position: absolute, top. cross axis", root_node, root_layout); } } diff --git a/src/transpile.html b/src/transpile.html index aa46c49c..07d9ca99 100644 --- a/src/transpile.html +++ b/src/transpile.html @@ -23,6 +23,7 @@ document.getElementById('layout_code').value = computeLayout.layoutNode.toString .replace(/node\./g, 'node->') .replace(/child\./g, 'child->') .replace(/var\/\*([^\/]+)\*\//g, '$1') + .replace(/ === /g, ' == ') .replace(/\n /g, '\n'); @@ -75,16 +76,16 @@ function printLayout(test) { } } - function addSpacing(node, spacing) { - addFloat(node, spacing, spacing + '[CSS_LEFT]'); - addFloat(node, spacing, spacing + '[CSS_TOP]'); - addFloat(node, spacing, spacing + '[CSS_RIGHT]'); - addFloat(node, spacing, spacing + '[CSS_BOTTOM]'); + function addSpacing(node, spacing, suffix) { + addFloat(node, spacing + suffix, spacing + '[CSS_LEFT]'); + addFloat(node, spacing + suffix, spacing + '[CSS_TOP]'); + addFloat(node, spacing + suffix, spacing + '[CSS_RIGHT]'); + addFloat(node, spacing + suffix, spacing + '[CSS_BOTTOM]'); - addFloat(node, spacing + 'Left', spacing + '[CSS_LEFT]'); - addFloat(node, spacing + 'Top', spacing + '[CSS_TOP]'); - addFloat(node, spacing + 'Right', spacing + '[CSS_RIGHT]'); - addFloat(node, spacing + 'Bottom', spacing + '[CSS_BOTTOM]'); + addFloat(node, spacing + 'Left' + suffix, spacing + '[CSS_LEFT]'); + addFloat(node, spacing + 'Top' + suffix, spacing + '[CSS_TOP]'); + addFloat(node, spacing + 'Right' + suffix, spacing + '[CSS_RIGHT]'); + addFloat(node, spacing + 'Bottom' + suffix, spacing + '[CSS_BOTTOM]'); } add('{'); @@ -123,10 +124,15 @@ function printLayout(test) { 'none': 'CSS_FLEX_NONE', '1': 'CSS_FLEX_ONE' }); + addEnum(node, 'position', 'position_type', { + 'relative': 'CSS_POSITION_RELATIVE', + 'absolute': 'CSS_POSITION_ABSOLUTE' + }); addFloat(node, 'width', 'dimensions[CSS_WIDTH]'); addFloat(node, 'height', 'dimensions[CSS_HEIGHT]'); - addSpacing(node, 'margin'); - addSpacing(node, 'padding'); + addSpacing(node, 'margin', ''); + addSpacing(node, 'padding', ''); + addSpacing(node, 'border', 'Width'); addFloat(node, 'left', 'position[CSS_LEFT]'); addFloat(node, 'top', 'position[CSS_TOP]'); addFloat(node, 'right', 'position[CSS_RIGHT]');