diff --git a/src/Layout-test-utils.js b/src/Layout-test-utils.js index 86c3588f..6adc85e4 100644 --- a/src/Layout-test-utils.js +++ b/src/Layout-test-utils.js @@ -239,6 +239,26 @@ var layoutTestUtils = (function() { text: function(text) { var body = iframeText.contentDocument.body; var fn = function(width) { + // Constants for testing purposes between C/JS and other platforms + // Comment this block of code if you want to use the browser to + // generate proper sizes + if (text === 'small') { + if (width === 'grow' || width === 'shrink') { + return {width: 33, height: 18} + } + return {width: width, height: 18}; + } + if (text === 'loooooooooong with space') { + if (width === 'grow') { + return {width: 171, height: 18}; + } + if (width === 'shrink') { + return {width: 100, height: 36}; + } + return {width: width, height: width >= 171 ? 18 : 36}; + } + return; + var div = document.createElement('div'); var span = document.createElement('span'); span.style.display = 'flex'; diff --git a/src/Layout.c b/src/Layout.c index aae1e713..8c7d2497 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include "Layout.h" @@ -329,6 +328,34 @@ void layoutNode(css_node_t *node) { node->layout.position[leading[crossAxis]] += getMargin(node, leading[crossAxis]) + getRelativePosition(node, crossAxis); + if (node->style.measure) { + float width = CSS_UNDEFINED; + css_measure_type_t type = CSS_MEASURE_VALUE; + + if (isDimDefined(node, CSS_FLEX_DIRECTION_ROW)) { + width = node->style.dimensions[CSS_WIDTH]; + } else if (getPositionType(node) == CSS_POSITION_ABSOLUTE) { + type = CSS_MEASURE_SHRINK; + } else { + type = CSS_MEASURE_GROW; + } + + css_dim_t dim = node->style.measure( + node->style.measure_context, + type, + width + ); + if (!isDimDefined(node, CSS_FLEX_DIRECTION_ROW)) { + node->layout.dimensions[CSS_WIDTH] = dim.dimensions[CSS_WIDTH] + + getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_ROW); + } + if (!isDimDefined(node, CSS_FLEX_DIRECTION_COLUMN)) { + node->layout.dimensions[CSS_HEIGHT] = dim.dimensions[CSS_HEIGHT] + + getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_COLUMN); + } + return; + } + // Layout non flexible children and count children by type diff --git a/src/Layout.h b/src/Layout.h index 4c42c083..45fd9277 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -1,6 +1,7 @@ #ifndef __LAYOUT_H #define __LAYOUT_H +#include #define CSS_UNDEFINED NAN typedef enum { @@ -50,12 +51,22 @@ typedef enum { CSS_HEIGHT } css_dimension_t; - typedef struct { float position[2]; float dimensions[2]; } css_layout_t; + +typedef enum { + CSS_MEASURE_GROW = 0, + CSS_MEASURE_SHRINK, + CSS_MEASURE_VALUE +} css_measure_type_t; + +typedef struct { + float dimensions[2]; +} css_dim_t; + typedef struct { css_flex_direction_t flex_direction; css_justify_t justify_content; @@ -78,6 +89,9 @@ typedef struct { float padding[4]; float border[4]; float dimensions[2]; + + css_dim_t (*measure)(void *context, css_measure_type_t type, float width); + void *measure_context; } css_style_t; typedef struct css_node { diff --git a/src/Layout.js b/src/Layout.js index 29ea961b..016ffc25 100755 --- a/src/Layout.js +++ b/src/Layout.js @@ -208,7 +208,7 @@ var computeLayout = (function() { var width; if (isDimDefined(node, CSS_FLEX_DIRECTION_ROW)) { width = node.style.width; - } else if (node.style.position === CSS_POSITION_ABSOLUTE) { + } else if (getPositionType(node) === CSS_POSITION_ABSOLUTE) { width = 'shrink'; } else { width = 'grow'; diff --git a/src/__tests__/Layout-test.c b/src/__tests__/Layout-test.c index 520dc924..c0c9c351 100644 --- a/src/__tests__/Layout-test.c +++ b/src/__tests__/Layout-test.c @@ -3,6 +3,7 @@ #include #include +#include bool are_layout_equal(css_node_t *a, css_node_t *b) { if (a->layout.dimensions[CSS_WIDTH] != b->layout.dimensions[CSS_WIDTH] || @@ -20,6 +21,42 @@ bool are_layout_equal(css_node_t *a, css_node_t *b) { return true; } +css_dim_t measure(void *context, css_measure_type_t type, float width) { + const char *text = context; + css_dim_t dim; + if (strcmp(text, "small") == 0) { + if (type == CSS_MEASURE_GROW || type == CSS_MEASURE_SHRINK) { + dim.dimensions[CSS_WIDTH] = 33; + dim.dimensions[CSS_HEIGHT] = 18; + return dim; + } + dim.dimensions[CSS_WIDTH] = width; + dim.dimensions[CSS_HEIGHT] = 18; + return dim; + } + if (strcmp(text, "loooooooooong with space") == 0) { + if (type == CSS_MEASURE_GROW) { + dim.dimensions[CSS_WIDTH] = 171; + dim.dimensions[CSS_HEIGHT] = 18; + return dim; + } + if (type == CSS_MEASURE_SHRINK) { + dim.dimensions[CSS_WIDTH] = 100; + dim.dimensions[CSS_HEIGHT] = 36; + return dim; + } + dim.dimensions[CSS_WIDTH] = width; + dim.dimensions[CSS_HEIGHT] = width >= 171 ? 18 : 36; + return dim; + } + + // Should not go here + dim.dimensions[CSS_WIDTH] = CSS_UNDEFINED; + dim.dimensions[CSS_HEIGHT] = CSS_UNDEFINED; + return dim; +} + + void test(const char *name, css_node_t *style, css_node_t *expected_layout) { layoutNode(style); @@ -2616,6 +2653,112 @@ int main() test("should handle negative margin and min padding correctly", root_node, root_layout); } + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.measure = measure; + node->style.measure_context = "small"; + } + + css_node_t *root_layout = new_css_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] = 18; + } + + test("should layout node with just text", root_node, root_layout); + } + + { + css_node_t *root_node = new_css_node(); + { + css_node_t *node = root_node; + node->style.dimensions[CSS_WIDTH] = 10; + node->style.measure = measure; + node->style.measure_context = "small"; + } + + css_node_t *root_layout = new_css_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] = 18; + } + + test("should layout node with text and width", 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.padding[CSS_LEFT] = 5; + node->style.padding[CSS_TOP] = 5; + node->style.padding[CSS_RIGHT] = 5; + node->style.padding[CSS_BOTTOM] = 5; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; + } + + 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] = 181; + node->layout.dimensions[CSS_HEIGHT] = 28; + } + + test("should layout node with text, padding and margin", 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_type = CSS_POSITION_ABSOLUTE; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; + } + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_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] = 100; + node->layout.dimensions[CSS_HEIGHT] = 36; + } + } + + test("should layout node with text and position absolute", root_node, root_layout); + } + { css_node_t *root_node = new_css_node(); { @@ -2638,15 +2781,27 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.align_items = CSS_ALIGN_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 860; + node->style.margin[CSS_LEFT] = 10; + node->style.margin[CSS_TOP] = 10; + node->style.margin[CSS_RIGHT] = 1; + node->style.margin[CSS_BOTTOM] = 2; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 0; + node->style.position[CSS_TOP] = 0; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = 10; + node->layout.position[CSS_LEFT] = 10; + node->layout.dimensions[CSS_WIDTH] = 860; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #1", root_node, root_layout); @@ -2656,25 +2811,27 @@ int main() 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_END; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 949; - node->style.dimensions[CSS_HEIGHT] = 471; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.border[CSS_LEFT] = 3; + node->style.dimensions[CSS_HEIGHT] = 603; + node->style.margin[CSS_TOP] = -5; + node->style.padding[CSS_RIGHT] = 18; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; node->style.border[CSS_RIGHT] = 2; node->style.border[CSS_BOTTOM] = 2; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.position[CSS_LEFT] = 6; + node->style.measure = measure; + node->style.measure_context = "small"; } css_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] = 949; - node->layout.dimensions[CSS_HEIGHT] = 471; + node->layout.position[CSS_TOP] = -5; + node->layout.position[CSS_LEFT] = 6; + node->layout.dimensions[CSS_WIDTH] = 55; + node->layout.dimensions[CSS_HEIGHT] = 603; } test("Random #2", root_node, root_layout); @@ -2684,30 +2841,24 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_BOTTOM] = 7; - 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_RIGHT] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 0; - node->style.position[CSS_TOP] = -10; + node->style.margin[CSS_TOP] = 7; + node->style.margin[CSS_RIGHT] = 10; + node->style.margin[CSS_BOTTOM] = -1; + node->style.padding[CSS_LEFT] = 1; + node->style.padding[CSS_RIGHT] = 6; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 9; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 20; + node->layout.position[CSS_TOP] = 7; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 178; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #3", root_node, root_layout); @@ -2717,15 +2868,26 @@ int main() 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] = 140; + node->style.margin[CSS_LEFT] = -3; + node->style.margin[CSS_BOTTOM] = 11; + 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_LEFT] = 5; + node->style.position[CSS_LEFT] = -9; + 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] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = 8; + node->layout.position[CSS_LEFT] = -12; + node->layout.dimensions[CSS_WIDTH] = 19; + node->layout.dimensions[CSS_HEIGHT] = 140; } test("Random #4", root_node, root_layout); @@ -2735,27 +2897,30 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 377; - node->style.dimensions[CSS_HEIGHT] = 549; - node->style.margin[CSS_LEFT] = -9; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.dimensions[CSS_WIDTH] = 873; + node->style.margin[CSS_LEFT] = 1; node->style.margin[CSS_TOP] = 1; - 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_RIGHT] = 18; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_TOP] = 8; + node->style.margin[CSS_RIGHT] = 1; + node->style.margin[CSS_BOTTOM] = 1; + node->style.margin[CSS_LEFT] = 16; + node->style.margin[CSS_TOP] = 18; + node->style.padding[CSS_LEFT] = 10; + node->style.padding[CSS_RIGHT] = 13; + node->style.border[CSS_TOP] = 3; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_TOP] = -3; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 377; - node->layout.dimensions[CSS_HEIGHT] = 549; + node->layout.position[CSS_TOP] = 15; + node->layout.position[CSS_LEFT] = 16; + node->layout.dimensions[CSS_WIDTH] = 873; + node->layout.dimensions[CSS_HEIGHT] = 22; } test("Random #5", root_node, root_layout); @@ -2765,6 +2930,22 @@ int main() 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] = 255; + node->style.margin[CSS_RIGHT] = -6; + node->style.margin[CSS_BOTTOM] = -3; + 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_TOP] = 8; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 1; } css_node_t *root_layout = new_css_node(); @@ -2772,8 +2953,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_HEIGHT] = 0; + node->layout.dimensions[CSS_WIDTH] = 255; + node->layout.dimensions[CSS_HEIGHT] = 15; } test("Random #6", root_node, root_layout); @@ -2783,15 +2964,75 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; + node->style.dimensions[CSS_HEIGHT] = 116; + node->style.margin[CSS_TOP] = 10; + 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_FLEX_START; + node->style.flex = CSS_FLEX_NONE; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.dimensions[CSS_HEIGHT] = 633; + 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.margin[CSS_LEFT] = 3; + node->style.margin[CSS_TOP] = 17; + node->style.margin[CSS_RIGHT] = 8; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_BOTTOM] = 0; + node->style.position[CSS_LEFT] = -10; + node->style.position[CSS_TOP] = 8; + node->style.measure = measure; + node->style.measure_context = "small"; + node = &outer_node_1->children[1]; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.align_self = CSS_ALIGN_FLEX_END; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.margin[CSS_LEFT] = 4; + node->style.margin[CSS_TOP] = 13; + node->style.margin[CSS_RIGHT] = -2; + node->style.margin[CSS_BOTTOM] = 1; + 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_RIGHT] = 5; + node->style.border[CSS_TOP] = 3; + node->style.border[CSS_BOTTOM] = 3; + node->style.position[CSS_LEFT] = -7; + 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] = 0; + node->layout.position[CSS_TOP] = 10; node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.dimensions[CSS_HEIGHT] = 116; + 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] = 25; + node->layout.position[CSS_LEFT] = -7; + node->layout.dimensions[CSS_WIDTH] = 35; + node->layout.dimensions[CSS_HEIGHT] = 633; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 3; + node->layout.position[CSS_LEFT] = -3; + node->layout.dimensions[CSS_WIDTH] = 7; + node->layout.dimensions[CSS_HEIGHT] = 10; + } } test("Random #7", root_node, root_layout); @@ -2801,6 +3042,18 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_WIDTH] = 426; + node->style.dimensions[CSS_HEIGHT] = 497; + node->style.margin[CSS_TOP] = 1; + node->style.margin[CSS_RIGHT] = 14; + node->style.padding[CSS_RIGHT] = 7; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.position[CSS_TOP] = -1; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); @@ -2808,8 +3061,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_HEIGHT] = 0; + node->layout.dimensions[CSS_WIDTH] = 426; + node->layout.dimensions[CSS_HEIGHT] = 497; } test("Random #8", root_node, root_layout); @@ -2819,83 +3072,15 @@ int main() 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.dimensions[CSS_HEIGHT] = 913; - 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] = 3; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 6; - node->style.position[CSS_LEFT] = 9; - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_LEFT] = -10; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 12; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 6; - node->style.position[CSS_TOP] = -1; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.position[CSS_LEFT] = -3; - 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] = 9; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 913; - 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] = 13; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 11; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 12; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 892; - } + 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 #9", root_node, root_layout); @@ -2905,27 +3090,15 @@ int main() 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_CENTER; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_BOTTOM] = 15; - 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] = 16; - node->style.border[CSS_BOTTOM] = 3; - 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] = 16; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 34; - node->layout.dimensions[CSS_HEIGHT] = 36; + 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 #10", root_node, root_layout); @@ -2935,29 +3108,31 @@ int main() 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] = -1; - node->style.margin[CSS_TOP] = 19; - 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_LEFT] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = -8; + node->style.justify_content = CSS_JUSTIFY_CENTER; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.dimensions[CSS_WIDTH] = 477; + node->style.dimensions[CSS_HEIGHT] = 300; + node->style.margin[CSS_LEFT] = 9; + 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] = 0; + node->style.padding[CSS_TOP] = 15; + node->style.padding[CSS_RIGHT] = 17; + node->style.padding[CSS_BOTTOM] = 16; + node->style.position[CSS_TOP] = 0; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 26; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 9; + node->layout.dimensions[CSS_WIDTH] = 477; + node->layout.dimensions[CSS_HEIGHT] = 300; } test("Random #11", root_node, root_layout); @@ -2967,55 +3142,32 @@ int main() 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.dimensions[CSS_HEIGHT] = 601; + 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.border[CSS_LEFT] = 0; + node->style.border[CSS_BOTTOM] = 2; + node->style.position[CSS_LEFT] = 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] = 0; - node->layout.position[CSS_LEFT] = 0; + node->layout.position[CSS_TOP] = 11; + node->layout.position[CSS_LEFT] = 26; node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.dimensions[CSS_HEIGHT] = 601; } test("Random #12", 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_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 277; - 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.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.position[CSS_LEFT] = 6; - 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] = 13; - node->layout.position[CSS_LEFT] = 22; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 277; - } - - test("Random #13", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { @@ -3031,6 +3183,26 @@ int main() 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.measure = measure; + node->style.measure_context = "loooooooooong with space"; + } + + css_node_t *root_layout = new_css_node(); + { + css_node_t *node = root_layout; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; + } + test("Random #14", root_node, root_layout); } @@ -3038,33 +3210,28 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 559; - 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] = -2; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = -1; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 0; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_WIDTH] = 551; + 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_TOP] = 12; + node->style.border[CSS_TOP] = 1; + node->style.position[CSS_LEFT] = 8; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 559; - node->layout.dimensions[CSS_HEIGHT] = 14; + node->layout.position[CSS_TOP] = 12; + node->layout.position[CSS_LEFT] = -1; + node->layout.dimensions[CSS_WIDTH] = 551; + node->layout.dimensions[CSS_HEIGHT] = 19; } test("Random #15", root_node, root_layout); @@ -3110,15 +3277,28 @@ int main() 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_CENTER; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.dimensions[CSS_WIDTH] = 924; + 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] = 8; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 3; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -7; + node->layout.position[CSS_LEFT] = -7; + node->layout.dimensions[CSS_WIDTH] = 924; + node->layout.dimensions[CSS_HEIGHT] = 28; } test("Random #18", root_node, root_layout); @@ -3128,31 +3308,62 @@ int main() 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_SPACE_BETWEEN; - 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] = 8; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + 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] = 10; + node->style.margin[CSS_RIGHT] = 8; + node->style.padding[CSS_RIGHT] = 18; node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; + node->style.border[CSS_BOTTOM] = 3; + node->style.position[CSS_LEFT] = -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_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.justify_content = CSS_JUSTIFY_FLEX_START; + node->style.position_type = CSS_POSITION_ABSOLUTE; + 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] = 2; + node->style.margin[CSS_BOTTOM] = 17; + 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_BOTTOM] = 2; + node->style.border[CSS_TOP] = 2; + node->style.position[CSS_LEFT] = 0; + node->style.position[CSS_TOP] = 2; + node->style.measure = measure; + node->style.measure_context = "small"; + } } 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] = 8; - node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.position[CSS_TOP] = 10; + node->layout.position[CSS_LEFT] = -7; + node->layout.dimensions[CSS_WIDTH] = 18; 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] = 4; + node->layout.position[CSS_LEFT] = 8; + node->layout.dimensions[CSS_WIDTH] = 55; + node->layout.dimensions[CSS_HEIGHT] = 33; + } } test("Random #19", root_node, root_layout); @@ -3162,15 +3373,31 @@ int main() 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] = -10; + node->style.margin[CSS_RIGHT] = 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; + node->style.padding[CSS_TOP] = 13; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_LEFT] = -10; + node->style.position[CSS_TOP] = 5; + node->style.measure = measure; + node->style.measure_context = "small"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -5; + node->layout.position[CSS_LEFT] = -4; + node->layout.dimensions[CSS_WIDTH] = 67; + node->layout.dimensions[CSS_HEIGHT] = 49; } test("Random #20", root_node, root_layout); @@ -3180,20 +3407,29 @@ int main() 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_WIDTH] = 252; - node->style.margin[CSS_BOTTOM] = -8; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_RIGHT] = 0; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.dimensions[CSS_WIDTH] = 34; + node->style.dimensions[CSS_HEIGHT] = 324; + 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.margin[CSS_TOP] = 14; + node->style.margin[CSS_RIGHT] = 13; + node->style.margin[CSS_BOTTOM] = -10; + node->style.border[CSS_LEFT] = 3; + node->style.border[CSS_BOTTOM] = 3; + node->style.position[CSS_LEFT] = 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] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 252; - node->layout.dimensions[CSS_HEIGHT] = 1; + node->layout.position[CSS_TOP] = 7; + node->layout.position[CSS_LEFT] = 17; + node->layout.dimensions[CSS_WIDTH] = 34; + node->layout.dimensions[CSS_HEIGHT] = 324; } test("Random #21", root_node, root_layout); @@ -3203,15 +3439,24 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 943; + node->style.dimensions[CSS_HEIGHT] = 497; + node->style.margin[CSS_LEFT] = 7; + node->style.margin[CSS_TOP] = -8; + node->style.margin[CSS_BOTTOM] = 7; + node->style.border[CSS_LEFT] = 3; + node->style.position[CSS_LEFT] = -5; + 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] = 0; + node->layout.position[CSS_TOP] = -9; + node->layout.position[CSS_LEFT] = 2; + node->layout.dimensions[CSS_WIDTH] = 943; + node->layout.dimensions[CSS_HEIGHT] = 497; } test("Random #22", root_node, root_layout); @@ -3221,24 +3466,27 @@ int main() 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.dimensions[CSS_HEIGHT] = 635; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_RIGHT] = 0; - node->style.padding[CSS_LEFT] = 19; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_TOP] = 0; + node->style.dimensions[CSS_WIDTH] = 373; + node->style.dimensions[CSS_HEIGHT] = 999; + 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.margin[CSS_TOP] = 13; + node->style.margin[CSS_RIGHT] = 11; + node->style.padding[CSS_LEFT] = 4; + node->style.position[CSS_TOP] = 5; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = 4; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 635; + node->layout.position[CSS_TOP] = 18; + node->layout.position[CSS_LEFT] = -10; + node->layout.dimensions[CSS_WIDTH] = 373; + node->layout.dimensions[CSS_HEIGHT] = 999; } test("Random #23", root_node, root_layout); @@ -3248,15 +3496,29 @@ int main() 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] = -3; + node->style.margin[CSS_TOP] = -3; + node->style.margin[CSS_RIGHT] = -3; + node->style.margin[CSS_BOTTOM] = -3; + node->style.margin[CSS_LEFT] = 17; + node->style.margin[CSS_TOP] = 19; + 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_TOP] = 15; + node->style.border[CSS_LEFT] = 2; + 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = 19; + node->layout.position[CSS_LEFT] = 22; + node->layout.dimensions[CSS_WIDTH] = 20; + node->layout.dimensions[CSS_HEIGHT] = 24; } test("Random #24", root_node, root_layout); @@ -3266,27 +3528,22 @@ int main() 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] = 18; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 9; - node->style.position[CSS_TOP] = 8; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.padding[CSS_LEFT] = 6; + node->style.padding[CSS_TOP] = 8; + node->style.padding[CSS_RIGHT] = 6; + node->style.border[CSS_RIGHT] = 3; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = 21; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 18; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 48; + node->layout.dimensions[CSS_HEIGHT] = 26; } test("Random #25", root_node, root_layout); @@ -3296,27 +3553,17 @@ int main() 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.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 400; - 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.margin[CSS_LEFT] = -2; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 400; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #26", root_node, root_layout); @@ -3327,30 +3574,33 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - 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_LEFT] = 3; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_WIDTH] = 786; + node->style.dimensions[CSS_HEIGHT] = 710; + 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] = 15; + node->style.margin[CSS_RIGHT] = 0; + node->style.margin[CSS_BOTTOM] = 16; + node->style.padding[CSS_TOP] = 16; node->style.border[CSS_RIGHT] = 0; node->style.border[CSS_BOTTOM] = 0; + node->style.position[CSS_LEFT] = 4; + node->style.position[CSS_TOP] = -3; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = 6; - node->layout.dimensions[CSS_HEIGHT] = 13; + node->layout.position[CSS_TOP] = -12; + node->layout.position[CSS_LEFT] = 19; + node->layout.dimensions[CSS_WIDTH] = 786; + node->layout.dimensions[CSS_HEIGHT] = 710; } test("Random #27", root_node, root_layout); @@ -3360,15 +3610,29 @@ int main() 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.dimensions[CSS_WIDTH] = 260; + node->style.dimensions[CSS_HEIGHT] = 929; + node->style.margin[CSS_TOP] = -7; + node->style.margin[CSS_RIGHT] = -2; + node->style.margin[CSS_BOTTOM] = 12; + node->style.padding[CSS_LEFT] = 13; + node->style.padding[CSS_RIGHT] = 9; + node->style.padding[CSS_BOTTOM] = 15; + node->style.border[CSS_RIGHT] = 1; + node->style.position[CSS_LEFT] = 3; + node->style.measure = measure; + node->style.measure_context = "small"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -7; + node->layout.position[CSS_LEFT] = 3; + node->layout.dimensions[CSS_WIDTH] = 260; + node->layout.dimensions[CSS_HEIGHT] = 929; } test("Random #28", root_node, root_layout); @@ -3396,15 +3660,35 @@ int main() 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.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] = 5; + node->style.margin[CSS_BOTTOM] = -8; + 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_TOP] = 9; + node->style.padding[CSS_RIGHT] = 11; + node->style.border[CSS_LEFT] = 0; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 0; + node->style.border[CSS_BOTTOM] = 0; + node->style.border[CSS_RIGHT] = 0; + 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] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = 13; + node->layout.position[CSS_LEFT] = 4; + node->layout.dimensions[CSS_WIDTH] = 15; + node->layout.dimensions[CSS_HEIGHT] = 13; } test("Random #30", root_node, root_layout); @@ -3414,19 +3698,13 @@ int main() 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_CENTER; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_BOTTOM] = 4; - node->style.position[CSS_LEFT] = 1; - 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] = 11; + node->layout.position[CSS_LEFT] = 0; node->layout.dimensions[CSS_WIDTH] = 0; node->layout.dimensions[CSS_HEIGHT] = 0; } @@ -3438,31 +3716,17 @@ int main() 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] = 401; - 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.margin[CSS_LEFT] = 2; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_TOP] = 5; - node->style.padding[CSS_RIGHT] = 16; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -1; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 401; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #32", root_node, root_layout); @@ -3472,33 +3736,15 @@ int main() 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 150; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 15; - 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_TOP] = 0; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 150; - node->layout.dimensions[CSS_HEIGHT] = 15; + 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 #33", root_node, root_layout); @@ -3508,23 +3754,30 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.dimensions[CSS_HEIGHT] = 103; - node->style.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_TOP] = -1; + node->style.justify_content = CSS_JUSTIFY_CENTER; + node->style.dimensions[CSS_WIDTH] = 498; + node->style.dimensions[CSS_HEIGHT] = 478; + 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_TOP] = 6; + node->style.padding[CSS_RIGHT] = 13; + node->style.padding[CSS_BOTTOM] = 12; + node->style.border[CSS_RIGHT] = 2; + node->style.position[CSS_LEFT] = 8; + node->style.position[CSS_TOP] = -5; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 103; + node->layout.position[CSS_TOP] = 1; + node->layout.position[CSS_LEFT] = 5; + node->layout.dimensions[CSS_WIDTH] = 498; + node->layout.dimensions[CSS_HEIGHT] = 478; } test("Random #34", root_node, root_layout); @@ -3534,6 +3787,20 @@ int main() 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_END; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_WIDTH] = 954; + node->style.dimensions[CSS_HEIGHT] = 847; + node->style.margin[CSS_RIGHT] = 11; + node->style.border[CSS_LEFT] = 0; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 0; + node->style.border[CSS_BOTTOM] = 0; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 2; + node->style.measure = measure; + node->style.measure_context = "small"; } css_node_t *root_layout = new_css_node(); @@ -3541,8 +3808,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_HEIGHT] = 0; + node->layout.dimensions[CSS_WIDTH] = 954; + node->layout.dimensions[CSS_HEIGHT] = 847; } test("Random #35", root_node, root_layout); @@ -3552,30 +3819,30 @@ int main() 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 493; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = -6; - 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_LEFT] = 13; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -8; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_HEIGHT] = 184; + 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.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_LEFT] = 15; + node->style.padding[CSS_TOP] = 6; + node->style.border[CSS_BOTTOM] = 1; + 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] = 12; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 493; - node->layout.dimensions[CSS_HEIGHT] = 6; + node->layout.position[CSS_TOP] = 9; + node->layout.position[CSS_LEFT] = 12; + node->layout.dimensions[CSS_WIDTH] = 24; + node->layout.dimensions[CSS_HEIGHT] = 184; } test("Random #36", root_node, root_layout); @@ -3585,32 +3852,81 @@ int main() 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_CENTER; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = -3; - 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_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 5; - node->style.position[CSS_TOP] = 4; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 4; + node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 14; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #37", 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_STRETCH; + node->style.dimensions[CSS_WIDTH] = 30; + node->style.dimensions[CSS_HEIGHT] = 20; + node->style.margin[CSS_LEFT] = 10; + node->style.margin[CSS_RIGHT] = -4; + node->style.margin[CSS_BOTTOM] = 18; + node->style.padding[CSS_TOP] = 8; + node->style.padding[CSS_RIGHT] = 8; + node->style.padding[CSS_BOTTOM] = 11; + 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.justify_content = CSS_JUSTIFY_FLEX_START; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.flex = CSS_FLEX_NONE; + 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_TOP] = 9; + node->style.margin[CSS_RIGHT] = 6; + node->style.margin[CSS_BOTTOM] = 17; + node->style.padding[CSS_LEFT] = 5; + node->style.padding[CSS_BOTTOM] = 8; + node->style.measure = measure; + node->style.measure_context = "small"; + } + } + + css_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] = 30; + 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] = 17; + node->layout.position[CSS_LEFT] = -4; + node->layout.dimensions[CSS_WIDTH] = 20; + node->layout.dimensions[CSS_HEIGHT] = 26; + } + } + + test("Random #38", root_node, root_layout); + } + { css_node_t *root_node = new_css_node(); { @@ -3626,69 +3942,6 @@ int main() 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_BOTTOM] = 1; - 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] = 14; - node->style.padding[CSS_BOTTOM] = 11; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -5; - 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.align_self = CSS_ALIGN_STRETCH; - 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.margin[CSS_BOTTOM] = 8; - 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.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 3; - 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] = -13; - node->layout.dimensions[CSS_WIDTH] = 88; - node->layout.dimensions[CSS_HEIGHT] = 77; - 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] = 37; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - } - test("Random #39", root_node, root_layout); } @@ -3715,117 +3968,38 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - 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.margin[CSS_LEFT] = -4; - node->style.margin[CSS_TOP] = -2; - 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] = 18; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 18; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -7; - node->style.position[CSS_TOP] = 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.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 282; - node->style.margin[CSS_LEFT] = 19; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 883; - node->style.dimensions[CSS_HEIGHT] = 49; - node->style.margin[CSS_LEFT] = -3; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 2; - node->style.border[CSS_LEFT] = 2; - } - } + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.dimensions[CSS_HEIGHT] = 502; + 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.margin[CSS_LEFT] = -2; + node->style.margin[CSS_TOP] = 19; + node->style.margin[CSS_RIGHT] = 1; + node->style.margin[CSS_BOTTOM] = 1; + node->style.padding[CSS_TOP] = 5; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_LEFT] = 4; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 24; - 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] = 37; - node->layout.dimensions[CSS_WIDTH] = 282; - node->layout.dimensions[CSS_HEIGHT] = 68; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 883; - node->layout.dimensions[CSS_HEIGHT] = 49; - } - } + node->layout.position[CSS_TOP] = 19; + node->layout.position[CSS_LEFT] = 2; + node->layout.dimensions[CSS_WIDTH] = 35; + node->layout.dimensions[CSS_HEIGHT] = 502; } test("Random #41", 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] = 502; - 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_LEFT] = 19; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_LEFT] = 5; - node->style.padding[CSS_BOTTOM] = 11; - node->style.position[CSS_LEFT] = 9; - 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] = 5; - node->layout.position[CSS_LEFT] = 28; - node->layout.dimensions[CSS_WIDTH] = 502; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #42", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { @@ -3841,7 +4015,7 @@ int main() node->layout.dimensions[CSS_HEIGHT] = 0; } - test("Random #43", root_node, root_layout); + test("Random #42", root_node, root_layout); } { @@ -3849,7 +4023,6 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 570; node->style.margin[CSS_TOP] = 19; node->style.margin[CSS_RIGHT] = 14; node->style.margin[CSS_BOTTOM] = -8; @@ -3857,30 +4030,8 @@ int main() node->style.border[CSS_LEFT] = 3; node->style.border[CSS_TOP] = 0; node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_HEIGHT] = 302; - 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_LEFT] = 11; - 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->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = -4; - } + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); @@ -3888,18 +4039,38 @@ int main() css_node_t *node = root_layout; node->layout.position[CSS_TOP] = 19; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 570; - node->layout.dimensions[CSS_HEIGHT] = 319; - 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 545; - node->layout.dimensions[CSS_HEIGHT] = 302; - } + node->layout.dimensions[CSS_WIDTH] = 177; + node->layout.dimensions[CSS_HEIGHT] = 19; + } + + test("Random #43", 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.align_items = CSS_ALIGN_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 146; + node->style.dimensions[CSS_HEIGHT] = 190; + 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.margin[CSS_BOTTOM] = 15; + node->style.padding[CSS_RIGHT] = 6; + node->style.border[CSS_RIGHT] = 2; + 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] = 14; + node->layout.position[CSS_LEFT] = 11; + node->layout.dimensions[CSS_WIDTH] = 146; + node->layout.dimensions[CSS_HEIGHT] = 190; } test("Random #44", root_node, root_layout); @@ -3909,29 +4080,61 @@ int main() 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; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 882; - 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.dimensions[CSS_WIDTH] = 882; node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 19; + node->style.margin[CSS_TOP] = -7; + node->style.margin[CSS_RIGHT] = -7; + node->style.margin[CSS_BOTTOM] = -7; + node->style.margin[CSS_RIGHT] = 19; node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; + node->style.padding[CSS_TOP] = 0; + node->style.padding[CSS_RIGHT] = 0; + node->style.padding[CSS_BOTTOM] = 0; + node->style.padding[CSS_LEFT] = 18; + node->style.padding[CSS_RIGHT] = 2; + node->style.border[CSS_RIGHT] = 3; node->style.position[CSS_LEFT] = -3; + 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.align_self = CSS_ALIGN_CENTER; + node->style.flex = CSS_FLEX_ONE; + node->style.position_type = CSS_POSITION_ABSOLUTE; + 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.margin[CSS_RIGHT] = 12; + node->style.padding[CSS_LEFT] = 8; + node->style.padding[CSS_TOP] = 6; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 1; + } } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 8; + node->layout.position[CSS_TOP] = -10; node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 882; + node->layout.dimensions[CSS_WIDTH] = 882; + 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] = 4; + node->layout.position[CSS_LEFT] = 25; + node->layout.dimensions[CSS_WIDTH] = 9; + node->layout.dimensions[CSS_HEIGHT] = 6; + } } test("Random #45", root_node, root_layout); @@ -3941,90 +4144,15 @@ int main() 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] = 671; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_RIGHT] = 0; - 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - 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] = 15; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 13; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 0; - node->style.position[CSS_TOP] = 3; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 952; - 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] = 2; - node->style.margin[CSS_RIGHT] = 12; - node->style.margin[CSS_BOTTOM] = 1; - 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_LEFT] = 4; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = -3; - 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] = 1018; - node->layout.dimensions[CSS_HEIGHT] = 671; - 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] = 22; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 981; - 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] = 4; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 952; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - } + 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 #46", root_node, root_layout); @@ -4034,12 +4162,8 @@ int main() 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] = 154; - node->style.margin[CSS_BOTTOM] = -3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 2; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); @@ -4047,8 +4171,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] = 154; - node->layout.dimensions[CSS_HEIGHT] = 4; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #47", root_node, root_layout); @@ -4090,58 +4214,6 @@ int main() test("Random #49", 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] = 451; - node->style.dimensions[CSS_HEIGHT] = 228; - node->style.margin[CSS_BOTTOM] = 10; - 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.border[CSS_LEFT] = 2; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 919; - node->style.margin[CSS_RIGHT] = -5; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_LEFT] = 14; - node->style.position[CSS_LEFT] = 3; - 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] = 0; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 451; - node->layout.dimensions[CSS_HEIGHT] = 228; - 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] = 14; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 919; - } - } - - test("Random #50", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { @@ -4157,6 +4229,103 @@ int main() 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.dimensions[CSS_WIDTH] = 646; + node->style.dimensions[CSS_HEIGHT] = 615; + 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_LEFT] = 13; + node->style.margin[CSS_RIGHT] = -6; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + node->style.border[CSS_LEFT] = 3; + node->style.border[CSS_TOP] = 3; + node->style.border[CSS_BOTTOM] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.flex = CSS_FLEX_NONE; + node->style.position_type = CSS_POSITION_RELATIVE; + node->style.dimensions[CSS_HEIGHT] = 200; + node->style.margin[CSS_TOP] = 4; + node->style.margin[CSS_RIGHT] = 9; + node->style.margin[CSS_BOTTOM] = 3; + node->style.padding[CSS_BOTTOM] = 19; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 2; + node->style.measure = measure; + node->style.measure_context = "small"; + node = &outer_node_1->children[1]; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.position_type = CSS_POSITION_RELATIVE; + node->style.dimensions[CSS_HEIGHT] = 836; + 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] = -2; + node->style.margin[CSS_RIGHT] = 16; + node->style.margin[CSS_BOTTOM] = -1; + 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] = 15; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.border[CSS_TOP] = 2; + node->style.position[CSS_TOP] = -8; + node->style.measure = measure; + node->style.measure_context = "small"; + } + } + + 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] = 13; + node->layout.dimensions[CSS_WIDTH] = 646; + node->layout.dimensions[CSS_HEIGHT] = 615; + 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] = 3; + node->layout.dimensions[CSS_WIDTH] = 37; + node->layout.dimensions[CSS_HEIGHT] = 200; + node = &outer_node_1->children[1]; + node->layout.position[CSS_TOP] = 200; + node->layout.position[CSS_LEFT] = 1; + node->layout.dimensions[CSS_WIDTH] = 61; + node->layout.dimensions[CSS_HEIGHT] = 836; + } + } + test("Random #51", root_node, root_layout); } @@ -4182,147 +4351,15 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 846; - node->style.margin[CSS_LEFT] = -3; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -8; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 528; - 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_BOTTOM] = 11; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 18; - node->style.position[CSS_LEFT] = 0; - node->style.position[CSS_TOP] = -5; - init_css_node_children(node, 3); - { - 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_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 883; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 18; - node->style.position[CSS_TOP] = -8; - node = &outer_node_2->children[1]; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 92; - node->style.dimensions[CSS_HEIGHT] = 437; - 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] = 14; - node->style.margin[CSS_TOP] = -9; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_2->children[2]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 182; - 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_LEFT] = 7; - 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.border[CSS_TOP] = 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = 0; - 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_TOP] = 2; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_BOTTOM] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = -11; - node->layout.dimensions[CSS_WIDTH] = 846; + 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 130; - node->layout.dimensions[CSS_HEIGHT] = 528; - init_css_node_children(node, 3); - { - css_node_t *outer_node_2 = node; - css_node_t *node; - node = &outer_node_2->children[0]; - node->layout.position[CSS_TOP] = -8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 883; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = -9; - node->layout.position[CSS_LEFT] = 29; - node->layout.dimensions[CSS_WIDTH] = 92; - node->layout.dimensions[CSS_HEIGHT] = 437; - node = &outer_node_2->children[2]; - node->layout.position[CSS_TOP] = 413; - node->layout.position[CSS_LEFT] = 55; - node->layout.dimensions[CSS_WIDTH] = 63; - node->layout.dimensions[CSS_HEIGHT] = 182; - 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] = 12; - node->layout.position[CSS_LEFT] = 36; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - } - } } test("Random #53", root_node, root_layout); @@ -4332,30 +4369,17 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_items = CSS_ALIGN_FLEX_END; - 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] = -8; - node->style.margin[CSS_RIGHT] = 0; - 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->style.padding[CSS_BOTTOM] = 17; - node->style.position[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = -8; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = -3; + node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 32; + node->layout.dimensions[CSS_WIDTH] = 171; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #54", root_node, root_layout); @@ -4365,25 +4389,26 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 909; + node->style.justify_content = CSS_JUSTIFY_FLEX_START; + node->style.margin[CSS_LEFT] = 3; + node->style.margin[CSS_TOP] = 3; node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -7; - 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_LEFT] = 7; - node->style.padding[CSS_RIGHT] = 1; - node->style.position[CSS_TOP] = -1; + node->style.margin[CSS_BOTTOM] = 3; + node->style.margin[CSS_LEFT] = -9; + node->style.margin[CSS_RIGHT] = -3; + node->style.padding[CSS_RIGHT] = 0; + node->style.border[CSS_RIGHT] = 3; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = 909; - node->layout.dimensions[CSS_HEIGHT] = 36; + node->layout.position[CSS_TOP] = 3; + node->layout.position[CSS_LEFT] = -9; + node->layout.dimensions[CSS_WIDTH] = 36; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #55", root_node, root_layout); @@ -4393,31 +4418,25 @@ int main() 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; - node->style.dimensions[CSS_WIDTH] = 580; - node->style.dimensions[CSS_HEIGHT] = 106; - 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.margin[CSS_RIGHT] = 7; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = 5; + node->style.dimensions[CSS_WIDTH] = 800; + node->style.dimensions[CSS_HEIGHT] = 878; + 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.margin[CSS_RIGHT] = -4; + node->style.padding[CSS_TOP] = 18; + node->style.padding[CSS_BOTTOM] = 0; + node->style.border[CSS_BOTTOM] = 0; } 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] = 19; - node->layout.dimensions[CSS_WIDTH] = 580; - node->layout.dimensions[CSS_HEIGHT] = 106; + node->layout.position[CSS_TOP] = -10; + node->layout.position[CSS_LEFT] = -10; + node->layout.dimensions[CSS_WIDTH] = 800; + node->layout.dimensions[CSS_HEIGHT] = 878; } test("Random #56", root_node, root_layout); @@ -4445,29 +4464,34 @@ int main() 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 914; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = -6; - node->style.margin[CSS_BOTTOM] = 17; - 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_TOP] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 3; + node->style.justify_content = CSS_JUSTIFY_CENTER; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.dimensions[CSS_WIDTH] = 693; + 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_LEFT] = 13; + node->style.margin[CSS_RIGHT] = 17; + node->style.margin[CSS_BOTTOM] = -9; + 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_RIGHT] = 14; + node->style.border[CSS_RIGHT] = 3; + node->style.border[CSS_BOTTOM] = 0; + node->style.position[CSS_LEFT] = 4; + 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 914; - node->layout.dimensions[CSS_HEIGHT] = 25; + node->layout.position[CSS_TOP] = 5; + node->layout.position[CSS_LEFT] = 17; + node->layout.dimensions[CSS_WIDTH] = 693; + node->layout.dimensions[CSS_HEIGHT] = 8; } test("Random #58", root_node, root_layout); @@ -4477,15 +4501,29 @@ int main() 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] = 8; + node->style.margin[CSS_TOP] = -5; + node->style.margin[CSS_RIGHT] = 13; + node->style.margin[CSS_BOTTOM] = 18; + 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.padding[CSS_LEFT] = 11; + node->style.padding[CSS_BOTTOM] = 7; + node->style.border[CSS_BOTTOM] = 1; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -5; + node->layout.position[CSS_LEFT] = 8; + node->layout.dimensions[CSS_WIDTH] = 185; + node->layout.dimensions[CSS_HEIGHT] = 29; } test("Random #59", root_node, root_layout); @@ -4495,25 +4533,57 @@ int main() 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.margin[CSS_RIGHT] = -5; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_TOP] = -6; + 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.margin[CSS_LEFT] = 11; + node->style.margin[CSS_TOP] = -2; + node->style.margin[CSS_RIGHT] = -3; + node->style.margin[CSS_BOTTOM] = 11; + node->style.padding[CSS_RIGHT] = 2; + node->style.border[CSS_LEFT] = 3; + node->style.border[CSS_TOP] = 3; + node->style.border[CSS_RIGHT] = 3; + node->style.border[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.flex = CSS_FLEX_NONE; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.margin[CSS_LEFT] = 1; + node->style.margin[CSS_TOP] = 15; + node->style.margin[CSS_RIGHT] = 5; + node->style.margin[CSS_BOTTOM] = 12; + node->style.border[CSS_RIGHT] = 3; + node->style.border[CSS_BOTTOM] = 3; + node->style.position[CSS_LEFT] = 0; + node->style.position[CSS_TOP] = -5; + node->style.measure = measure; + node->style.measure_context = "small"; + } } 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] = 19; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 10; + node->layout.position[CSS_TOP] = -2; + node->layout.position[CSS_LEFT] = 12; + node->layout.dimensions[CSS_WIDTH] = 8; + 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] = 13; + node->layout.position[CSS_LEFT] = 4; + node->layout.dimensions[CSS_WIDTH] = 36; + node->layout.dimensions[CSS_HEIGHT] = 21; + } } test("Random #60", root_node, root_layout); @@ -4523,31 +4593,27 @@ int main() 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_LEFT] = -1; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = -1; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -4; - 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.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 9; - node->style.position[CSS_LEFT] = -6; - node->style.position[CSS_TOP] = 4; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_HEIGHT] = 165; + node->style.margin[CSS_RIGHT] = 5; + node->style.padding[CSS_LEFT] = 17; + node->style.padding[CSS_TOP] = 9; + node->style.padding[CSS_BOTTOM] = 6; + node->style.border[CSS_LEFT] = 3; + node->style.position[CSS_TOP] = 8; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 35; + node->layout.position[CSS_TOP] = 8; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 53; + node->layout.dimensions[CSS_HEIGHT] = 165; } test("Random #61", root_node, root_layout); @@ -4557,35 +4623,63 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 802; - node->style.dimensions[CSS_HEIGHT] = 503; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_RIGHT] = 14; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.dimensions[CSS_HEIGHT] = 173; + 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.margin[CSS_TOP] = -5; + node->style.padding[CSS_TOP] = 19; + node->style.padding[CSS_RIGHT] = 10; node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_RIGHT] = 0; - 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] = 19; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 802; - node->layout.dimensions[CSS_HEIGHT] = 503; + node->layout.position[CSS_TOP] = -5; + node->layout.position[CSS_LEFT] = 19; + node->layout.dimensions[CSS_WIDTH] = 10; + node->layout.dimensions[CSS_HEIGHT] = 173; } 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_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 686; + node->style.dimensions[CSS_HEIGHT] = 156; + node->style.margin[CSS_LEFT] = -4; + node->style.margin[CSS_RIGHT] = 16; + node->style.margin[CSS_BOTTOM] = 9; + node->style.padding[CSS_LEFT] = 19; + node->style.padding[CSS_TOP] = 19; + node->style.padding[CSS_RIGHT] = 19; + node->style.padding[CSS_BOTTOM] = 19; + node->style.padding[CSS_LEFT] = 9; + node->style.position[CSS_LEFT] = -4; + node->style.position[CSS_TOP] = 3; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; + } + + 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] = 686; + node->layout.dimensions[CSS_HEIGHT] = 156; + } + + test("Random #63", root_node, root_layout); + } + { css_node_t *root_node = new_css_node(); { @@ -4601,40 +4695,6 @@ int main() node->layout.dimensions[CSS_HEIGHT] = 0; } - test("Random #63", 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.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = -8; - node->style.margin[CSS_BOTTOM] = 5; - 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.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_TOP] = 1; - 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] = 18; - node->layout.dimensions[CSS_WIDTH] = 31; - node->layout.dimensions[CSS_HEIGHT] = 26; - } - test("Random #64", root_node, root_layout); } @@ -4643,99 +4703,28 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 478; - 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.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = -2; - node->style.position[CSS_TOP] = -2; - init_css_node_children(node, 4); - { - 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_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 781; - 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] = 16; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 781; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 19; - node->style.border[CSS_LEFT] = 2; - node->style.position[CSS_TOP] = 3; - node = &outer_node_1->children[2]; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 70; - 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_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_TOP] = 3; - node = &outer_node_1->children[3]; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 0; - } + node->style.justify_content = CSS_JUSTIFY_CENTER; + node->style.dimensions[CSS_WIDTH] = 655; + node->style.dimensions[CSS_HEIGHT] = 360; + 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] = 5; + node->style.padding[CSS_TOP] = 19; + node->style.padding[CSS_BOTTOM] = 10; + node->style.border[CSS_LEFT] = 0; + node->style.border[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] = 8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 793; - node->layout.dimensions[CSS_HEIGHT] = 478; - init_css_node_children(node, 4); - { - css_node_t *outer_node_1 = node; - css_node_t *node; - node = &outer_node_1->children[0]; - node->layout.position[CSS_TOP] = -319; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 781; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = -320; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 781; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = 476; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 70; - node->layout.dimensions[CSS_HEIGHT] = 0; - node = &outer_node_1->children[3]; - node->layout.position[CSS_TOP] = 478; - node->layout.position[CSS_LEFT] = 785; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } + node->layout.position[CSS_TOP] = 5; + node->layout.position[CSS_LEFT] = -2; + node->layout.dimensions[CSS_WIDTH] = 655; + node->layout.dimensions[CSS_HEIGHT] = 360; } test("Random #65", root_node, root_layout); @@ -4745,36 +4734,15 @@ int main() 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_HEIGHT] = 824; - 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_LEFT] = 10; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = 12; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 824; + 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 #66", root_node, root_layout); @@ -4784,15 +4752,24 @@ int main() 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_SPACE_BETWEEN; + node->style.dimensions[CSS_HEIGHT] = 662; + node->style.margin[CSS_RIGHT] = 12; + node->style.margin[CSS_BOTTOM] = -9; + node->style.padding[CSS_TOP] = 15; + node->style.padding[CSS_RIGHT] = 8; + node->style.position[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] = 0; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = -8; + node->layout.position[CSS_LEFT] = 2; + node->layout.dimensions[CSS_WIDTH] = 8; + node->layout.dimensions[CSS_HEIGHT] = 662; } test("Random #67", root_node, root_layout); @@ -4802,15 +4779,27 @@ int main() 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] = 0; + node->style.margin[CSS_TOP] = 0; + node->style.margin[CSS_RIGHT] = 0; + node->style.margin[CSS_BOTTOM] = 0; + node->style.margin[CSS_LEFT] = 7; + node->style.padding[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 1; + node->style.position[CSS_LEFT] = -10; + node->style.position[CSS_TOP] = -8; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -8; + node->layout.position[CSS_LEFT] = -3; + node->layout.dimensions[CSS_WIDTH] = 172; + node->layout.dimensions[CSS_HEIGHT] = 20; } test("Random #68", root_node, root_layout); @@ -4820,119 +4809,20 @@ int main() 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] = 409; - node->style.dimensions[CSS_HEIGHT] = 779; - node->style.margin[CSS_TOP] = -7; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -7; + node->layout.position[CSS_TOP] = 0; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 409; - node->layout.dimensions[CSS_HEIGHT] = 779; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 0; } test("Random #69", 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] = -5; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 16; - 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_LEFT] = 12; - node->style.border[CSS_TOP] = 2; - node->style.border[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_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = -1; - 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] = 68; - node->layout.dimensions[CSS_HEIGHT] = 46; - 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] = 27; - node->layout.dimensions[CSS_WIDTH] = 29; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - } - - test("Random #70", 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] = 109; - node->style.margin[CSS_TOP] = 11; - node->style.padding[CSS_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = -3; - 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] = 8; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 109; - } - - test("Random #71", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { @@ -4948,6 +4838,95 @@ int main() 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.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.dimensions[CSS_WIDTH] = 615; + 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_TOP] = 17; + node->style.position[CSS_TOP] = 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_direction = CSS_FLEX_DIRECTION_ROW; + node->style.align_self = CSS_ALIGN_CENTER; + node->style.flex = CSS_FLEX_NONE; + node->style.dimensions[CSS_WIDTH] = 457; + node->style.dimensions[CSS_HEIGHT] = 476; + 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] = 1; + 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_TOP] = 6; + node->style.position[CSS_LEFT] = 0; + node->style.measure = measure; + node->style.measure_context = "small"; + } + } + + 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] = 1; + node->layout.dimensions[CSS_WIDTH] = 615; + node->layout.dimensions[CSS_HEIGHT] = 484; + 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] = 457; + node->layout.dimensions[CSS_HEIGHT] = 476; + } + } + + test("Random #71", 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_SPACE_AROUND; + node->style.dimensions[CSS_WIDTH] = 468; + node->style.dimensions[CSS_HEIGHT] = 523; + node->style.margin[CSS_TOP] = -2; + 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_LEFT] = 11; + 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] = 6; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 468; + node->layout.dimensions[CSS_HEIGHT] = 523; + } + test("Random #72", root_node, root_layout); } @@ -4991,35 +4970,28 @@ int main() 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_WIDTH] = 739; - node->style.dimensions[CSS_HEIGHT] = 155; - 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_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] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 9; - node->style.position[CSS_TOP] = 1; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 933; + 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] = 1; + node->style.margin[CSS_BOTTOM] = 3; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_TOP] = 7; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 2; - node->layout.dimensions[CSS_WIDTH] = 739; - node->layout.dimensions[CSS_HEIGHT] = 155; + node->layout.position[CSS_TOP] = 8; + node->layout.position[CSS_LEFT] = 5; + node->layout.dimensions[CSS_WIDTH] = 933; + node->layout.dimensions[CSS_HEIGHT] = 19; } test("Random #75", root_node, root_layout); @@ -5029,15 +5001,28 @@ int main() 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] = 486; + 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] = 17; + node->style.margin[CSS_TOP] = 7; + 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.border[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] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = 7; + node->layout.position[CSS_LEFT] = 17; + node->layout.dimensions[CSS_WIDTH] = 24; + node->layout.dimensions[CSS_HEIGHT] = 486; } test("Random #76", root_node, root_layout); @@ -5047,27 +5032,33 @@ int main() 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] = 319; - 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_BOTTOM] = -10; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = 8; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.dimensions[CSS_WIDTH] = 828; + 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] = -8; + 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_RIGHT] = 15; + node->style.padding[CSS_BOTTOM] = 5; + node->style.border[CSS_LEFT] = 0; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 0; + node->style.border[CSS_BOTTOM] = 0; + node->style.border[CSS_BOTTOM] = 3; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 20; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 319; + node->layout.position[CSS_TOP] = -4; + node->layout.position[CSS_LEFT] = -4; + node->layout.dimensions[CSS_WIDTH] = 828; + node->layout.dimensions[CSS_HEIGHT] = 10; } test("Random #77", root_node, root_layout); @@ -5077,70 +5068,37 @@ int main() 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] = 575; - node->style.dimensions[CSS_HEIGHT] = 126; - node->style.margin[CSS_LEFT] = 2; - node->style.margin[CSS_BOTTOM] = 15; - 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_LEFT] = 6; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 2; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_WIDTH] = 539; + node->style.dimensions[CSS_HEIGHT] = 473; + 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_BOTTOM] = -6; + 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.padding[CSS_BOTTOM] = 9; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_RIGHT] = 2; + 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] = 2; - node->layout.dimensions[CSS_WIDTH] = 575; - node->layout.dimensions[CSS_HEIGHT] = 126; + node->layout.position[CSS_TOP] = -2; + node->layout.position[CSS_LEFT] = -1; + node->layout.dimensions[CSS_WIDTH] = 539; + node->layout.dimensions[CSS_HEIGHT] = 473; } test("Random #78", 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.dimensions[CSS_WIDTH] = 532; - node->style.dimensions[CSS_HEIGHT] = 765; - 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_LEFT] = 3; - 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_TOP] = 11; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_TOP] = 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] = -11; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 532; - node->layout.dimensions[CSS_HEIGHT] = 765; - } - - test("Random #79", root_node, root_layout); - } - { css_node_t *root_node = new_css_node(); { @@ -5156,6 +5114,42 @@ int main() 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.justify_content = CSS_JUSTIFY_FLEX_START; + node->style.dimensions[CSS_WIDTH] = 746; + node->style.dimensions[CSS_HEIGHT] = 357; + 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; + node->style.padding[CSS_LEFT] = 1; + node->style.padding[CSS_BOTTOM] = 14; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.border[CSS_RIGHT] = 1; + } + + 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] = 746; + node->layout.dimensions[CSS_HEIGHT] = 357; + } + test("Random #80", root_node, root_layout); } @@ -5181,15 +5175,25 @@ int main() 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.dimensions[CSS_HEIGHT] = 459; + node->style.margin[CSS_TOP] = 5; + node->style.margin[CSS_RIGHT] = -1; + node->style.border[CSS_RIGHT] = 3; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_LEFT] = -2; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = 5; + node->layout.position[CSS_LEFT] = -2; + node->layout.dimensions[CSS_WIDTH] = 174; + node->layout.dimensions[CSS_HEIGHT] = 459; } test("Random #82", root_node, root_layout); @@ -5200,34 +5204,28 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 337; - 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] = 12; - 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_TOP] = 18; - node->style.padding[CSS_RIGHT] = 5; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = 1; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_HEIGHT] = 175; + 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.margin[CSS_LEFT] = -5; + node->style.margin[CSS_RIGHT] = 2; + node->style.padding[CSS_TOP] = 5; + node->style.padding[CSS_RIGHT] = 12; + node->style.position[CSS_TOP] = 9; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 9; - node->layout.dimensions[CSS_WIDTH] = 337; - node->layout.dimensions[CSS_HEIGHT] = 24; + node->layout.position[CSS_TOP] = 24; + node->layout.position[CSS_LEFT] = -5; + node->layout.dimensions[CSS_WIDTH] = 183; + node->layout.dimensions[CSS_HEIGHT] = 175; } test("Random #83", root_node, root_layout); @@ -5237,34 +5235,26 @@ int main() 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] = 258; - node->style.dimensions[CSS_HEIGHT] = 480; - 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] = 16; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 9; - node->style.padding[CSS_TOP] = 19; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_HEIGHT] = 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; + node->style.padding[CSS_LEFT] = 8; + node->style.padding[CSS_TOP] = 17; node->style.border[CSS_LEFT] = 3; node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_RIGHT] = 1; } 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] = 258; - node->layout.dimensions[CSS_HEIGHT] = 480; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 0; + node->layout.dimensions[CSS_WIDTH] = 23; + node->layout.dimensions[CSS_HEIGHT] = 31; } test("Random #84", root_node, root_layout); @@ -5274,34 +5264,23 @@ int main() 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 228; - 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_TOP] = 17; - node->style.margin[CSS_RIGHT] = 12; - 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] = 2; - node->style.padding[CSS_RIGHT] = 5; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 1; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.align_items = CSS_ALIGN_STRETCH; + node->style.dimensions[CSS_HEIGHT] = 466; + node->style.margin[CSS_LEFT] = 12; + node->style.margin[CSS_TOP] = -4; + node->style.margin[CSS_BOTTOM] = 0; + node->style.border[CSS_BOTTOM] = 1; node->style.position[CSS_LEFT] = 1; - 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] = 25; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 228; + node->layout.position[CSS_TOP] = -4; + node->layout.position[CSS_LEFT] = 13; + node->layout.dimensions[CSS_WIDTH] = 0; + node->layout.dimensions[CSS_HEIGHT] = 466; } test("Random #85", root_node, root_layout); @@ -5311,20 +5290,23 @@ int main() 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = -1; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.margin[CSS_LEFT] = 18; + node->style.margin[CSS_TOP] = -4; + node->style.padding[CSS_RIGHT] = 19; + node->style.position[CSS_LEFT] = -6; + node->style.position[CSS_TOP] = -5; + node->style.measure = measure; + node->style.measure_context = "small"; } css_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] = 2; + node->layout.position[CSS_TOP] = -9; + node->layout.position[CSS_LEFT] = 12; + node->layout.dimensions[CSS_WIDTH] = 52; + node->layout.dimensions[CSS_HEIGHT] = 18; } test("Random #86", root_node, root_layout); @@ -5335,73 +5317,58 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 279; - node->style.margin[CSS_RIGHT] = 15; - 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_LEFT] = 0; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 3; - init_css_node_children(node, 2); + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.align_items = CSS_ALIGN_FLEX_START; + node->style.margin[CSS_TOP] = 18; + node->style.margin[CSS_RIGHT] = 5; + 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_TOP] = 5; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_TOP] = 2; + node->style.border[CSS_RIGHT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.position[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_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 603; - node->style.dimensions[CSS_HEIGHT] = 409; - node->style.margin[CSS_LEFT] = -3; - 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] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_TOP] = 3; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 32; - 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] = 12; - node->style.margin[CSS_TOP] = 1; + node->style.align_self = CSS_ALIGN_CENTER; + node->style.flex = CSS_FLEX_ONE; + node->style.position_type = CSS_POSITION_ABSOLUTE; + node->style.margin[CSS_LEFT] = 9; + node->style.margin[CSS_TOP] = 19; + node->style.padding[CSS_LEFT] = 17; node->style.padding[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.position[CSS_TOP] = 8; + node->style.padding[CSS_RIGHT] = 17; + node->style.padding[CSS_BOTTOM] = 17; + node->style.padding[CSS_LEFT] = 15; + node->style.border[CSS_RIGHT] = 2; + node->style.position[CSS_LEFT] = 7; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_layout; - node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_TOP] = 22; node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 279; - node->layout.dimensions[CSS_HEIGHT] = 459; - init_css_node_children(node, 2); + node->layout.dimensions[CSS_WIDTH] = 14; + 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] = 4; - node->layout.position[CSS_LEFT] = -171.5; - node->layout.dimensions[CSS_WIDTH] = 603; - node->layout.dimensions[CSS_HEIGHT] = 409; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 419; - node->layout.position[CSS_LEFT] = 112.5; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 17; + node->layout.position[CSS_TOP] = 26; + node->layout.position[CSS_LEFT] = 18; + node->layout.dimensions[CSS_WIDTH] = 134; + node->layout.dimensions[CSS_HEIGHT] = 70; } } @@ -5412,88 +5379,29 @@ int main() 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; - node->style.dimensions[CSS_WIDTH] = 682; - node->style.dimensions[CSS_HEIGHT] = 589; - 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_LEFT] = 9; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_BOTTOM] = 11; - node->style.border[CSS_TOP] = 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 523; - node->style.dimensions[CSS_HEIGHT] = 177; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = -1; - 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_BOTTOM] = 8; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - node->style.position[CSS_TOP] = 9; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 75; - 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] = 13; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_LEFT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 0; - } + node->style.dimensions[CSS_HEIGHT] = 924; + node->style.margin[CSS_LEFT] = 2; + node->style.margin[CSS_TOP] = 5; + node->style.margin[CSS_RIGHT] = -2; + node->style.margin[CSS_BOTTOM] = -9; + node->style.padding[CSS_LEFT] = 19; + node->style.padding[CSS_TOP] = 19; + node->style.padding[CSS_RIGHT] = 19; + node->style.padding[CSS_BOTTOM] = 19; + node->style.padding[CSS_TOP] = 10; + node->style.padding[CSS_BOTTOM] = 5; + node->style.position[CSS_TOP] = 4; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 682; - node->layout.dimensions[CSS_HEIGHT] = 589; - 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] = 24; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 523; - node->layout.dimensions[CSS_HEIGHT] = 177; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 256.5; - node->layout.position[CSS_LEFT] = 30; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 75; - } + node->layout.position[CSS_TOP] = 9; + node->layout.position[CSS_LEFT] = 2; + node->layout.dimensions[CSS_WIDTH] = 209; + node->layout.dimensions[CSS_HEIGHT] = 924; } test("Random #88", root_node, root_layout); @@ -5503,175 +5411,31 @@ int main() 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_HEIGHT] = 632; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = 0; - 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_BOTTOM] = 13; - node->style.position[CSS_TOP] = -3; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = -7; - 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_LEFT] = 10; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 2; - node->style.position[CSS_TOP] = -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->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - 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] = 19; - node->style.margin[CSS_RIGHT] = -1; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 6; - node = &outer_node_2->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 359; - 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] = 10; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_BOTTOM] = -2; - 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_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 2; - node->style.border[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; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 947; - node->style.dimensions[CSS_HEIGHT] = 753; - 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] = 13; - node->style.margin[CSS_TOP] = 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_LEFT] = 17; - node->style.padding[CSS_TOP] = 17; - node->style.padding[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -10; - } - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 924; - node->style.dimensions[CSS_HEIGHT] = 428; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = -9; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = 1; - } + node->style.justify_content = CSS_JUSTIFY_CENTER; + 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_BOTTOM] = -3; + 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_LEFT] = 12; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + 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] = -1; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 1035; - node->layout.dimensions[CSS_HEIGHT] = 632; - 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] = -251; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 1035; - node->layout.dimensions[CSS_HEIGHT] = 426; - 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] = 20; - node->layout.position[CSS_LEFT] = 36; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 13; - node = &outer_node_2->children[1]; - node->layout.position[CSS_TOP] = 56; - node->layout.position[CSS_LEFT] = 21; - node->layout.dimensions[CSS_WIDTH] = 1005; - node->layout.dimensions[CSS_HEIGHT] = 359; - 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] = 20; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 947; - node->layout.dimensions[CSS_HEIGHT] = 753; - } - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 192; - node->layout.position[CSS_LEFT] = 61; - node->layout.dimensions[CSS_WIDTH] = 924; - node->layout.dimensions[CSS_HEIGHT] = 428; - } + node->layout.position[CSS_TOP] = -9; + node->layout.position[CSS_LEFT] = -19; + node->layout.dimensions[CSS_WIDTH] = 18; + node->layout.dimensions[CSS_HEIGHT] = 10; } test("Random #89", root_node, root_layout); @@ -5681,25 +5445,28 @@ int main() 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 511; - node->style.margin[CSS_TOP] = -2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 0; - node->style.padding[CSS_BOTTOM] = 3; + node->style.justify_content = CSS_JUSTIFY_FLEX_END; + node->style.align_items = CSS_ALIGN_FLEX_END; + node->style.dimensions[CSS_HEIGHT] = 819; + 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_TOP] = -3; + node->style.margin[CSS_BOTTOM] = 5; + node->style.padding[CSS_LEFT] = 18; node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -10; + node->style.border[CSS_RIGHT] = 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] = -2; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 511; - node->layout.dimensions[CSS_HEIGHT] = 5; + node->layout.position[CSS_TOP] = -3; + node->layout.position[CSS_LEFT] = 6; + node->layout.dimensions[CSS_WIDTH] = 23; + node->layout.dimensions[CSS_HEIGHT] = 819; } test("Random #90", root_node, root_layout); @@ -5710,25 +5477,32 @@ int main() { css_node_t *node = root_node; node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 597; - node->style.dimensions[CSS_HEIGHT] = 405; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_TOP] = 8; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + node->style.dimensions[CSS_WIDTH] = 532; + 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_LEFT] = 16; + node->style.margin[CSS_BOTTOM] = 9; + 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] = 8; + node->style.padding[CSS_TOP] = 5; + node->style.position[CSS_LEFT] = 4; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = 597; - node->layout.dimensions[CSS_HEIGHT] = 405; + node->layout.position[CSS_LEFT] = 20; + node->layout.dimensions[CSS_WIDTH] = 532; + node->layout.dimensions[CSS_HEIGHT] = 30; } test("Random #91", root_node, root_layout); @@ -5738,20 +5512,24 @@ int main() 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] = 6; - node->style.padding[CSS_RIGHT] = 14; - node->style.position[CSS_TOP] = -1; + node->style.margin[CSS_LEFT] = 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.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + node->style.position[CSS_LEFT] = 8; + 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] = 5; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = -9; + node->layout.position[CSS_LEFT] = 21; + node->layout.dimensions[CSS_WIDTH] = 1; + node->layout.dimensions[CSS_HEIGHT] = 1; } test("Random #92", root_node, root_layout); @@ -5761,32 +5539,35 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_HEIGHT] = 612; - 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] = -7; + node->style.align_items = CSS_ALIGN_FLEX_END; + node->style.dimensions[CSS_HEIGHT] = 632; + 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.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_TOP] = 0; + node->style.margin[CSS_RIGHT] = 5; + node->style.margin[CSS_BOTTOM] = -6; + node->style.padding[CSS_LEFT] = 1; + node->style.border[CSS_LEFT] = 0; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 0; + node->style.border[CSS_BOTTOM] = 0; + node->style.position[CSS_LEFT] = 4; + node->style.position[CSS_TOP] = 8; + node->style.measure = measure; + node->style.measure_context = "small"; } 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 612; + node->layout.position[CSS_TOP] = 5; + node->layout.position[CSS_LEFT] = 15; + node->layout.dimensions[CSS_WIDTH] = 34; + node->layout.dimensions[CSS_HEIGHT] = 632; } test("Random #93", root_node, root_layout); @@ -5796,23 +5577,34 @@ int main() 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.dimensions[CSS_WIDTH] = 351; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_WIDTH] = 625; node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_TOP] = -10; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 19; - node->style.position[CSS_LEFT] = -3; + node->style.margin[CSS_TOP] = 1; + node->style.margin[CSS_RIGHT] = 1; + node->style.margin[CSS_BOTTOM] = 1; + node->style.margin[CSS_LEFT] = -9; + node->style.margin[CSS_TOP] = 11; + node->style.margin[CSS_RIGHT] = 15; + node->style.margin[CSS_BOTTOM] = 10; + node->style.padding[CSS_LEFT] = 19; + node->style.border[CSS_LEFT] = 3; + node->style.border[CSS_TOP] = 3; + node->style.border[CSS_RIGHT] = 3; + node->style.border[CSS_BOTTOM] = 3; + node->style.border[CSS_TOP] = 2; + node->style.position[CSS_LEFT] = -10; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 351; - node->layout.dimensions[CSS_HEIGHT] = 19; + node->layout.position[CSS_TOP] = 11; + node->layout.position[CSS_LEFT] = -19; + node->layout.dimensions[CSS_WIDTH] = 625; + node->layout.dimensions[CSS_HEIGHT] = 23; } test("Random #94", root_node, root_layout); @@ -5822,29 +5614,15 @@ int main() 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] = -2; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = -2; - node->style.margin[CSS_BOTTOM] = -2; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 0; - 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->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; } 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 33; - node->layout.dimensions[CSS_HEIGHT] = 33; + 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 #95", root_node, root_layout); @@ -5854,23 +5632,34 @@ int main() 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] = 4; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 4; - node->style.margin[CSS_BOTTOM] = 17; - node->style.padding[CSS_LEFT] = 17; - node->style.border[CSS_RIGHT] = 2; + node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; + node->style.dimensions[CSS_WIDTH] = 88; + node->style.dimensions[CSS_HEIGHT] = 657; + node->style.margin[CSS_LEFT] = 3; + node->style.margin[CSS_RIGHT] = -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; + node->style.padding[CSS_LEFT] = 5; + node->style.padding[CSS_TOP] = 0; + node->style.padding[CSS_BOTTOM] = 19; + node->style.border[CSS_LEFT] = 1; + node->style.border[CSS_TOP] = 1; + node->style.border[CSS_RIGHT] = 1; + node->style.border[CSS_BOTTOM] = 1; + node->style.border[CSS_LEFT] = 3; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } 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] = 19; - node->layout.dimensions[CSS_HEIGHT] = 0; + node->layout.position[CSS_TOP] = 0; + node->layout.position[CSS_LEFT] = 3; + node->layout.dimensions[CSS_WIDTH] = 88; + node->layout.dimensions[CSS_HEIGHT] = 657; } test("Random #96", root_node, root_layout); @@ -5880,26 +5669,37 @@ int main() 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] = 432; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = -8; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; + node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + 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] = 18; + node->style.margin[CSS_TOP] = 15; + node->style.margin[CSS_BOTTOM] = 0; + 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_TOP] = 17; + node->style.padding[CSS_BOTTOM] = 3; + node->style.border[CSS_LEFT] = 0; + node->style.border[CSS_TOP] = 0; + node->style.border[CSS_RIGHT] = 0; + node->style.border[CSS_BOTTOM] = 0; + node->style.border[CSS_RIGHT] = 2; node->style.border[CSS_BOTTOM] = 3; - 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] = 17; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 20; - node->layout.dimensions[CSS_HEIGHT] = 432; + node->layout.position[CSS_TOP] = 11; + node->layout.position[CSS_LEFT] = 18; + node->layout.dimensions[CSS_WIDTH] = 14; + node->layout.dimensions[CSS_HEIGHT] = 23; } test("Random #97", root_node, root_layout); @@ -5909,15 +5709,23 @@ int main() 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_FLEX_END; + node->style.dimensions[CSS_WIDTH] = 83; + node->style.margin[CSS_LEFT] = -8; + node->style.margin[CSS_RIGHT] = -1; + node->style.position[CSS_TOP] = -3; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = -3; + node->layout.position[CSS_LEFT] = -8; + node->layout.dimensions[CSS_WIDTH] = 83; + node->layout.dimensions[CSS_HEIGHT] = 36; } test("Random #98", root_node, root_layout); @@ -5927,28886 +5735,36 @@ int main() 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_SPACE_BETWEEN; + node->style.align_items = CSS_ALIGN_CENTER; + node->style.dimensions[CSS_WIDTH] = 240; + 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_LEFT] = 13; + node->style.margin[CSS_TOP] = 6; + node->style.margin[CSS_RIGHT] = -5; + node->style.margin[CSS_BOTTOM] = 8; + node->style.padding[CSS_TOP] = 0; + node->style.border[CSS_LEFT] = 2; + node->style.border[CSS_BOTTOM] = 2; + node->style.position[CSS_TOP] = 9; + node->style.measure = measure; + node->style.measure_context = "loooooooooong with space"; } css_node_t *root_layout = new_css_node(); { css_node_t *node = root_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; + node->layout.position[CSS_TOP] = 15; + node->layout.position[CSS_LEFT] = 13; + node->layout.dimensions[CSS_WIDTH] = 240; + node->layout.dimensions[CSS_HEIGHT] = 20; } test("Random #99", 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.dimensions[CSS_WIDTH] = 122; - node->style.dimensions[CSS_HEIGHT] = 548; - 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.margin[CSS_RIGHT] = -4; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - 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] = -2; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 122; - node->layout.dimensions[CSS_HEIGHT] = 548; - } - - test("Random #100", 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.dimensions[CSS_WIDTH] = 144; - 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_LEFT] = 18; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = 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; - node->style.padding[CSS_LEFT] = 17; - node->style.position[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] = 8; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 144; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #101", 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 #102", 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] = 407; - node->style.margin[CSS_LEFT] = -4; - node->style.margin[CSS_RIGHT] = 3; - 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.border[CSS_TOP] = 0; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_HEIGHT] = 469; - node->style.margin[CSS_LEFT] = -4; - node->style.margin[CSS_TOP] = -3; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 0; - 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] = -8; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 407; - node->layout.dimensions[CSS_HEIGHT] = 486; - 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] = 204; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 469; - } - } - - test("Random #103", 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_WIDTH] = 763; - 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] = 2; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 3; - 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] = 2; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 763; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - 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] = 766; - node->style.dimensions[CSS_HEIGHT] = 881; - node->style.margin[CSS_BOTTOM] = -3; - node->style.padding[CSS_RIGHT] = 4; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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] = 4; - node->layout.position[CSS_LEFT] = 4; - node->layout.dimensions[CSS_WIDTH] = 766; - node->layout.dimensions[CSS_HEIGHT] = 881; - } - - test("Random #105", 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; - node->style.dimensions[CSS_HEIGHT] = 244; - 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] = 4; - node->style.margin[CSS_BOTTOM] = 9; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[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.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - 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] = 12; - 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_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_LEFT] = 3; - node->style.border[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] = 4; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 244; - 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] = -3; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 235; - } - } - - test("Random #106", 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_WIDTH] = 403; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_RIGHT] = 4; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.position[CSS_LEFT] = 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] = 4; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 403; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #109", 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] = -10; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -10; - node->style.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 17; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 23; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #110", 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] = -5; - node->style.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_BOTTOM] = 7; - 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] = -3; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #111", 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 #112", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 652; - 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_BOTTOM] = -3; - 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_TOP] = 12; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.position[CSS_LEFT] = -5; - 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] = 10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 652; - } - - test("Random #113", 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] = 193; - 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_BOTTOM] = -8; - 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_LEFT] = 2; - node->style.padding[CSS_TOP] = 11; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 819; - node->style.dimensions[CSS_HEIGHT] = 130; - 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] = 8; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 17; - 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] = -8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 193; - node->layout.dimensions[CSS_HEIGHT] = 142; - 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] = 10; - node->layout.position[CSS_LEFT] = -310; - node->layout.dimensions[CSS_WIDTH] = 819; - node->layout.dimensions[CSS_HEIGHT] = 130; - } - } - - test("Random #114", 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] = 13; - node->style.margin[CSS_TOP] = 13; - node->style.margin[CSS_RIGHT] = 13; - node->style.margin[CSS_BOTTOM] = 13; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 9; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 3; - 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] = 13; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #115", 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] = 772; - 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_LEFT] = 1; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = 8; - 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_TOP] = 13; - node->style.padding[CSS_RIGHT] = 6; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 377; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_BOTTOM] = 13; - 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_LEFT] = 16; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 280; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 11; - node->style.position[CSS_TOP] = 8; - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_LEFT] = -4; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -1; - node->style.position[CSS_TOP] = 6; - } - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_BOTTOM] = 11; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 2; - node->style.position[CSS_LEFT] = -1; - 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] = -4; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 772; - node->layout.dimensions[CSS_HEIGHT] = 346; - 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] = 189; - node->layout.dimensions[CSS_WIDTH] = 377; - node->layout.dimensions[CSS_HEIGHT] = 293; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 280; - 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] = 11; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 316; - node->layout.position[CSS_LEFT] = 24; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - } - - test("Random #116", 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] = 648; - node->style.dimensions[CSS_HEIGHT] = 69; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = -8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - 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] = -15; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 648; - node->layout.dimensions[CSS_HEIGHT] = 69; - } - - test("Random #117", 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] = 634; - node->style.margin[CSS_LEFT] = -6; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - 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_LEFT] = 12; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 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] = 8; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 634; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #118", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 194; - node->style.dimensions[CSS_HEIGHT] = 848; - 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_BOTTOM] = 16; - 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] = 2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_TOP] = 2; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 2; - 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] = -1; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 194; - node->layout.dimensions[CSS_HEIGHT] = 848; - 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] = 180; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #119", 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.dimensions[CSS_WIDTH] = 294; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = -6; - 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.padding[CSS_TOP] = 5; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 0; - 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] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 294; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #120", 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] = 188; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - node->style.border[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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 188; - } - - test("Random #121", 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] = 484; - node->style.dimensions[CSS_HEIGHT] = 352; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 3; - 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] = 484; - node->layout.dimensions[CSS_HEIGHT] = 352; - } - - test("Random #122", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -4; - 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_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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #123", 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 #124", 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_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 7; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 89; - 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_LEFT] = 10; - node->style.margin[CSS_RIGHT] = 14; - 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_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] = 10; - node->layout.dimensions[CSS_WIDTH] = 89; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - 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_END; - 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_LEFT] = 0; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 7; - 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] = -16; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #127", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 2; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 850; - 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_BOTTOM] = 16; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 850; - 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 855; - 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_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 1; - 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] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #130", 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] = 472; - node->style.margin[CSS_LEFT] = -2; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_LEFT] = 3; - 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 472; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #132", 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] = 811; - 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] = 1; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 811; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 18; - 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_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 9; - 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_TOP] = 5; - 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] = 8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #134", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 366; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_HEIGHT] = 366; - } - - test("Random #135", 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 #136", 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.dimensions[CSS_WIDTH] = 577; - 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.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = -3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 577; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 779; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_RIGHT] = 17; - 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] = 1; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 779; - } - - test("Random #138", 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 #139", 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_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 512; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = 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] = 7; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 512; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #140", 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 #141", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 240; - 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] = 11; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 17; - 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] = -7; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 240; - } - - test("Random #142", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 10; - 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] = -8; - 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] = -1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #143", 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 #144", 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] = 982; - node->style.dimensions[CSS_HEIGHT] = 365; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_BOTTOM] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 982; - node->layout.dimensions[CSS_HEIGHT] = 365; - } - - test("Random #145", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 262; - node->style.dimensions[CSS_HEIGHT] = 820; - 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_BOTTOM] = 15; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_CENTER; - 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] = 6; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 0; - 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] = -1; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 262; - node->layout.dimensions[CSS_HEIGHT] = 820; - 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] = 27; - node->layout.position[CSS_LEFT] = 126.5; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #146", 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] = 861; - 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] = -4; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 18; - 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] = -12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 861; - } - - test("Random #147", 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] = 990; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[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] = 990; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #148", 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.dimensions[CSS_HEIGHT] = 626; - 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_TOP] = -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; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 21; - node->layout.dimensions[CSS_HEIGHT] = 626; - } - - test("Random #149", 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 #150", 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 #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_FLEX_END; - node->style.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_TOP] = -3; - 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] = 4; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -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_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - 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.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 17; - 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] = -3; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 62; - node->layout.dimensions[CSS_HEIGHT] = 70; - 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] = 24; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #152", 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 #153", 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.dimensions[CSS_WIDTH] = 948; - 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.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 948; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #154", 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 #155", 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 #156", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 936; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_BOTTOM] = 4; - 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_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_BOTTOM] = 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 936; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #157", 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 #158", 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] = 131; - 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] = 6; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_BOTTOM] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 131; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #159", 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 #160", 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.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 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_TOP] = 8; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #161", 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 #162", 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 #163", 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_STRETCH; - 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] = 2; - 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] = 7; - node->layout.position[CSS_LEFT] = 2; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #165", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 854; - 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] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 12; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 854; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #166", 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_HEIGHT] = 658; - 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] = 17; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 11; - 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->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 1; - 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->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_BOTTOM] = 15; - 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] = -4; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 95; - node->layout.dimensions[CSS_HEIGHT] = 658; - 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] = 31; - node->layout.dimensions[CSS_WIDTH] = 58; - node->layout.dimensions[CSS_HEIGHT] = 627; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 588; - } - } - } - - test("Random #167", 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 #168", 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 #169", 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.align_items = CSS_ALIGN_STRETCH; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 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] = -6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #170", 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] = 99; - node->style.dimensions[CSS_HEIGHT] = 344; - node->style.margin[CSS_TOP] = 2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 460; - 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_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = -4; - 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] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 99; - node->layout.dimensions[CSS_HEIGHT] = 344; - 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] = 47.5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 460; - 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] = 1; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 401; - node->style.margin[CSS_TOP] = 12; - 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_TOP] = 5; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 185; - node->style.dimensions[CSS_HEIGHT] = 789; - 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.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 401; - node->layout.dimensions[CSS_HEIGHT] = 803; - 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] = 185; - node->layout.dimensions[CSS_HEIGHT] = 789; - } - } - - test("Random #172", 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; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 213; - 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_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; - node->style.position[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] = -8; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 213; - } - - test("Random #173", 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.dimensions[CSS_WIDTH] = 970; - node->style.dimensions[CSS_HEIGHT] = 552; - 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_LEFT] = 15; - 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.border[CSS_RIGHT] = 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] = 8; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 970; - node->layout.dimensions[CSS_HEIGHT] = 552; - } - - test("Random #174", 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 #175", 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 #176", 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.dimensions[CSS_WIDTH] = 73; - node->style.dimensions[CSS_HEIGHT] = 315; - 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 14; - 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] = 4; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 315; - } - - 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 522; - node->style.dimensions[CSS_HEIGHT] = 333; - 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] = 16; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 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] = 5; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 522; - node->layout.dimensions[CSS_HEIGHT] = 333; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - 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] = 14; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #180", 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.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 5; - 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] = 6; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #181", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 849; - node->style.dimensions[CSS_HEIGHT] = 51; - 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_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - 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] = 21; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 849; - node->layout.dimensions[CSS_HEIGHT] = 51; - } - - test("Random #182", 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_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_TOP] = 3; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #183", 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.dimensions[CSS_HEIGHT] = 275; - node->style.margin[CSS_LEFT] = -4; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 275; - } - - 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_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 0; - 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_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 694; - 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_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - 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.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = -2; - node->layout.dimensions[CSS_WIDTH] = 971; - node->layout.dimensions[CSS_HEIGHT] = 937; - 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] = 127.5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 694; - } - } - - test("Random #185", 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 #186", 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] = 521; - node->style.margin[CSS_LEFT] = -5; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 18; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[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] = -5; - node->layout.dimensions[CSS_WIDTH] = 521; - node->layout.dimensions[CSS_HEIGHT] = 27; - } - - test("Random #187", 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_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.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[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] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #188", 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_END; - node->style.dimensions[CSS_WIDTH] = 644; - 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.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 644; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #190", 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; - node->style.dimensions[CSS_HEIGHT] = 572; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 572; - } - - test("Random #191", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 32; - 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] = 19; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 3; - 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] = 3; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #192", 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.dimensions[CSS_WIDTH] = 336; - node->style.dimensions[CSS_HEIGHT] = 666; - 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.margin[CSS_RIGHT] = -9; - 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.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 4; - 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] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 336; - node->layout.dimensions[CSS_HEIGHT] = 666; - } - - test("Random #193", 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.dimensions[CSS_WIDTH] = 45; - 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_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_TOP] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 522; - 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] = 10; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_BOTTOM] = 3; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 788; - node->style.dimensions[CSS_HEIGHT] = 288; - 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_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 45; - node->layout.dimensions[CSS_HEIGHT] = 547; - 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 522; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 265; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 288; - } - } - - 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] = 690; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = -10; - node->style.position[CSS_LEFT] = 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] = 20; - node->layout.dimensions[CSS_WIDTH] = 690; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 388; - 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] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 388; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #196", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 951; - 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] = 13; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = 1; - 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.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 450; - node->style.dimensions[CSS_HEIGHT] = 863; - 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; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 12; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 453; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 450; - node->layout.dimensions[CSS_HEIGHT] = 863; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 887; - node->layout.position[CSS_LEFT] = 224; - node->layout.dimensions[CSS_WIDTH] = 25; - 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] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - } - - test("Random #197", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 350; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_RIGHT] = -9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[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] = 10; - node->layout.dimensions[CSS_WIDTH] = 350; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #200", 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.dimensions[CSS_WIDTH] = 326; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_RIGHT] = 9; - 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.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] = 7; - node->layout.dimensions[CSS_WIDTH] = 326; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #201", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 680; - 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] = 11; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 680; - } - - test("Random #202", 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_WIDTH] = 146; - node->style.dimensions[CSS_HEIGHT] = 252; - 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] = 15; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 18; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 146; - node->layout.dimensions[CSS_HEIGHT] = 252; - } - - test("Random #203", 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] = 436; - node->style.dimensions[CSS_HEIGHT] = 18; - 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.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - 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] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 9; - 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] = 13; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 436; - node->layout.dimensions[CSS_HEIGHT] = 23; - } - - test("Random #204", 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 #205", 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 #206", 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 127; - node->style.dimensions[CSS_HEIGHT] = 85; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 853; - node->style.dimensions[CSS_HEIGHT] = 222; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 5; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = 127; - node->layout.dimensions[CSS_HEIGHT] = 85; - 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] = 853; - node->layout.dimensions[CSS_HEIGHT] = 222; - } - } - - 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.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_TOP] = 2; - } - - 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] = 4; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #208", 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 #209", 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_END; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 208; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 1; - node->style.position[CSS_LEFT] = -1; - 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] = 13; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 208; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #210", 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_STRETCH; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = 2; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 4; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #211", 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_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 14; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = 0; - node->layout.position[CSS_LEFT] = -18; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #212", 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 #213", 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_END; - 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_RIGHT] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 1; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - 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_FLEX_START; - 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.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -2; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 976; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.position[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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_RIGHT] = 10; - 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] = 10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 976; - node->layout.dimensions[CSS_HEIGHT] = 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->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #215", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 699; - node->style.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = -2; - 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_LEFT] = 17; - node->style.padding[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_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 200; - 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] = 13; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 19; - 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] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 699; - node->layout.dimensions[CSS_HEIGHT] = 36; - 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] = 200; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #216", 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] = -3; - node->style.margin[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -4; - 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #217", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 343; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - 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] = 16; - node->style.border[CSS_TOP] = 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] = 1; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 343; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #218", 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_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 19; - 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_TOP] = 14; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #219", 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_SPACE_AROUND; - node->style.dimensions[CSS_HEIGHT] = 392; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 392; - } - - test("Random #220", 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] = 607; - 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.margin[CSS_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #221", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 254; - 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_TOP] = 3; - node->style.margin[CSS_RIGHT] = -4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 254; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #222", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_BOTTOM] = -6; - 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.padding[CSS_TOP] = 18; - node->style.border[CSS_RIGHT] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #223", 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.dimensions[CSS_WIDTH] = 444; - node->style.dimensions[CSS_HEIGHT] = 513; - node->style.margin[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - 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] = 444; - node->layout.dimensions[CSS_HEIGHT] = 513; - } - - test("Random #224", 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 #225", 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] = 147; - node->style.dimensions[CSS_HEIGHT] = 50; - 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_LEFT] = 2; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - 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] = 7; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 147; - node->layout.dimensions[CSS_HEIGHT] = 50; - } - - test("Random #226", 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.dimensions[CSS_WIDTH] = 618; - node->style.dimensions[CSS_HEIGHT] = 816; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[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] = 5; - node->layout.dimensions[CSS_WIDTH] = 618; - node->layout.dimensions[CSS_HEIGHT] = 816; - } - - test("Random #227", 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 #228", 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 704; - node->style.dimensions[CSS_HEIGHT] = 787; - node->style.margin[CSS_LEFT] = -10; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 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] = -18; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 704; - node->layout.dimensions[CSS_HEIGHT] = 787; - } - - test("Random #229", 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] = 11; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 19; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #230", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 478; - node->style.dimensions[CSS_HEIGHT] = 358; - 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] = 6; - node->style.margin[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = -10; - 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_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 896; - 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.margin[CSS_LEFT] = -7; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = -6; - 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_BOTTOM] = 17; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_END; - 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_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 14; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_LEFT] = -5; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 7; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 478; - node->layout.dimensions[CSS_HEIGHT] = 358; - 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] = 28; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 37; - node->layout.dimensions[CSS_HEIGHT] = 896; - 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] = 858; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 39; - node->layout.dimensions[CSS_HEIGHT] = 37; - } - } - - test("Random #231", 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] = 3; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #232", 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] = 123; - node->style.dimensions[CSS_HEIGHT] = 559; - 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] = -6; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[CSS_TOP] = -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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 879; - node->style.dimensions[CSS_HEIGHT] = 545; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 2; - 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] = -14; - node->layout.position[CSS_LEFT] = -12; - node->layout.dimensions[CSS_WIDTH] = 123; - node->layout.dimensions[CSS_HEIGHT] = 559; - 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.5; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 879; - node->layout.dimensions[CSS_HEIGHT] = 545; - } - } - - 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 930; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 930; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #235", 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] = 489; - node->style.dimensions[CSS_HEIGHT] = 913; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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.dimensions[CSS_WIDTH] = 334; - node->style.dimensions[CSS_HEIGHT] = 127; - 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] = 19; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 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_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 12; - node->style.border[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] = -6; - node->layout.dimensions[CSS_WIDTH] = 489; - node->layout.dimensions[CSS_HEIGHT] = 913; - 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] = 21; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 334; - node->layout.dimensions[CSS_HEIGHT] = 127; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - } - - test("Random #236", 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 #237", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 408; - 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.margin[CSS_TOP] = 5; - 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_LEFT] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 0; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 408; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #238", 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 #239", 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 #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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 744; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -9; - 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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 920; - 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.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -8; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - 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] = 0; - node->layout.position[CSS_LEFT] = -16; - node->layout.dimensions[CSS_WIDTH] = 744; - 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] = 6; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 920; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - } - - test("Random #242", 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.dimensions[CSS_HEIGHT] = 640; - node->style.padding[CSS_BOTTOM] = 8; - 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] = 640; - } - - test("Random #243", 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_HEIGHT] = 273; - 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_TOP] = -5; - node->style.padding[CSS_LEFT] = 5; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 873; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - 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] = -4; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 273; - 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] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 873; - } - } - - test("Random #244", 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.dimensions[CSS_WIDTH] = 799; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 799; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #245", 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_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 40; - 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.margin[CSS_RIGHT] = 16; - 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.padding[CSS_TOP] = 9; - 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] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 40; - } - - test("Random #246", 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 #247", 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.dimensions[CSS_WIDTH] = 659; - node->style.dimensions[CSS_HEIGHT] = 79; - 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] = 11; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 9; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.padding[CSS_RIGHT] = 8; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 659; - node->layout.dimensions[CSS_HEIGHT] = 79; - 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] = 23; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - test("Random #248", 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 #249", 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 #250", 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_CENTER; - 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_BOTTOM] = 11; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[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] = 6; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #251", 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 #252", 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_END; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -8; - 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_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 3; - 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] = -5; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #253", 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] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #254", 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] = 3; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 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] = 5; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #255", 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.dimensions[CSS_WIDTH] = 188; - node->style.dimensions[CSS_HEIGHT] = 828; - 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] = 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] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 188; - node->layout.dimensions[CSS_HEIGHT] = 828; - } - - test("Random #256", 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.dimensions[CSS_HEIGHT] = 269; - 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] = 3; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 269; - } - - test("Random #257", 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] = 389; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_RIGHT] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 389; - } - - test("Random #258", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 531; - node->style.dimensions[CSS_HEIGHT] = 122; - 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_TOP] = 9; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 1; - 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] = 10; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 531; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #259", 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] = 3; - node->style.margin[CSS_BOTTOM] = -2; - 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_TOP] = 8; - node->style.position[CSS_LEFT] = 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] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #260", 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 #261", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.dimensions[CSS_HEIGHT] = 621; - node->style.margin[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] = 118; - node->layout.dimensions[CSS_HEIGHT] = 621; - } - - test("Random #262", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 625; - 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] = 18; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 625; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #263", 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 #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_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 69; - node->style.dimensions[CSS_HEIGHT] = 64; - 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.margin[CSS_RIGHT] = -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; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 1; - 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] = -7; - node->layout.position[CSS_LEFT] = -17; - node->layout.dimensions[CSS_WIDTH] = 69; - node->layout.dimensions[CSS_HEIGHT] = 64; - } - - 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_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 256; - node->style.dimensions[CSS_HEIGHT] = 614; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = -6; - 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.border[CSS_RIGHT] = 1; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 500; - node->style.dimensions[CSS_HEIGHT] = 437; - 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_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 256; - node->layout.dimensions[CSS_HEIGHT] = 614; - 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] = 86.5; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 500; - node->layout.dimensions[CSS_HEIGHT] = 437; - } - } - - test("Random #266", 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 #267", 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] = -4; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[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] = 13; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #268", 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 #269", 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_HEIGHT] = 756; - 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.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -1; - 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->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 756; - } - - test("Random #270", 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.margin[CSS_BOTTOM] = -9; - 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_LEFT] = 5; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = 20; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #271", 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_START; - node->style.dimensions[CSS_WIDTH] = 753; - node->style.dimensions[CSS_HEIGHT] = 842; - node->style.margin[CSS_LEFT] = 17; - 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.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 753; - node->layout.dimensions[CSS_HEIGHT] = 842; - } - - test("Random #272", 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.margin[CSS_TOP] = -1; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = -1; - node->style.margin[CSS_LEFT] = -4; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_BOTTOM] = 0; - 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->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 7; - 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] = 8; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 30; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #274", 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] = 272; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 272; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #275", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 163; - node->style.dimensions[CSS_HEIGHT] = 714; - 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_RIGHT] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 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] = 14; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 163; - node->layout.dimensions[CSS_HEIGHT] = 714; - } - - test("Random #276", 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_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 351; - node->style.dimensions[CSS_HEIGHT] = 777; - 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] = 7; - node->style.margin[CSS_RIGHT] = -3; - 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_RIGHT] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 351; - node->layout.dimensions[CSS_HEIGHT] = 777; - } - - test("Random #277", 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_END; - node->style.dimensions[CSS_WIDTH] = 5; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 15; - 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] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - 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_CENTER; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_BOTTOM] = -6; - 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.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - 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_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #280", 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 #281", 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] = 638; - 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_TOP] = -6; - 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_LEFT] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 638; - } - - test("Random #282", 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; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 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] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #283", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 434; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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] = -5; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 434; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #284", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 198; - 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_TOP] = 5; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 198; - } - - 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.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 249; - node->style.dimensions[CSS_HEIGHT] = 420; - 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.margin[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -10; - 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] = 27; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 249; - node->layout.dimensions[CSS_HEIGHT] = 420; - } - - test("Random #286", 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 #287", 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_WIDTH] = 536; - node->style.dimensions[CSS_HEIGHT] = 147; - 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_RIGHT] = 7; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 13; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 13; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 536; - node->layout.dimensions[CSS_HEIGHT] = 147; - } - - test("Random #288", 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 #289", 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.dimensions[CSS_WIDTH] = 964; - node->style.dimensions[CSS_HEIGHT] = 625; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -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] = -1; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 964; - node->layout.dimensions[CSS_HEIGHT] = 625; - } - - test("Random #290", 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] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #291", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 281; - 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_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 15; - 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_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_TOP] = 0; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 923; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = -5; - node->style.position[CSS_TOP] = -9; - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = -7; - 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] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 281; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 9; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = -17; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - test("Random #292", 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] = 288; - node->style.dimensions[CSS_HEIGHT] = 423; - 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] = 15; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 288; - node->layout.dimensions[CSS_HEIGHT] = 423; - } - - test("Random #293", 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_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 120; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_RIGHT] = 6; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 177; - node->style.margin[CSS_LEFT] = -3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 120; - node->layout.dimensions[CSS_HEIGHT] = 38; - 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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 177; - } - } - - test("Random #294", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 419; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 7; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 419; - 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] = 24; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #295", 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_WIDTH] = 682; - node->style.dimensions[CSS_HEIGHT] = 390; - node->style.margin[CSS_LEFT] = -10; - 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_BOTTOM] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 682; - node->layout.dimensions[CSS_HEIGHT] = 390; - } - - test("Random #296", 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] = 687; - 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_LEFT] = 10; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -8; - 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] = 9; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 687; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #297", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 179; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 0; - 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] = 2; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 3; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 179; - } - - test("Random #298", 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 #299", 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] = 607; - 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_LEFT] = -4; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 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] = -4; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #300", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 726; - node->style.dimensions[CSS_HEIGHT] = 702; - node->style.margin[CSS_TOP] = 19; - 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.padding[CSS_TOP] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 726; - node->layout.dimensions[CSS_HEIGHT] = 702; - } - - test("Random #301", 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.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 19; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -4; - 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] = -8; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #302", 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 #303", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 2; - node->style.dimensions[CSS_HEIGHT] = 221; - 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] = -10; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 15; - 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] = 4; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 221; - } - - test("Random #304", 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 #305", 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 #306", 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_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 486; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = -5; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 4; - 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] = 11; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 486; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #307", 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_CENTER; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.margin[CSS_BOTTOM] = 13; - 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_LEFT] = 15; - node->style.position[CSS_LEFT] = 0; - 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] = -10; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #308", 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; - 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] = 2; - node->style.margin[CSS_TOP] = 11; - 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] = 6; - node->layout.position[CSS_LEFT] = 2; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - 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; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 5; - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 493; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 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] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 493; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #311", 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] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 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] = -1; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #312", 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 #313", 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 #314", 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.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 69; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = -8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - 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] = 1; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 69; - } - } - - test("Random #315", 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] = -6; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - 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_LEFT] = 12; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 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] = 8; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #316", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 194; - node->style.dimensions[CSS_HEIGHT] = 848; - 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_BOTTOM] = 16; - 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] = 2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_TOP] = 2; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 2; - 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] = -1; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 194; - node->layout.dimensions[CSS_HEIGHT] = 848; - 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] = 180; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #317", 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.dimensions[CSS_WIDTH] = 294; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = -6; - 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.padding[CSS_TOP] = 5; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 0; - 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] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 294; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #318", 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] = 188; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - node->style.border[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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 188; - } - - 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 484; - node->style.dimensions[CSS_HEIGHT] = 352; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 3; - 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] = 484; - node->layout.dimensions[CSS_HEIGHT] = 352; - } - - test("Random #320", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -4; - 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_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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #321", 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 #322", 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_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 7; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #323", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 89; - 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_LEFT] = 10; - node->style.margin[CSS_RIGHT] = 14; - 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_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] = 10; - node->layout.dimensions[CSS_WIDTH] = 89; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #324", 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] = -3; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = -3; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 7; - 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] = -16; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #325", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #326", 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] = 850; - 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_BOTTOM] = 16; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 850; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #327", 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] = 855; - 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_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 1; - 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] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #328", 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] = 472; - node->style.margin[CSS_LEFT] = -2; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_LEFT] = 3; - 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 472; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #330", 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] = 811; - 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] = 1; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 811; - 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; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.dimensions[CSS_WIDTH] = 18; - 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_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 9; - 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_TOP] = 5; - 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] = 8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #332", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 366; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_HEIGHT] = 366; - } - - test("Random #333", 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 #334", 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.dimensions[CSS_WIDTH] = 577; - 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.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = -3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 577; - 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_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 779; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_RIGHT] = 17; - 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] = 1; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 779; - } - - test("Random #336", 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 #337", 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_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 512; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = 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] = 7; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 512; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 240; - 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] = 11; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 17; - 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] = -7; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 240; - } - - test("Random #340", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 10; - 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] = -8; - 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] = -1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #341", 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 #342", 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] = 982; - node->style.dimensions[CSS_HEIGHT] = 365; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_BOTTOM] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 982; - node->layout.dimensions[CSS_HEIGHT] = 365; - } - - test("Random #343", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 262; - node->style.dimensions[CSS_HEIGHT] = 820; - 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_BOTTOM] = 15; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_CENTER; - 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] = 6; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 0; - 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] = -1; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 262; - node->layout.dimensions[CSS_HEIGHT] = 820; - 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] = 27; - node->layout.position[CSS_LEFT] = 126.5; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #344", 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] = 861; - 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] = -4; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 18; - 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] = -12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 861; - } - - test("Random #345", 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] = 990; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[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] = 990; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #346", 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.dimensions[CSS_HEIGHT] = 626; - 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_TOP] = -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; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 21; - node->layout.dimensions[CSS_HEIGHT] = 626; - } - - test("Random #347", 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 #348", 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 #349", 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.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_TOP] = -3; - 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] = 4; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -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_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - 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.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 17; - 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] = -3; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 62; - node->layout.dimensions[CSS_HEIGHT] = 70; - 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] = 24; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #350", 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 #351", 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.dimensions[CSS_WIDTH] = 948; - 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.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 948; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #352", 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 #353", 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 #354", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 936; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_BOTTOM] = 4; - 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_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_BOTTOM] = 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 936; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 131; - 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] = 6; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_BOTTOM] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 131; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #357", 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 #358", 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.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 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_TOP] = 8; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #359", 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 #360", 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 #361", 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_STRETCH; - 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] = 2; - 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] = 7; - node->layout.position[CSS_LEFT] = 2; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #363", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 854; - 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] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 12; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 854; - 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 658; - 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] = 17; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 11; - 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->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 1; - 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->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_BOTTOM] = 15; - 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] = -4; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 95; - node->layout.dimensions[CSS_HEIGHT] = 658; - 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] = 31; - node->layout.dimensions[CSS_WIDTH] = 58; - node->layout.dimensions[CSS_HEIGHT] = 627; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 588; - } - } - } - - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #367", 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.align_items = CSS_ALIGN_STRETCH; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 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] = -6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #368", 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] = 99; - node->style.dimensions[CSS_HEIGHT] = 344; - node->style.margin[CSS_TOP] = 2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 460; - 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_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = -4; - 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] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 99; - node->layout.dimensions[CSS_HEIGHT] = 344; - 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] = 47.5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 460; - 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] = 1; - node->layout.position[CSS_LEFT] = -4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 401; - node->style.margin[CSS_TOP] = 12; - 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_TOP] = 5; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 185; - node->style.dimensions[CSS_HEIGHT] = 789; - 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.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 401; - node->layout.dimensions[CSS_HEIGHT] = 803; - 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] = 185; - node->layout.dimensions[CSS_HEIGHT] = 789; - } - } - - test("Random #370", 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; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 213; - 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_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; - node->style.position[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] = -8; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 213; - } - - test("Random #371", 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.dimensions[CSS_WIDTH] = 970; - node->style.dimensions[CSS_HEIGHT] = 552; - 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_LEFT] = 15; - 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.border[CSS_RIGHT] = 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] = 8; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 970; - node->layout.dimensions[CSS_HEIGHT] = 552; - } - - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #374", 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.dimensions[CSS_WIDTH] = 73; - node->style.dimensions[CSS_HEIGHT] = 315; - 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 14; - 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] = 4; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 315; - } - - 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_ROW; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 522; - node->style.dimensions[CSS_HEIGHT] = 333; - 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] = 16; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 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] = 5; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 522; - node->layout.dimensions[CSS_HEIGHT] = 333; - } - - test("Random #376", 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 #377", 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] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #378", 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.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 5; - 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] = 6; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #379", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 849; - node->style.dimensions[CSS_HEIGHT] = 51; - 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_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - 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] = 21; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 849; - node->layout.dimensions[CSS_HEIGHT] = 51; - } - - test("Random #380", 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_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_TOP] = 3; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #381", 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.dimensions[CSS_HEIGHT] = 275; - node->style.margin[CSS_LEFT] = -4; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 275; - } - - test("Random #382", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 0; - 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_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 694; - 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_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - 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.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = -2; - node->layout.dimensions[CSS_WIDTH] = 971; - node->layout.dimensions[CSS_HEIGHT] = 937; - 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] = 127.5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 694; - } - } - - test("Random #383", 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 #384", 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] = 521; - node->style.margin[CSS_LEFT] = -5; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 18; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[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] = -5; - node->layout.dimensions[CSS_WIDTH] = 521; - node->layout.dimensions[CSS_HEIGHT] = 27; - } - - test("Random #385", 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_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.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[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] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #386", 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_END; - node->style.dimensions[CSS_WIDTH] = 644; - 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.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 644; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #388", 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; - node->style.dimensions[CSS_HEIGHT] = 572; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 572; - } - - test("Random #389", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 32; - 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] = 19; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 3; - 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] = 3; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #390", 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.dimensions[CSS_WIDTH] = 336; - node->style.dimensions[CSS_HEIGHT] = 666; - 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.margin[CSS_RIGHT] = -9; - 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.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 4; - 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] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 336; - node->layout.dimensions[CSS_HEIGHT] = 666; - } - - test("Random #391", 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.dimensions[CSS_WIDTH] = 45; - 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_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_TOP] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 522; - 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] = 10; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_BOTTOM] = 3; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 788; - node->style.dimensions[CSS_HEIGHT] = 288; - 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_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 45; - node->layout.dimensions[CSS_HEIGHT] = 547; - 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 522; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 265; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 288; - } - } - - test("Random #392", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 690; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = -10; - node->style.position[CSS_LEFT] = 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] = 20; - node->layout.dimensions[CSS_WIDTH] = 690; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 388; - 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] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 388; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #394", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 951; - 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] = 13; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = 1; - 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.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 450; - node->style.dimensions[CSS_HEIGHT] = 863; - 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; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 12; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 453; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 450; - node->layout.dimensions[CSS_HEIGHT] = 863; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 887; - node->layout.position[CSS_LEFT] = 224; - node->layout.dimensions[CSS_WIDTH] = 25; - 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] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - } - - test("Random #395", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 350; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_RIGHT] = -9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[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] = 10; - node->layout.dimensions[CSS_WIDTH] = 350; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #396", 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 #397", 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 #398", 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.dimensions[CSS_WIDTH] = 326; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_RIGHT] = 9; - 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.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] = 7; - node->layout.dimensions[CSS_WIDTH] = 326; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #399", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 680; - 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] = 11; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 680; - } - - test("Random #400", 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_WIDTH] = 146; - node->style.dimensions[CSS_HEIGHT] = 252; - 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] = 15; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 18; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 146; - node->layout.dimensions[CSS_HEIGHT] = 252; - } - - test("Random #401", 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] = 436; - node->style.dimensions[CSS_HEIGHT] = 18; - 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.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - 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] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 9; - 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] = 13; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 436; - node->layout.dimensions[CSS_HEIGHT] = 23; - } - - test("Random #402", 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 #403", 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 #404", 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 127; - node->style.dimensions[CSS_HEIGHT] = 85; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 853; - node->style.dimensions[CSS_HEIGHT] = 222; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 5; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = 127; - node->layout.dimensions[CSS_HEIGHT] = 85; - 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] = 853; - node->layout.dimensions[CSS_HEIGHT] = 222; - } - } - - test("Random #405", 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_CENTER; - 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.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_TOP] = 2; - } - - 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] = 4; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #406", 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 #407", 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_END; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 208; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 1; - node->style.position[CSS_LEFT] = -1; - 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] = 13; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 208; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - 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_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = 2; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 4; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #409", 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_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 14; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = 0; - node->layout.position[CSS_LEFT] = -18; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #410", 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 #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_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - 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_RIGHT] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 1; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #412", 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_LEFT] = 15; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 15; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -2; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 976; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.position[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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_RIGHT] = 10; - 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] = 10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 976; - node->layout.dimensions[CSS_HEIGHT] = 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->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #413", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 699; - node->style.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = -2; - 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_LEFT] = 17; - node->style.padding[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_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 200; - 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] = 13; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 19; - 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] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 699; - node->layout.dimensions[CSS_HEIGHT] = 36; - 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] = 200; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #414", 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] = -3; - node->style.margin[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -4; - 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #415", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 343; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - 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] = 16; - node->style.border[CSS_TOP] = 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] = 1; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 343; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #416", 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_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 19; - 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_TOP] = 14; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #417", 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_SPACE_AROUND; - node->style.dimensions[CSS_HEIGHT] = 392; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 392; - } - - 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] = 607; - 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.margin[CSS_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #419", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 254; - 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_TOP] = 3; - node->style.margin[CSS_RIGHT] = -4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 254; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #420", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_BOTTOM] = -6; - 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.padding[CSS_TOP] = 18; - node->style.border[CSS_RIGHT] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - 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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 444; - node->style.dimensions[CSS_HEIGHT] = 513; - node->style.margin[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - 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] = 444; - node->layout.dimensions[CSS_HEIGHT] = 513; - } - - test("Random #422", 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 #423", 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] = 147; - node->style.dimensions[CSS_HEIGHT] = 50; - 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_LEFT] = 2; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - 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] = 7; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 147; - node->layout.dimensions[CSS_HEIGHT] = 50; - } - - test("Random #424", 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.dimensions[CSS_WIDTH] = 618; - node->style.dimensions[CSS_HEIGHT] = 816; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[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] = 5; - node->layout.dimensions[CSS_WIDTH] = 618; - node->layout.dimensions[CSS_HEIGHT] = 816; - } - - test("Random #425", 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 #426", 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 704; - node->style.dimensions[CSS_HEIGHT] = 787; - node->style.margin[CSS_LEFT] = -10; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 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] = -18; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 704; - node->layout.dimensions[CSS_HEIGHT] = 787; - } - - 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_COLUMN; - node->style.margin[CSS_LEFT] = 11; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 19; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #428", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 478; - node->style.dimensions[CSS_HEIGHT] = 358; - 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] = 6; - node->style.margin[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = -10; - 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_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 896; - 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.margin[CSS_LEFT] = -7; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = -6; - 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_BOTTOM] = 17; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_END; - 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_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 14; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_LEFT] = -5; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 7; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 478; - node->layout.dimensions[CSS_HEIGHT] = 358; - 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] = 28; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 37; - node->layout.dimensions[CSS_HEIGHT] = 896; - 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] = 858; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 39; - node->layout.dimensions[CSS_HEIGHT] = 37; - } - } - - test("Random #429", 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] = 3; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #430", 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] = 123; - node->style.dimensions[CSS_HEIGHT] = 559; - 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] = -6; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[CSS_TOP] = -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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 879; - node->style.dimensions[CSS_HEIGHT] = 545; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 2; - 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] = -14; - node->layout.position[CSS_LEFT] = -12; - node->layout.dimensions[CSS_WIDTH] = 123; - node->layout.dimensions[CSS_HEIGHT] = 559; - 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.5; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 879; - node->layout.dimensions[CSS_HEIGHT] = 545; - } - } - - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 930; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 930; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #433", 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] = 489; - node->style.dimensions[CSS_HEIGHT] = 913; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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.dimensions[CSS_WIDTH] = 334; - node->style.dimensions[CSS_HEIGHT] = 127; - 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] = 19; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 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_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 12; - node->style.border[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] = -6; - node->layout.dimensions[CSS_WIDTH] = 489; - node->layout.dimensions[CSS_HEIGHT] = 913; - 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] = 21; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 334; - node->layout.dimensions[CSS_HEIGHT] = 127; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - } - - test("Random #434", 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 #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; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 408; - 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.margin[CSS_TOP] = 5; - 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_LEFT] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 0; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 408; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #436", 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 #437", 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 #438", 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 #439", 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.dimensions[CSS_WIDTH] = 744; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -9; - 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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 920; - 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.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -8; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - 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] = 0; - node->layout.position[CSS_LEFT] = -16; - node->layout.dimensions[CSS_WIDTH] = 744; - 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] = 6; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 920; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - } - - test("Random #440", 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.dimensions[CSS_HEIGHT] = 640; - node->style.padding[CSS_BOTTOM] = 8; - 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] = 640; - } - - test("Random #441", 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_HEIGHT] = 273; - 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_TOP] = -5; - node->style.padding[CSS_LEFT] = 5; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 873; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - 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] = -4; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 273; - 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] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 873; - } - } - - test("Random #442", 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.dimensions[CSS_WIDTH] = 799; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 799; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #443", 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_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 40; - 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.margin[CSS_RIGHT] = 16; - 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.padding[CSS_TOP] = 9; - 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] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 40; - } - - test("Random #444", 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 #445", 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.dimensions[CSS_WIDTH] = 659; - node->style.dimensions[CSS_HEIGHT] = 79; - 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] = 11; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 9; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.padding[CSS_RIGHT] = 8; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 659; - node->layout.dimensions[CSS_HEIGHT] = 79; - 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] = 23; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 9; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #447", 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 #448", 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_CENTER; - 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_BOTTOM] = 11; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[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] = 6; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #449", 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 #450", 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_END; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -8; - 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_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 3; - 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] = -5; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #451", 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] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #452", 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] = 3; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 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] = 5; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #453", 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.dimensions[CSS_WIDTH] = 188; - node->style.dimensions[CSS_HEIGHT] = 828; - 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] = 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] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 188; - node->layout.dimensions[CSS_HEIGHT] = 828; - } - - test("Random #454", 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.dimensions[CSS_HEIGHT] = 269; - 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] = 3; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 269; - } - - test("Random #455", 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] = 389; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_RIGHT] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 389; - } - - test("Random #456", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 531; - node->style.dimensions[CSS_HEIGHT] = 122; - 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_TOP] = 9; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 1; - 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] = 10; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 531; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #457", 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] = 3; - node->style.margin[CSS_BOTTOM] = -2; - 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_TOP] = 8; - node->style.position[CSS_LEFT] = 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] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #458", 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 #459", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.dimensions[CSS_HEIGHT] = 621; - node->style.margin[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] = 118; - node->layout.dimensions[CSS_HEIGHT] = 621; - } - - test("Random #460", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 625; - 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] = 18; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 625; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #461", 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 #462", 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] = 69; - node->style.dimensions[CSS_HEIGHT] = 64; - 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.margin[CSS_RIGHT] = -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; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 1; - 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] = -7; - node->layout.position[CSS_LEFT] = -17; - node->layout.dimensions[CSS_WIDTH] = 69; - node->layout.dimensions[CSS_HEIGHT] = 64; - } - - 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_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 256; - node->style.dimensions[CSS_HEIGHT] = 614; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = -6; - 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.border[CSS_RIGHT] = 1; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 500; - node->style.dimensions[CSS_HEIGHT] = 437; - 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_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 256; - node->layout.dimensions[CSS_HEIGHT] = 614; - 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] = 86.5; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 500; - node->layout.dimensions[CSS_HEIGHT] = 437; - } - } - - test("Random #464", 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 #465", 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] = -4; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[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] = 13; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #466", 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 #467", 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_HEIGHT] = 756; - 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.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -1; - 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->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 756; - } - - test("Random #468", 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.margin[CSS_BOTTOM] = -9; - 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_LEFT] = 5; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = 20; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #469", 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_START; - node->style.dimensions[CSS_WIDTH] = 753; - node->style.dimensions[CSS_HEIGHT] = 842; - node->style.margin[CSS_LEFT] = 17; - 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.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 753; - node->layout.dimensions[CSS_HEIGHT] = 842; - } - - 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_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] = -4; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_BOTTOM] = 0; - 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->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 7; - 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] = 8; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 272; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 272; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #473", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 163; - node->style.dimensions[CSS_HEIGHT] = 714; - 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_RIGHT] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 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] = 14; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 163; - node->layout.dimensions[CSS_HEIGHT] = 714; - } - - test("Random #474", 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_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 351; - node->style.dimensions[CSS_HEIGHT] = 777; - 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] = 7; - node->style.margin[CSS_RIGHT] = -3; - 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_RIGHT] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 351; - node->layout.dimensions[CSS_HEIGHT] = 777; - } - - test("Random #475", 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_END; - node->style.dimensions[CSS_WIDTH] = 5; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 15; - 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] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #476", 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.margin[CSS_BOTTOM] = -6; - 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.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - 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_SPACE_AROUND; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #478", 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 #479", 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] = 638; - 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_TOP] = -6; - 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_LEFT] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 638; - } - - test("Random #480", 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; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 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] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #481", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 434; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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] = -5; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 434; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #482", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 198; - 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_TOP] = 5; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 198; - } - - test("Random #483", 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; - node->style.dimensions[CSS_WIDTH] = 249; - node->style.dimensions[CSS_HEIGHT] = 420; - 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.margin[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -10; - 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] = 27; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 249; - node->layout.dimensions[CSS_HEIGHT] = 420; - } - - 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 536; - node->style.dimensions[CSS_HEIGHT] = 147; - 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_RIGHT] = 7; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 13; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 13; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 536; - node->layout.dimensions[CSS_HEIGHT] = 147; - } - - test("Random #486", 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 #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; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 964; - node->style.dimensions[CSS_HEIGHT] = 625; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -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] = -1; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 964; - node->layout.dimensions[CSS_HEIGHT] = 625; - } - - test("Random #488", 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] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 12; - 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.dimensions[CSS_WIDTH] = 281; - 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_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 15; - 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_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_TOP] = 0; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 923; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = -5; - node->style.position[CSS_TOP] = -9; - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = -7; - 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] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 281; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 9; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = -17; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - test("Random #490", 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] = 288; - node->style.dimensions[CSS_HEIGHT] = 423; - 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] = 15; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 288; - node->layout.dimensions[CSS_HEIGHT] = 423; - } - - 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_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 120; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_RIGHT] = 6; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 177; - node->style.margin[CSS_LEFT] = -3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 120; - node->layout.dimensions[CSS_HEIGHT] = 38; - 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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 177; - } - } - - test("Random #492", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 419; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 7; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 419; - 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] = 24; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #493", 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_WIDTH] = 682; - node->style.dimensions[CSS_HEIGHT] = 390; - node->style.margin[CSS_LEFT] = -10; - 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_BOTTOM] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 682; - node->layout.dimensions[CSS_HEIGHT] = 390; - } - - test("Random #494", 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] = 687; - 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_LEFT] = 10; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -8; - 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] = 9; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 687; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #495", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 179; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 0; - 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] = 2; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 3; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 179; - } - - test("Random #496", 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 #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_END; - node->style.dimensions[CSS_HEIGHT] = 607; - 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_LEFT] = -4; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 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] = -4; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #498", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 726; - node->style.dimensions[CSS_HEIGHT] = 702; - node->style.margin[CSS_TOP] = 19; - 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.padding[CSS_TOP] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 726; - node->layout.dimensions[CSS_HEIGHT] = 702; - } - - test("Random #499", 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.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 19; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -4; - 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] = -8; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #500", 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 #501", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 2; - node->style.dimensions[CSS_HEIGHT] = 221; - 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] = -10; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 15; - 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] = 4; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 221; - } - - test("Random #502", 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 #503", 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 #504", 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_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 486; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = -5; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 4; - 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] = 11; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 486; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #505", 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_CENTER; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.margin[CSS_BOTTOM] = 13; - 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_LEFT] = 15; - node->style.position[CSS_LEFT] = 0; - 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] = -10; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - 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_COLUMN; - node->style.justify_content = CSS_JUSTIFY_CENTER; - 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] = 2; - node->style.margin[CSS_TOP] = 11; - 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] = 6; - node->layout.position[CSS_LEFT] = 2; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - 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; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 5; - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 493; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 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] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 493; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #509", 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] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 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] = -1; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #510", 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 #511", 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 #512", 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.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 69; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = -8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - 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] = 1; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 69; - } - } - - test("Random #513", 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] = -6; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - 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_LEFT] = 12; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 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] = 8; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 194; - node->style.dimensions[CSS_HEIGHT] = 848; - 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_BOTTOM] = 16; - 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] = 2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_TOP] = 2; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 2; - 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] = -1; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 194; - node->layout.dimensions[CSS_HEIGHT] = 848; - 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] = 180; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #515", 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.dimensions[CSS_WIDTH] = 294; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = -6; - 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.padding[CSS_TOP] = 5; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 0; - 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] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 294; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #516", 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] = 188; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - node->style.border[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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 188; - } - - test("Random #517", 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] = 484; - node->style.dimensions[CSS_HEIGHT] = 352; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 3; - 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] = 484; - node->layout.dimensions[CSS_HEIGHT] = 352; - } - - test("Random #518", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -4; - 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_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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #519", 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 #520", 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_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 7; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #521", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 89; - 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_LEFT] = 10; - node->style.margin[CSS_RIGHT] = 14; - 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_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] = 10; - node->layout.dimensions[CSS_WIDTH] = 89; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #522", 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] = -3; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = -3; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 7; - 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] = -16; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #524", 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] = 850; - 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_BOTTOM] = 16; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 850; - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 855; - 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_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 1; - 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] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #526", 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] = 472; - node->style.margin[CSS_LEFT] = -2; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_LEFT] = 3; - 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 472; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #527", 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 #528", 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] = 811; - 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] = 1; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 811; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - 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_ROW; - node->style.dimensions[CSS_WIDTH] = 18; - 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_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 9; - 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_TOP] = 5; - 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] = 8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #530", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 366; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_HEIGHT] = 366; - } - - test("Random #531", 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 #532", 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.dimensions[CSS_WIDTH] = 577; - 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.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = -3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 577; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 779; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_RIGHT] = 17; - 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] = 1; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 779; - } - - 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_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 512; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = 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] = 7; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 512; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 240; - 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] = 11; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 17; - 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] = -7; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 240; - } - - test("Random #538", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 10; - 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] = -8; - 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] = -1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #539", 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 #540", 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] = 982; - node->style.dimensions[CSS_HEIGHT] = 365; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_BOTTOM] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 982; - node->layout.dimensions[CSS_HEIGHT] = 365; - } - - 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] = 262; - node->style.dimensions[CSS_HEIGHT] = 820; - 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_BOTTOM] = 15; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_CENTER; - 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] = 6; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 0; - 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] = -1; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 262; - node->layout.dimensions[CSS_HEIGHT] = 820; - 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] = 27; - node->layout.position[CSS_LEFT] = 126.5; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #542", 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] = 861; - 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] = -4; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 18; - 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] = -12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 861; - } - - test("Random #543", 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] = 990; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[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] = 990; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #544", 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.dimensions[CSS_HEIGHT] = 626; - 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_TOP] = -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; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 21; - node->layout.dimensions[CSS_HEIGHT] = 626; - } - - test("Random #545", 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 #546", 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 #547", 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.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_TOP] = -3; - 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] = 4; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -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_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - 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.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 17; - 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] = -3; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 62; - node->layout.dimensions[CSS_HEIGHT] = 70; - 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] = 24; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #548", 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 #549", 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.dimensions[CSS_WIDTH] = 948; - 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.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 948; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #550", 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 #551", 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 #552", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 936; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_BOTTOM] = 4; - 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_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_BOTTOM] = 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 936; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #553", 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 #554", 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] = 131; - 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] = 6; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_BOTTOM] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 131; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #555", 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 #556", 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.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 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_TOP] = 8; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - 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] = 2; - 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] = 7; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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.dimensions[CSS_WIDTH] = 854; - 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] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 12; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 854; - 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 658; - 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] = 17; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 11; - 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->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 1; - 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->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_BOTTOM] = 15; - 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] = -4; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 95; - node->layout.dimensions[CSS_HEIGHT] = 658; - 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] = 31; - node->layout.dimensions[CSS_WIDTH] = 58; - node->layout.dimensions[CSS_HEIGHT] = 627; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 588; - } - } - } - - test("Random #563", 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 #564", 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 #565", 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.align_items = CSS_ALIGN_STRETCH; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 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] = -6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #566", 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] = 99; - node->style.dimensions[CSS_HEIGHT] = 344; - node->style.margin[CSS_TOP] = 2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 460; - 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_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = -4; - 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] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 99; - node->layout.dimensions[CSS_HEIGHT] = 344; - 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] = 47.5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 460; - 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] = 1; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #567", 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] = 401; - node->style.margin[CSS_TOP] = 12; - 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_TOP] = 5; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 185; - node->style.dimensions[CSS_HEIGHT] = 789; - 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.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 401; - node->layout.dimensions[CSS_HEIGHT] = 803; - 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] = 185; - node->layout.dimensions[CSS_HEIGHT] = 789; - } - } - - test("Random #568", 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; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 213; - 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_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; - node->style.position[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] = -8; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 213; - } - - test("Random #569", 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.dimensions[CSS_WIDTH] = 970; - node->style.dimensions[CSS_HEIGHT] = 552; - 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_LEFT] = 15; - 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.border[CSS_RIGHT] = 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] = 8; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 970; - node->layout.dimensions[CSS_HEIGHT] = 552; - } - - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #572", 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.dimensions[CSS_WIDTH] = 73; - node->style.dimensions[CSS_HEIGHT] = 315; - 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 14; - 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] = 4; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 315; - } - - test("Random #573", 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_WIDTH] = 522; - node->style.dimensions[CSS_HEIGHT] = 333; - 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] = 16; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 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] = 5; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 522; - node->layout.dimensions[CSS_HEIGHT] = 333; - } - - test("Random #574", 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 #575", 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] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - 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_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 5; - 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] = 6; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #577", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 849; - node->style.dimensions[CSS_HEIGHT] = 51; - 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_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - 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] = 21; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 849; - node->layout.dimensions[CSS_HEIGHT] = 51; - } - - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_TOP] = 3; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #579", 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.dimensions[CSS_HEIGHT] = 275; - node->style.margin[CSS_LEFT] = -4; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 275; - } - - test("Random #580", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 0; - 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_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 694; - 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_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - 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.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = -2; - node->layout.dimensions[CSS_WIDTH] = 971; - node->layout.dimensions[CSS_HEIGHT] = 937; - 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] = 127.5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 694; - } - } - - test("Random #581", 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 #582", 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] = 521; - node->style.margin[CSS_LEFT] = -5; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 18; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[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] = -5; - node->layout.dimensions[CSS_WIDTH] = 521; - node->layout.dimensions[CSS_HEIGHT] = 27; - } - - test("Random #583", 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_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.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[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] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #584", 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_END; - node->style.dimensions[CSS_WIDTH] = 644; - 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.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 644; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #586", 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; - node->style.dimensions[CSS_HEIGHT] = 572; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 572; - } - - 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] = 32; - 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] = 19; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 3; - 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] = 3; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #588", 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.dimensions[CSS_WIDTH] = 336; - node->style.dimensions[CSS_HEIGHT] = 666; - 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.margin[CSS_RIGHT] = -9; - 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.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 4; - 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] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 336; - node->layout.dimensions[CSS_HEIGHT] = 666; - } - - test("Random #589", 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.dimensions[CSS_WIDTH] = 45; - 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_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_TOP] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 522; - 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] = 10; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_BOTTOM] = 3; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 788; - node->style.dimensions[CSS_HEIGHT] = 288; - 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_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 45; - node->layout.dimensions[CSS_HEIGHT] = 547; - 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 522; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 265; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 288; - } - } - - test("Random #590", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 690; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = -10; - node->style.position[CSS_LEFT] = 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] = 20; - node->layout.dimensions[CSS_WIDTH] = 690; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 388; - 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] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 388; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #592", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 951; - 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] = 13; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = 1; - 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.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 450; - node->style.dimensions[CSS_HEIGHT] = 863; - 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; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 12; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 453; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 450; - node->layout.dimensions[CSS_HEIGHT] = 863; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 887; - node->layout.position[CSS_LEFT] = 224; - node->layout.dimensions[CSS_WIDTH] = 25; - 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] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - } - - test("Random #593", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 350; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_RIGHT] = -9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[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] = 10; - node->layout.dimensions[CSS_WIDTH] = 350; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #594", 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 #595", 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 #596", 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.dimensions[CSS_WIDTH] = 326; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_RIGHT] = 9; - 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.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] = 7; - node->layout.dimensions[CSS_WIDTH] = 326; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #597", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 680; - 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] = 11; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 680; - } - - test("Random #598", 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_WIDTH] = 146; - node->style.dimensions[CSS_HEIGHT] = 252; - 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] = 15; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 18; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 146; - node->layout.dimensions[CSS_HEIGHT] = 252; - } - - test("Random #599", 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] = 436; - node->style.dimensions[CSS_HEIGHT] = 18; - 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.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - 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] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 9; - 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] = 13; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 436; - node->layout.dimensions[CSS_HEIGHT] = 23; - } - - test("Random #600", 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 #601", 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 #602", 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 127; - node->style.dimensions[CSS_HEIGHT] = 85; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 853; - node->style.dimensions[CSS_HEIGHT] = 222; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 5; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = 127; - node->layout.dimensions[CSS_HEIGHT] = 85; - 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] = 853; - node->layout.dimensions[CSS_HEIGHT] = 222; - } - } - - test("Random #603", 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_CENTER; - 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.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_TOP] = 2; - } - - 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] = 4; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #604", 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 #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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 208; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 1; - node->style.position[CSS_LEFT] = -1; - 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] = 13; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 208; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = 2; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 4; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #607", 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_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 14; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = 0; - node->layout.position[CSS_LEFT] = -18; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #608", 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 #609", 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_END; - 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_RIGHT] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 1; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #610", 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_LEFT] = 15; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 15; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -2; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 976; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.position[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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_RIGHT] = 10; - 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] = 10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 976; - node->layout.dimensions[CSS_HEIGHT] = 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->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 10; - 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; - node->style.dimensions[CSS_WIDTH] = 699; - node->style.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = -2; - 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_LEFT] = 17; - node->style.padding[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_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 200; - 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] = 13; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 19; - 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] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 699; - node->layout.dimensions[CSS_HEIGHT] = 36; - 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] = 200; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #612", 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] = -3; - node->style.margin[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -4; - 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #613", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 343; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - 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] = 16; - node->style.border[CSS_TOP] = 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] = 1; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 343; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - 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_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_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 19; - 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_TOP] = 14; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #615", 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_SPACE_AROUND; - node->style.dimensions[CSS_HEIGHT] = 392; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 392; - } - - test("Random #616", 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] = 607; - 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.margin[CSS_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #617", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 254; - 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_TOP] = 3; - node->style.margin[CSS_RIGHT] = -4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 254; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #618", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_BOTTOM] = -6; - 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.padding[CSS_TOP] = 18; - node->style.border[CSS_RIGHT] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #619", 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.dimensions[CSS_WIDTH] = 444; - node->style.dimensions[CSS_HEIGHT] = 513; - node->style.margin[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - 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] = 444; - node->layout.dimensions[CSS_HEIGHT] = 513; - } - - test("Random #620", 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 #621", 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] = 147; - node->style.dimensions[CSS_HEIGHT] = 50; - 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_LEFT] = 2; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - 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] = 7; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 147; - node->layout.dimensions[CSS_HEIGHT] = 50; - } - - test("Random #622", 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.dimensions[CSS_WIDTH] = 618; - node->style.dimensions[CSS_HEIGHT] = 816; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[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] = 5; - node->layout.dimensions[CSS_WIDTH] = 618; - node->layout.dimensions[CSS_HEIGHT] = 816; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 704; - node->style.dimensions[CSS_HEIGHT] = 787; - node->style.margin[CSS_LEFT] = -10; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 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] = -18; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 704; - node->layout.dimensions[CSS_HEIGHT] = 787; - } - - test("Random #625", 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] = 11; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 19; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #626", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 478; - node->style.dimensions[CSS_HEIGHT] = 358; - 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] = 6; - node->style.margin[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = -10; - 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_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 896; - 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.margin[CSS_LEFT] = -7; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = -6; - 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_BOTTOM] = 17; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_END; - 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_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 14; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_LEFT] = -5; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 7; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 478; - node->layout.dimensions[CSS_HEIGHT] = 358; - 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] = 28; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 37; - node->layout.dimensions[CSS_HEIGHT] = 896; - 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] = 858; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 39; - node->layout.dimensions[CSS_HEIGHT] = 37; - } - } - - test("Random #627", 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] = 3; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #628", 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] = 123; - node->style.dimensions[CSS_HEIGHT] = 559; - 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] = -6; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[CSS_TOP] = -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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 879; - node->style.dimensions[CSS_HEIGHT] = 545; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 2; - 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] = -14; - node->layout.position[CSS_LEFT] = -12; - node->layout.dimensions[CSS_WIDTH] = 123; - node->layout.dimensions[CSS_HEIGHT] = 559; - 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.5; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 879; - node->layout.dimensions[CSS_HEIGHT] = 545; - } - } - - test("Random #629", 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 #630", 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] = 930; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 930; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #631", 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] = 489; - node->style.dimensions[CSS_HEIGHT] = 913; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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.dimensions[CSS_WIDTH] = 334; - node->style.dimensions[CSS_HEIGHT] = 127; - 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] = 19; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 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_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 12; - node->style.border[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] = -6; - node->layout.dimensions[CSS_WIDTH] = 489; - node->layout.dimensions[CSS_HEIGHT] = 913; - 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] = 21; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 334; - node->layout.dimensions[CSS_HEIGHT] = 127; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - } - - test("Random #632", 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 #633", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 408; - 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.margin[CSS_TOP] = 5; - 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_LEFT] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 0; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 408; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #634", 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 #635", 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 #636", 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 #637", 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.dimensions[CSS_WIDTH] = 744; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -9; - 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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 920; - 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.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -8; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - 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] = 0; - node->layout.position[CSS_LEFT] = -16; - node->layout.dimensions[CSS_WIDTH] = 744; - 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] = 6; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 920; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - } - - test("Random #638", 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.dimensions[CSS_HEIGHT] = 640; - node->style.padding[CSS_BOTTOM] = 8; - 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] = 640; - } - - test("Random #639", 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_HEIGHT] = 273; - 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_TOP] = -5; - node->style.padding[CSS_LEFT] = 5; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 873; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - 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] = -4; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 273; - 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] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 873; - } - } - - test("Random #640", 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.dimensions[CSS_WIDTH] = 799; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 799; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #641", 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_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 40; - 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.margin[CSS_RIGHT] = 16; - 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.padding[CSS_TOP] = 9; - 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] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 40; - } - - test("Random #642", 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 #643", 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.dimensions[CSS_WIDTH] = 659; - node->style.dimensions[CSS_HEIGHT] = 79; - 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] = 11; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 9; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.padding[CSS_RIGHT] = 8; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 659; - node->layout.dimensions[CSS_HEIGHT] = 79; - 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] = 23; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 9; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #645", 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 #646", 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_CENTER; - 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_BOTTOM] = 11; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[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] = 6; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -8; - 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_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 3; - 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] = -5; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #649", 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] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #650", 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] = 3; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 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] = 5; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - test("Random #651", 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.dimensions[CSS_WIDTH] = 188; - node->style.dimensions[CSS_HEIGHT] = 828; - 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] = 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] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 188; - node->layout.dimensions[CSS_HEIGHT] = 828; - } - - test("Random #652", 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.dimensions[CSS_HEIGHT] = 269; - 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] = 3; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 269; - } - - 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.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_RIGHT] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 389; - } - - test("Random #654", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 531; - node->style.dimensions[CSS_HEIGHT] = 122; - 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_TOP] = 9; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 1; - 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] = 10; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 531; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #655", 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] = 3; - node->style.margin[CSS_BOTTOM] = -2; - 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_TOP] = 8; - node->style.position[CSS_LEFT] = 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] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #656", 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 #657", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.dimensions[CSS_HEIGHT] = 621; - node->style.margin[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] = 118; - node->layout.dimensions[CSS_HEIGHT] = 621; - } - - test("Random #658", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 625; - 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] = 18; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 625; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #659", 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 #660", 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] = 69; - node->style.dimensions[CSS_HEIGHT] = 64; - 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.margin[CSS_RIGHT] = -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; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 1; - 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] = -7; - node->layout.position[CSS_LEFT] = -17; - node->layout.dimensions[CSS_WIDTH] = 69; - node->layout.dimensions[CSS_HEIGHT] = 64; - } - - test("Random #661", 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.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 256; - node->style.dimensions[CSS_HEIGHT] = 614; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = -6; - 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.border[CSS_RIGHT] = 1; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 500; - node->style.dimensions[CSS_HEIGHT] = 437; - 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_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 256; - node->layout.dimensions[CSS_HEIGHT] = 614; - 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] = 86.5; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 500; - node->layout.dimensions[CSS_HEIGHT] = 437; - } - } - - test("Random #662", 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 #663", 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] = -4; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[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] = 13; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #664", 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 #665", 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_HEIGHT] = 756; - 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.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -1; - 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->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 756; - } - - test("Random #666", 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.margin[CSS_BOTTOM] = -9; - 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_LEFT] = 5; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = 20; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #667", 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_START; - node->style.dimensions[CSS_WIDTH] = 753; - node->style.dimensions[CSS_HEIGHT] = 842; - node->style.margin[CSS_LEFT] = 17; - 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.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 753; - node->layout.dimensions[CSS_HEIGHT] = 842; - } - - test("Random #668", 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.margin[CSS_TOP] = -1; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = -1; - node->style.margin[CSS_LEFT] = -4; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_BOTTOM] = 0; - 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->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 7; - 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] = 8; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #669", 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 #670", 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] = 272; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 272; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #671", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 163; - node->style.dimensions[CSS_HEIGHT] = 714; - 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_RIGHT] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 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] = 14; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 163; - node->layout.dimensions[CSS_HEIGHT] = 714; - } - - test("Random #672", 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_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 351; - node->style.dimensions[CSS_HEIGHT] = 777; - 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] = 7; - node->style.margin[CSS_RIGHT] = -3; - 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_RIGHT] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 351; - node->layout.dimensions[CSS_HEIGHT] = 777; - } - - test("Random #673", 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_END; - node->style.dimensions[CSS_WIDTH] = 5; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 15; - 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] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #674", 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.margin[CSS_BOTTOM] = -6; - 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.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #675", 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] = 12; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #676", 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 #677", 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] = 638; - 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_TOP] = -6; - 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_LEFT] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 638; - } - - test("Random #678", 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; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 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] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - 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_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 434; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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] = -5; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 434; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #680", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 198; - 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_TOP] = 5; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 198; - } - - test("Random #681", 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; - node->style.dimensions[CSS_WIDTH] = 249; - node->style.dimensions[CSS_HEIGHT] = 420; - 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.margin[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -10; - 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] = 27; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 249; - node->layout.dimensions[CSS_HEIGHT] = 420; - } - - test("Random #682", 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 #683", 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_WIDTH] = 536; - node->style.dimensions[CSS_HEIGHT] = 147; - 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_RIGHT] = 7; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 13; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 13; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 536; - node->layout.dimensions[CSS_HEIGHT] = 147; - } - - test("Random #684", 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 #685", 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.dimensions[CSS_WIDTH] = 964; - node->style.dimensions[CSS_HEIGHT] = 625; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -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] = -1; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 964; - node->layout.dimensions[CSS_HEIGHT] = 625; - } - - test("Random #686", 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] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #687", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 281; - 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_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 15; - 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_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_TOP] = 0; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 923; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = -5; - node->style.position[CSS_TOP] = -9; - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = -7; - 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] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 281; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 9; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = -17; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - 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.dimensions[CSS_WIDTH] = 288; - node->style.dimensions[CSS_HEIGHT] = 423; - 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] = 15; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 288; - node->layout.dimensions[CSS_HEIGHT] = 423; - } - - test("Random #689", 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_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 120; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_RIGHT] = 6; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 177; - node->style.margin[CSS_LEFT] = -3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 120; - node->layout.dimensions[CSS_HEIGHT] = 38; - 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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 177; - } - } - - test("Random #690", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 419; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 7; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 419; - 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] = 24; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #691", 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_WIDTH] = 682; - node->style.dimensions[CSS_HEIGHT] = 390; - node->style.margin[CSS_LEFT] = -10; - 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_BOTTOM] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 682; - node->layout.dimensions[CSS_HEIGHT] = 390; - } - - test("Random #692", 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] = 687; - 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_LEFT] = 10; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -8; - 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] = 9; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 687; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #693", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 179; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 0; - 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] = 2; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 3; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 179; - } - - test("Random #694", 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 #695", 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] = 607; - 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_LEFT] = -4; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 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] = -4; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #696", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 726; - node->style.dimensions[CSS_HEIGHT] = 702; - node->style.margin[CSS_TOP] = 19; - 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.padding[CSS_TOP] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 726; - node->layout.dimensions[CSS_HEIGHT] = 702; - } - - test("Random #697", 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.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 19; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -4; - 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] = -8; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #698", 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 #699", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 2; - node->style.dimensions[CSS_HEIGHT] = 221; - 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] = -10; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 15; - 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] = 4; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 221; - } - - test("Random #700", 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 #701", 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 #702", 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_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 486; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = -5; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 4; - 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] = 11; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 486; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #703", 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_CENTER; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.margin[CSS_BOTTOM] = 13; - 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_LEFT] = 15; - node->style.position[CSS_LEFT] = 0; - 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] = -10; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #704", 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; - 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] = 2; - node->style.margin[CSS_TOP] = 11; - 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] = 6; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #705", 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] = -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; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 5; - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 493; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 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] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 493; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #707", 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] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 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] = -1; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #708", 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 #709", 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 #710", 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.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 69; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = -8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - 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] = 1; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 69; - } - } - - test("Random #711", 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] = -6; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - 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_LEFT] = 12; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 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] = 8; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #712", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 194; - node->style.dimensions[CSS_HEIGHT] = 848; - 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_BOTTOM] = 16; - 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] = 2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_TOP] = 2; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 2; - 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] = -1; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 194; - node->layout.dimensions[CSS_HEIGHT] = 848; - 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] = 180; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #713", 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.dimensions[CSS_WIDTH] = 294; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = -6; - 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.padding[CSS_TOP] = 5; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 0; - 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] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 294; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #714", 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] = 188; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - node->style.border[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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 188; - } - - 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 484; - node->style.dimensions[CSS_HEIGHT] = 352; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 3; - 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] = 484; - node->layout.dimensions[CSS_HEIGHT] = 352; - } - - test("Random #716", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -4; - 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_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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #717", 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 #718", 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_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 7; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #719", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 89; - 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_LEFT] = 10; - node->style.margin[CSS_RIGHT] = 14; - 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_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] = 10; - node->layout.dimensions[CSS_WIDTH] = 89; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #720", 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] = -3; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = -3; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 7; - 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] = -16; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #721", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #722", 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] = 850; - 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_BOTTOM] = 16; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 850; - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 855; - 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_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 1; - 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] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #724", 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] = 472; - node->style.margin[CSS_LEFT] = -2; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_LEFT] = 3; - 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 472; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #726", 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] = 811; - 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] = 1; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 811; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #727", 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] = 18; - 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_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 9; - 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_TOP] = 5; - 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] = 8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #728", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 366; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_HEIGHT] = 366; - } - - test("Random #729", 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 #730", 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.dimensions[CSS_WIDTH] = 577; - 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.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = -3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 577; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 779; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_RIGHT] = 17; - 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] = 1; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 779; - } - - test("Random #732", 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 #733", 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_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 512; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = 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] = 7; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 512; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #734", 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 #735", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 240; - 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] = 11; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 17; - 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] = -7; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 240; - } - - test("Random #736", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 10; - 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] = -8; - 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] = -1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - 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_COLUMN; - node->style.dimensions[CSS_WIDTH] = 982; - node->style.dimensions[CSS_HEIGHT] = 365; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_BOTTOM] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 982; - node->layout.dimensions[CSS_HEIGHT] = 365; - } - - test("Random #739", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 262; - node->style.dimensions[CSS_HEIGHT] = 820; - 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_BOTTOM] = 15; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_CENTER; - 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] = 6; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 0; - 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] = -1; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 262; - node->layout.dimensions[CSS_HEIGHT] = 820; - 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] = 27; - node->layout.position[CSS_LEFT] = 126.5; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #740", 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] = 861; - 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] = -4; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 18; - 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] = -12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 861; - } - - 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_COLUMN; - node->style.dimensions[CSS_WIDTH] = 990; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[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] = 990; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #742", 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.dimensions[CSS_HEIGHT] = 626; - 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_TOP] = -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; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 21; - node->layout.dimensions[CSS_HEIGHT] = 626; - } - - test("Random #743", 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 #744", 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 #745", 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.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_TOP] = -3; - 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] = 4; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -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_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - 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.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 17; - 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] = -3; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 62; - node->layout.dimensions[CSS_HEIGHT] = 70; - 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] = 24; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #746", 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 #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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 948; - 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.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 948; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #748", 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 #749", 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 #750", 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 936; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_BOTTOM] = 4; - 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_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_BOTTOM] = 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 936; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 131; - 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] = 6; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_BOTTOM] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 131; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #753", 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 #754", 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.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 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_TOP] = 8; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #755", 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 #756", 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 #757", 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_STRETCH; - 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] = 2; - 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] = 7; - node->layout.position[CSS_LEFT] = 2; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #759", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 854; - 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] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 12; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 854; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #760", 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_HEIGHT] = 658; - 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] = 17; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 11; - 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->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 1; - 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->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_BOTTOM] = 15; - 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] = -4; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 95; - node->layout.dimensions[CSS_HEIGHT] = 658; - 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] = 31; - node->layout.dimensions[CSS_WIDTH] = 58; - node->layout.dimensions[CSS_HEIGHT] = 627; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 588; - } - } - } - - test("Random #761", 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 #762", 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 #763", 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.align_items = CSS_ALIGN_STRETCH; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 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] = -6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #764", 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] = 99; - node->style.dimensions[CSS_HEIGHT] = 344; - node->style.margin[CSS_TOP] = 2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 460; - 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_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = -4; - 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] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 99; - node->layout.dimensions[CSS_HEIGHT] = 344; - 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] = 47.5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 460; - 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] = 1; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #765", 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] = 401; - node->style.margin[CSS_TOP] = 12; - 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_TOP] = 5; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 185; - node->style.dimensions[CSS_HEIGHT] = 789; - 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.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 401; - node->layout.dimensions[CSS_HEIGHT] = 803; - 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] = 185; - node->layout.dimensions[CSS_HEIGHT] = 789; - } - } - - test("Random #766", 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; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 213; - 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_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; - node->style.position[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] = -8; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 213; - } - - 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; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 970; - node->style.dimensions[CSS_HEIGHT] = 552; - 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_LEFT] = 15; - 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.border[CSS_RIGHT] = 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] = 8; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 970; - node->layout.dimensions[CSS_HEIGHT] = 552; - } - - test("Random #768", 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 #769", 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 #770", 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.dimensions[CSS_WIDTH] = 73; - node->style.dimensions[CSS_HEIGHT] = 315; - 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 14; - 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] = 4; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 315; - } - - test("Random #771", 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_WIDTH] = 522; - node->style.dimensions[CSS_HEIGHT] = 333; - 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] = 16; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 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] = 5; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 522; - node->layout.dimensions[CSS_HEIGHT] = 333; - } - - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - 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] = 14; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - 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_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 5; - 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] = 6; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #775", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 849; - node->style.dimensions[CSS_HEIGHT] = 51; - 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_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - 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] = 21; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 849; - node->layout.dimensions[CSS_HEIGHT] = 51; - } - - test("Random #776", 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_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_TOP] = 3; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #777", 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.dimensions[CSS_HEIGHT] = 275; - node->style.margin[CSS_LEFT] = -4; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 275; - } - - test("Random #778", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 0; - 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_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 694; - 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_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - 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.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = -2; - node->layout.dimensions[CSS_WIDTH] = 971; - node->layout.dimensions[CSS_HEIGHT] = 937; - 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] = 127.5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 694; - } - } - - test("Random #779", 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 #780", 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] = 521; - node->style.margin[CSS_LEFT] = -5; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 18; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[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] = -5; - node->layout.dimensions[CSS_WIDTH] = 521; - node->layout.dimensions[CSS_HEIGHT] = 27; - } - - test("Random #781", 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_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.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[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] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #782", 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_END; - node->style.dimensions[CSS_WIDTH] = 644; - 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.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 644; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #784", 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; - node->style.dimensions[CSS_HEIGHT] = 572; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 572; - } - - test("Random #785", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 32; - 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] = 19; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 3; - 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] = 3; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #786", 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.dimensions[CSS_WIDTH] = 336; - node->style.dimensions[CSS_HEIGHT] = 666; - 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.margin[CSS_RIGHT] = -9; - 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.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 4; - 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] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 336; - node->layout.dimensions[CSS_HEIGHT] = 666; - } - - test("Random #787", 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.dimensions[CSS_WIDTH] = 45; - 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_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_TOP] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 522; - 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] = 10; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_BOTTOM] = 3; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 788; - node->style.dimensions[CSS_HEIGHT] = 288; - 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_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 45; - node->layout.dimensions[CSS_HEIGHT] = 547; - 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 522; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 265; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 288; - } - } - - test("Random #788", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 690; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = -10; - node->style.position[CSS_LEFT] = 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] = 20; - node->layout.dimensions[CSS_WIDTH] = 690; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 388; - 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] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 388; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #790", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 951; - 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] = 13; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = 1; - 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.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 450; - node->style.dimensions[CSS_HEIGHT] = 863; - 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; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 12; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 453; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 450; - node->layout.dimensions[CSS_HEIGHT] = 863; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 887; - node->layout.position[CSS_LEFT] = 224; - node->layout.dimensions[CSS_WIDTH] = 25; - 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] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - } - - test("Random #791", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 350; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_RIGHT] = -9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[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] = 10; - node->layout.dimensions[CSS_WIDTH] = 350; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #792", 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 #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.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 326; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_RIGHT] = 9; - 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.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] = 7; - node->layout.dimensions[CSS_WIDTH] = 326; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #795", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 680; - 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] = 11; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 680; - } - - test("Random #796", 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_WIDTH] = 146; - node->style.dimensions[CSS_HEIGHT] = 252; - 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] = 15; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 18; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 146; - node->layout.dimensions[CSS_HEIGHT] = 252; - } - - test("Random #797", 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] = 436; - node->style.dimensions[CSS_HEIGHT] = 18; - 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.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - 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] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 9; - 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] = 13; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 436; - node->layout.dimensions[CSS_HEIGHT] = 23; - } - - test("Random #798", 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 #799", 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 #800", 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 127; - node->style.dimensions[CSS_HEIGHT] = 85; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 853; - node->style.dimensions[CSS_HEIGHT] = 222; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 5; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = 127; - node->layout.dimensions[CSS_HEIGHT] = 85; - 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] = 853; - node->layout.dimensions[CSS_HEIGHT] = 222; - } - } - - test("Random #801", 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_CENTER; - 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.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_TOP] = 2; - } - - 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] = 4; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #802", 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 #803", 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_END; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 208; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 1; - node->style.position[CSS_LEFT] = -1; - 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] = 13; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 208; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #804", 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_STRETCH; - node->style.margin[CSS_LEFT] = 17; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = 2; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 4; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #805", 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_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 14; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = 0; - node->layout.position[CSS_LEFT] = -18; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 29; - } - - test("Random #806", 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 #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_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - 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_RIGHT] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 1; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 1; - } - - test("Random #808", 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_LEFT] = 15; - node->style.margin[CSS_TOP] = 15; - node->style.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = 15; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -2; - 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]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 976; - node->style.margin[CSS_TOP] = 8; - node->style.padding[CSS_LEFT] = 10; - node->style.border[CSS_LEFT] = 3; - node->style.position[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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_TOP] = 19; - node->style.margin[CSS_RIGHT] = 4; - node->style.padding[CSS_RIGHT] = 10; - 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] = 10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 976; - node->layout.dimensions[CSS_HEIGHT] = 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->layout.position[CSS_TOP] = 19; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - } - - test("Random #809", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 699; - node->style.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = -2; - 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_LEFT] = 17; - node->style.padding[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_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 200; - 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] = 13; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 19; - 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] = -6; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 699; - node->layout.dimensions[CSS_HEIGHT] = 36; - 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] = 200; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #810", 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] = -3; - node->style.margin[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -4; - 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #811", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 343; - node->style.dimensions[CSS_HEIGHT] = 122; - node->style.margin[CSS_LEFT] = 4; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - 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] = 16; - node->style.border[CSS_TOP] = 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] = 1; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 343; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #812", 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_RIGHT] = 10; - node->style.margin[CSS_BOTTOM] = 19; - 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_TOP] = 14; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #813", 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_SPACE_AROUND; - node->style.dimensions[CSS_HEIGHT] = 392; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 392; - } - - test("Random #814", 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] = 607; - 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.margin[CSS_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 6; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #815", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 254; - 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_TOP] = 3; - node->style.margin[CSS_RIGHT] = -4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 254; - node->layout.dimensions[CSS_HEIGHT] = 38; - } - - test("Random #816", 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.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_BOTTOM] = -6; - 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.padding[CSS_TOP] = 18; - node->style.border[CSS_RIGHT] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #817", 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.dimensions[CSS_WIDTH] = 444; - node->style.dimensions[CSS_HEIGHT] = 513; - node->style.margin[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - 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] = 444; - node->layout.dimensions[CSS_HEIGHT] = 513; - } - - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 147; - node->style.dimensions[CSS_HEIGHT] = 50; - 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_LEFT] = 2; - node->style.padding[CSS_BOTTOM] = 12; - node->style.position[CSS_LEFT] = 6; - 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] = 7; - node->layout.position[CSS_LEFT] = 18; - node->layout.dimensions[CSS_WIDTH] = 147; - node->layout.dimensions[CSS_HEIGHT] = 50; - } - - test("Random #820", 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.dimensions[CSS_WIDTH] = 618; - node->style.dimensions[CSS_HEIGHT] = 816; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 15; - node->style.position[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] = 5; - node->layout.dimensions[CSS_WIDTH] = 618; - node->layout.dimensions[CSS_HEIGHT] = 816; - } - - test("Random #821", 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 #822", 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 704; - node->style.dimensions[CSS_HEIGHT] = 787; - node->style.margin[CSS_LEFT] = -10; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 13; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 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] = -18; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 704; - node->layout.dimensions[CSS_HEIGHT] = 787; - } - - test("Random #823", 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] = 11; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 19; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #824", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 478; - node->style.dimensions[CSS_HEIGHT] = 358; - 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] = 6; - node->style.margin[CSS_TOP] = 17; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_TOP] = -10; - 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_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 896; - 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.margin[CSS_LEFT] = -7; - node->style.margin[CSS_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = -6; - 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_BOTTOM] = 17; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_END; - 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_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 14; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -9; - node->style.position[CSS_TOP] = 1; - } - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_LEFT] = -5; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 19; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 7; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 478; - node->layout.dimensions[CSS_HEIGHT] = 358; - 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] = 28; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 37; - node->layout.dimensions[CSS_HEIGHT] = 896; - 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] = 858; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 0; - node->layout.position[CSS_LEFT] = -4; - node->layout.dimensions[CSS_WIDTH] = 39; - node->layout.dimensions[CSS_HEIGHT] = 37; - } - } - - test("Random #825", 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] = 3; - node->style.margin[CSS_TOP] = 9; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #826", 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] = 123; - node->style.dimensions[CSS_HEIGHT] = 559; - 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] = -6; - node->style.margin[CSS_RIGHT] = 1; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 13; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[CSS_TOP] = -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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 879; - node->style.dimensions[CSS_HEIGHT] = 545; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 2; - 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] = -14; - node->layout.position[CSS_LEFT] = -12; - node->layout.dimensions[CSS_WIDTH] = 123; - node->layout.dimensions[CSS_HEIGHT] = 559; - 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.5; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 879; - node->layout.dimensions[CSS_HEIGHT] = 545; - } - } - - test("Random #827", 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 #828", 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] = 930; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_BOTTOM] = 19; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 930; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - test("Random #829", 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] = 489; - node->style.dimensions[CSS_HEIGHT] = 913; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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.dimensions[CSS_WIDTH] = 334; - node->style.dimensions[CSS_HEIGHT] = 127; - 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] = 19; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_RIGHT] = 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_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 11; - node->style.padding[CSS_TOP] = 12; - node->style.border[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] = -6; - node->layout.dimensions[CSS_WIDTH] = 489; - node->layout.dimensions[CSS_HEIGHT] = 913; - 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] = 21; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 334; - node->layout.dimensions[CSS_HEIGHT] = 127; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - } - - test("Random #830", 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 #831", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 408; - 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.margin[CSS_TOP] = 5; - 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_LEFT] = 10; - node->style.padding[CSS_TOP] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 0; - 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] = 1; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 408; - node->layout.dimensions[CSS_HEIGHT] = 25; - } - - test("Random #832", 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 #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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #835", 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.dimensions[CSS_WIDTH] = 744; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 4; - node->style.position[CSS_LEFT] = -9; - 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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 920; - 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.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -8; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - 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] = 0; - node->layout.position[CSS_LEFT] = -16; - node->layout.dimensions[CSS_WIDTH] = 744; - 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] = 6; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 920; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - } - - test("Random #836", 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.dimensions[CSS_HEIGHT] = 640; - node->style.padding[CSS_BOTTOM] = 8; - 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] = 640; - } - - test("Random #837", 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_HEIGHT] = 273; - 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_TOP] = -5; - node->style.padding[CSS_LEFT] = 5; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -6; - node->style.position[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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 873; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 0; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 9; - 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] = -4; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 273; - 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] = 12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 873; - } - } - - test("Random #838", 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.dimensions[CSS_WIDTH] = 799; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[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] = 799; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #839", 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_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 40; - 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.margin[CSS_RIGHT] = 16; - 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.padding[CSS_TOP] = 9; - 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] = 19; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 40; - } - - test("Random #840", 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 #841", 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.dimensions[CSS_WIDTH] = 659; - node->style.dimensions[CSS_HEIGHT] = 79; - 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] = 11; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 3; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 9; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 16; - node->style.margin[CSS_BOTTOM] = -10; - node->style.padding[CSS_RIGHT] = 8; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 659; - node->layout.dimensions[CSS_HEIGHT] = 79; - 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] = 23; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 9; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - } - - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #844", 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_CENTER; - 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_BOTTOM] = 11; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[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] = 6; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - test("Random #845", 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 #846", 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_END; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -8; - 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_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 3; - 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] = -5; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #847", 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] = 7; - node->style.margin[CSS_TOP] = 7; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 7; - node->style.margin[CSS_LEFT] = 3; - node->style.padding[CSS_TOP] = 2; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 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] = 5; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 36; - node->layout.dimensions[CSS_HEIGHT] = 30; - } - - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 188; - node->style.dimensions[CSS_HEIGHT] = 828; - 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] = 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] = 0; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 188; - node->layout.dimensions[CSS_HEIGHT] = 828; - } - - test("Random #850", 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.dimensions[CSS_HEIGHT] = 269; - 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] = 3; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 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] = 3; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 269; - } - - test("Random #851", 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] = 389; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_BOTTOM] = 10; - node->style.padding[CSS_RIGHT] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 5; - node->layout.dimensions[CSS_HEIGHT] = 389; - } - - test("Random #852", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 531; - node->style.dimensions[CSS_HEIGHT] = 122; - 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_TOP] = 9; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 1; - 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] = 10; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 531; - node->layout.dimensions[CSS_HEIGHT] = 122; - } - - test("Random #853", 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] = 3; - node->style.margin[CSS_BOTTOM] = -2; - 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_TOP] = 8; - node->style.position[CSS_LEFT] = 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] = 2; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - 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_ROW; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 118; - node->style.dimensions[CSS_HEIGHT] = 621; - node->style.margin[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] = 118; - node->layout.dimensions[CSS_HEIGHT] = 621; - } - - test("Random #856", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 625; - 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] = 18; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 16; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 625; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #857", 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 #858", 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] = 69; - node->style.dimensions[CSS_HEIGHT] = 64; - 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.margin[CSS_RIGHT] = -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; - node->style.padding[CSS_LEFT] = 7; - node->style.padding[CSS_TOP] = 10; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 1; - 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] = -7; - node->layout.position[CSS_LEFT] = -17; - node->layout.dimensions[CSS_WIDTH] = 69; - node->layout.dimensions[CSS_HEIGHT] = 64; - } - - test("Random #859", 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.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 256; - node->style.dimensions[CSS_HEIGHT] = 614; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = -6; - 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.border[CSS_RIGHT] = 1; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 500; - node->style.dimensions[CSS_HEIGHT] = 437; - 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_BOTTOM] = -4; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 1; - node->style.padding[CSS_BOTTOM] = 4; - 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] = 15; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 256; - node->layout.dimensions[CSS_HEIGHT] = 614; - 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] = 86.5; - node->layout.position[CSS_LEFT] = -10; - node->layout.dimensions[CSS_WIDTH] = 500; - node->layout.dimensions[CSS_HEIGHT] = 437; - } - } - - test("Random #860", 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 #861", 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] = -4; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[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] = 13; - node->layout.dimensions[CSS_HEIGHT] = 8; - } - - test("Random #862", 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 #863", 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_HEIGHT] = 756; - 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.margin[CSS_LEFT] = 17; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -1; - 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->style.padding[CSS_RIGHT] = 12; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 756; - } - - test("Random #864", 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.margin[CSS_BOTTOM] = -9; - 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_LEFT] = 5; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = 20; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - 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_ROW; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 753; - node->style.dimensions[CSS_HEIGHT] = 842; - node->style.margin[CSS_LEFT] = 17; - 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.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 17; - node->layout.dimensions[CSS_WIDTH] = 753; - node->layout.dimensions[CSS_HEIGHT] = 842; - } - - 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_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] = -4; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_BOTTOM] = 0; - 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->style.padding[CSS_TOP] = 3; - node->style.padding[CSS_BOTTOM] = 7; - 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] = 8; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 30; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #867", 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 #868", 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] = 272; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_BOTTOM] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 272; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #869", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 163; - node->style.dimensions[CSS_HEIGHT] = 714; - 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_RIGHT] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 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] = 14; - node->layout.position[CSS_LEFT] = 3; - node->layout.dimensions[CSS_WIDTH] = 163; - node->layout.dimensions[CSS_HEIGHT] = 714; - } - - test("Random #870", 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_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_WIDTH] = 351; - node->style.dimensions[CSS_HEIGHT] = 777; - 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] = 7; - node->style.margin[CSS_RIGHT] = -3; - 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_RIGHT] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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] = 8; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 351; - node->layout.dimensions[CSS_HEIGHT] = 777; - } - - test("Random #871", 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_END; - node->style.dimensions[CSS_WIDTH] = 5; - node->style.dimensions[CSS_HEIGHT] = 225; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 15; - 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] = -8; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 15; - node->layout.dimensions[CSS_HEIGHT] = 225; - } - - test("Random #872", 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.margin[CSS_BOTTOM] = -6; - 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.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 14; - } - - test("Random #873", 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] = 12; - node->style.margin[CSS_TOP] = 6; - node->style.margin[CSS_RIGHT] = 9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 8; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 24; - node->layout.dimensions[CSS_HEIGHT] = 36; - } - - test("Random #874", 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 #875", 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] = 638; - 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_TOP] = -6; - 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_LEFT] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 2; - 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] = -4; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 8; - node->layout.dimensions[CSS_HEIGHT] = 638; - } - - test("Random #876", 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; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 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] = 2; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 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] = 0; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #877", 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.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 434; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[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] = -5; - node->layout.position[CSS_LEFT] = 1; - node->layout.dimensions[CSS_WIDTH] = 434; - node->layout.dimensions[CSS_HEIGHT] = 9; - } - - test("Random #878", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 198; - 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_TOP] = 5; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 198; - } - - test("Random #879", 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; - node->style.dimensions[CSS_WIDTH] = 249; - node->style.dimensions[CSS_HEIGHT] = 420; - 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.margin[CSS_BOTTOM] = 5; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -10; - 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] = 27; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 249; - node->layout.dimensions[CSS_HEIGHT] = 420; - } - - test("Random #880", 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 #881", 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_WIDTH] = 536; - node->style.dimensions[CSS_HEIGHT] = 147; - 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_RIGHT] = 7; - node->style.padding[CSS_TOP] = 4; - node->style.padding[CSS_RIGHT] = 13; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - 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] = 13; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 536; - node->layout.dimensions[CSS_HEIGHT] = 147; - } - - test("Random #882", 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 #883", 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.dimensions[CSS_WIDTH] = 964; - node->style.dimensions[CSS_HEIGHT] = 625; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_LEFT] = -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] = -1; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 964; - node->layout.dimensions[CSS_HEIGHT] = 625; - } - - test("Random #884", 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] = 18; - node->style.margin[CSS_TOP] = 18; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = 18; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_RIGHT] = 9; - node->style.padding[CSS_BOTTOM] = 18; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 12; - node->layout.dimensions[CSS_HEIGHT] = 24; - } - - test("Random #885", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 281; - 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_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 15; - 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_ROW; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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_TOP] = 0; - node->style.margin[CSS_BOTTOM] = 4; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 923; - node->style.margin[CSS_LEFT] = 14; - node->style.margin[CSS_RIGHT] = 18; - node->style.margin[CSS_BOTTOM] = -5; - node->style.position[CSS_TOP] = -9; - node = &outer_node_1->children[2]; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - 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.margin[CSS_RIGHT] = 15; - node->style.margin[CSS_BOTTOM] = -10; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = -7; - 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] = 6; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 281; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 9; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 923; - node = &outer_node_1->children[2]; - node->layout.position[CSS_TOP] = -17; - node->layout.position[CSS_LEFT] = -14; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - } - - 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_ROW; - node->style.dimensions[CSS_WIDTH] = 288; - node->style.dimensions[CSS_HEIGHT] = 423; - 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] = 15; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 14; - node->style.padding[CSS_TOP] = 14; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 2; - 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] = 0; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 288; - node->layout.dimensions[CSS_HEIGHT] = 423; - } - - test("Random #887", 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_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 120; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = 5; - 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->style.padding[CSS_RIGHT] = 6; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.flex = CSS_FLEX_NONE; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_HEIGHT] = 177; - node->style.margin[CSS_LEFT] = -3; - node->style.padding[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = 3; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 120; - node->layout.dimensions[CSS_HEIGHT] = 38; - 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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 177; - } - } - - test("Random #888", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 419; - node->style.margin[CSS_TOP] = 17; - node->style.margin[CSS_RIGHT] = 14; - node->style.padding[CSS_BOTTOM] = 7; - 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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_LEFT] = 9; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 14; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 0; - 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] = 17; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 419; - 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] = 24; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 19; - } - } - - test("Random #889", 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_WIDTH] = 682; - node->style.dimensions[CSS_HEIGHT] = 390; - node->style.margin[CSS_LEFT] = -10; - 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_BOTTOM] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_BOTTOM] = 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] = -7; - node->layout.dimensions[CSS_WIDTH] = 682; - node->layout.dimensions[CSS_HEIGHT] = 390; - } - - test("Random #890", 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] = 687; - 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_LEFT] = 10; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 18; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -8; - 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] = 9; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 687; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #891", 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_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 179; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 0; - 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] = 2; - node->style.padding[CSS_TOP] = 12; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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] = 3; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 25; - node->layout.dimensions[CSS_HEIGHT] = 179; - } - - test("Random #892", 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 #893", 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] = 607; - 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_LEFT] = -4; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 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] = -4; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 607; - } - - test("Random #894", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 726; - node->style.dimensions[CSS_HEIGHT] = 702; - node->style.margin[CSS_TOP] = 19; - 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.padding[CSS_TOP] = 10; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = 22; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 726; - node->layout.dimensions[CSS_HEIGHT] = 702; - } - - test("Random #895", 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.margin[CSS_LEFT] = 6; - node->style.margin[CSS_TOP] = -7; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_LEFT] = 15; - node->style.padding[CSS_RIGHT] = 19; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -4; - 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] = -8; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 38; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #896", 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 #897", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 2; - node->style.dimensions[CSS_HEIGHT] = 221; - 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] = -10; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 15; - node->style.padding[CSS_RIGHT] = 4; - node->style.padding[CSS_BOTTOM] = 15; - 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] = 4; - node->layout.position[CSS_LEFT] = -7; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 221; - } - - test("Random #898", 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 #899", 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 #900", 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_CENTER; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 486; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = 11; - node->style.margin[CSS_RIGHT] = -5; - node->style.margin[CSS_BOTTOM] = 7; - node->style.padding[CSS_TOP] = 4; - 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] = 11; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 486; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - 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.align_items = CSS_ALIGN_CENTER; - node->style.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = -5; - node->style.margin[CSS_BOTTOM] = 13; - 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_LEFT] = 15; - node->style.position[CSS_LEFT] = 0; - 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] = -10; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #902", 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; - 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] = 2; - node->style.margin[CSS_TOP] = 11; - 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] = 6; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - 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; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 2; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = -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] = 19; - node->layout.position[CSS_LEFT] = -6; - node->layout.dimensions[CSS_WIDTH] = 5; - 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.justify_content = CSS_JUSTIFY_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 493; - node->style.margin[CSS_TOP] = 9; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 15; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 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] = 9; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 493; - node->layout.dimensions[CSS_HEIGHT] = 20; - } - - test("Random #905", 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] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -1; - node->style.margin[CSS_BOTTOM] = 9; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_TOP] = 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] = -1; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 6; - } - - test("Random #906", 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 #907", 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 #908", 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.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_RIGHT] = 1; - node->style.position[CSS_LEFT] = 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_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 69; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = -8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 8; - 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] = 1; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 428; - 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] = 13; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 69; - } - } - - test("Random #909", 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] = -6; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - 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_LEFT] = 12; - node->style.padding[CSS_TOP] = 13; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 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] = 8; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 13; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #910", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 194; - node->style.dimensions[CSS_HEIGHT] = 848; - 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_BOTTOM] = 16; - 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] = 2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_TOP] = 2; - node->style.border[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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 12; - node->style.padding[CSS_RIGHT] = 3; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_RIGHT] = 2; - 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] = -1; - node->layout.position[CSS_LEFT] = -1; - node->layout.dimensions[CSS_WIDTH] = 194; - node->layout.dimensions[CSS_HEIGHT] = 848; - 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] = 180; - node->layout.dimensions[CSS_WIDTH] = 7; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #911", 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.dimensions[CSS_WIDTH] = 294; - node->style.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = -6; - 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.padding[CSS_TOP] = 5; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 0; - 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] = 0; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 294; - node->layout.dimensions[CSS_HEIGHT] = 22; - } - - test("Random #912", 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] = 188; - node->style.margin[CSS_LEFT] = 3; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 14; - node->style.border[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] = 3; - node->layout.dimensions[CSS_HEIGHT] = 188; - } - - test("Random #913", 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] = 484; - node->style.dimensions[CSS_HEIGHT] = 352; - node->style.margin[CSS_RIGHT] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 3; - 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] = 484; - node->layout.dimensions[CSS_HEIGHT] = 352; - } - - 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_FLEX_END; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -4; - 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_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] = 22; - node->layout.dimensions[CSS_HEIGHT] = 28; - } - - test("Random #915", 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 #916", 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_RIGHT] = 14; - node->style.padding[CSS_LEFT] = 1; - node->style.padding[CSS_TOP] = 15; - node->style.border[CSS_LEFT] = 0; - node->style.position[CSS_LEFT] = 7; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #917", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 89; - 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_LEFT] = 10; - node->style.margin[CSS_RIGHT] = 14; - 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_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] = 10; - node->layout.dimensions[CSS_WIDTH] = 89; - node->layout.dimensions[CSS_HEIGHT] = 21; - } - - test("Random #918", 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] = -3; - node->style.margin[CSS_TOP] = -3; - node->style.margin[CSS_RIGHT] = -3; - node->style.margin[CSS_BOTTOM] = -3; - node->style.margin[CSS_LEFT] = 0; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_RIGHT] = 7; - node->style.margin[CSS_BOTTOM] = 18; - node->style.padding[CSS_LEFT] = 18; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 7; - 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] = -16; - node->layout.position[CSS_LEFT] = 7; - node->layout.dimensions[CSS_WIDTH] = 22; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #919", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.margin[CSS_LEFT] = 8; - node->style.margin[CSS_RIGHT] = 14; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_BOTTOM] = 0; - 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] = 6; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - - test("Random #920", 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] = 850; - 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_BOTTOM] = 16; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - } - - 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] = 850; - 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.justify_content = CSS_JUSTIFY_CENTER; - node->style.dimensions[CSS_WIDTH] = 855; - 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_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 6; - node->style.padding[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = 1; - 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] = 16; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 855; - node->layout.dimensions[CSS_HEIGHT] = 3; - } - - test("Random #922", 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] = 472; - node->style.margin[CSS_LEFT] = -2; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_LEFT] = 3; - 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] = -2; - node->layout.dimensions[CSS_WIDTH] = 472; - 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; - } - - css_node_t *root_layout = new_css_node(); - { - css_node_t *node = root_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 #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.dimensions[CSS_WIDTH] = 811; - 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] = 1; - node->style.margin[CSS_TOP] = 12; - node->style.margin[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 0; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 811; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - 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.dimensions[CSS_WIDTH] = 18; - 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_LEFT] = 16; - node->style.margin[CSS_BOTTOM] = 9; - 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_TOP] = 5; - 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] = 8; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 18; - node->layout.dimensions[CSS_HEIGHT] = 7; - } - - test("Random #926", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 366; - node->style.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 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] = 10; - node->layout.dimensions[CSS_HEIGHT] = 366; - } - - test("Random #927", 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 #928", 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.dimensions[CSS_WIDTH] = 577; - 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.margin[CSS_BOTTOM] = -6; - node->style.padding[CSS_LEFT] = 3; - node->style.padding[CSS_RIGHT] = 6; - node->style.padding[CSS_BOTTOM] = 0; - node->style.border[CSS_BOTTOM] = 0; - 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] = -3; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 577; - 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_HEIGHT] = 779; - 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_LEFT] = 3; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.padding[CSS_RIGHT] = 17; - 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] = 1; - node->layout.position[CSS_LEFT] = 8; - node->layout.dimensions[CSS_WIDTH] = 17; - node->layout.dimensions[CSS_HEIGHT] = 779; - } - - test("Random #930", 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 #931", 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_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 512; - 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] = 10; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_RIGHT] = 0; - node->style.position[CSS_LEFT] = 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] = 7; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 512; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - - test("Random #932", 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 #933", 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_SPACE_AROUND; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 240; - 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] = 11; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 17; - 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] = -7; - node->layout.position[CSS_LEFT] = 11; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 240; - } - - test("Random #934", 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_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.margin[CSS_TOP] = 5; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 10; - 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] = -8; - 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] = -1; - node->layout.position[CSS_LEFT] = -8; - node->layout.dimensions[CSS_WIDTH] = 32; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #935", 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 #936", 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] = 982; - node->style.dimensions[CSS_HEIGHT] = 365; - node->style.margin[CSS_LEFT] = -9; - node->style.margin[CSS_TOP] = -9; - node->style.margin[CSS_BOTTOM] = 19; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 982; - node->layout.dimensions[CSS_HEIGHT] = 365; - } - - test("Random #937", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 262; - node->style.dimensions[CSS_HEIGHT] = 820; - 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_BOTTOM] = 15; - node->style.padding[CSS_BOTTOM] = 12; - node->style.border[CSS_TOP] = 2; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_self = CSS_ALIGN_CENTER; - 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] = 6; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 9; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_TOP] = 0; - 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] = -1; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 262; - node->layout.dimensions[CSS_HEIGHT] = 820; - 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] = 27; - node->layout.position[CSS_LEFT] = 126.5; - node->layout.dimensions[CSS_WIDTH] = 19; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - } - - test("Random #938", 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] = 861; - 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] = -4; - node->style.margin[CSS_RIGHT] = 5; - node->style.margin[CSS_BOTTOM] = 18; - 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] = -12; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 861; - } - - test("Random #939", 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] = 990; - node->style.margin[CSS_BOTTOM] = -7; - node->style.padding[CSS_RIGHT] = 0; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[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] = 990; - node->layout.dimensions[CSS_HEIGHT] = 4; - } - - test("Random #940", 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.dimensions[CSS_HEIGHT] = 626; - 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_TOP] = -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; - node->style.padding[CSS_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_RIGHT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -10; - node->layout.position[CSS_LEFT] = 9; - node->layout.dimensions[CSS_WIDTH] = 21; - node->layout.dimensions[CSS_HEIGHT] = 626; - } - - test("Random #941", 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 #942", 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 #943", 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.align_items = CSS_ALIGN_CENTER; - 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.margin[CSS_TOP] = -3; - 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] = 4; - node->style.padding[CSS_TOP] = 11; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 17; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.position[CSS_LEFT] = -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_FLEX_END; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_NONE; - 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.margin[CSS_LEFT] = 11; - node->style.margin[CSS_RIGHT] = 17; - 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] = -3; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 62; - node->layout.dimensions[CSS_HEIGHT] = 70; - 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] = 24; - node->layout.position[CSS_LEFT] = 17; - node->layout.dimensions[CSS_WIDTH] = 16; - node->layout.dimensions[CSS_HEIGHT] = 16; - } - } - - test("Random #944", 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 #945", 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.dimensions[CSS_WIDTH] = 948; - 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.margin[CSS_RIGHT] = 12; - node->style.padding[CSS_TOP] = 7; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 948; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #946", 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 #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; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 936; - node->style.margin[CSS_LEFT] = 15; - node->style.margin[CSS_TOP] = -2; - node->style.margin[CSS_RIGHT] = 8; - node->style.padding[CSS_LEFT] = 13; - node->style.padding[CSS_RIGHT] = 15; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_BOTTOM] = 2; - 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]; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.margin[CSS_BOTTOM] = 4; - 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_LEFT] = 0; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_BOTTOM] = 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] = 15; - node->layout.dimensions[CSS_WIDTH] = 936; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 1; - node->layout.dimensions[CSS_HEIGHT] = 10; - } - } - - test("Random #949", 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 #950", 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] = 131; - 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] = 6; - node->style.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = -1; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_RIGHT] = 14; - node->style.border[CSS_BOTTOM] = 2; - 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] = 4; - node->layout.position[CSS_LEFT] = -3; - node->layout.dimensions[CSS_WIDTH] = 131; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #951", 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 #952", 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.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 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_TOP] = 8; - node->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 0; - 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] = 11; - node->layout.dimensions[CSS_HEIGHT] = 15; - } - - test("Random #953", 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 #954", 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 #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.align_items = CSS_ALIGN_STRETCH; - 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] = 2; - 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] = 7; - node->layout.position[CSS_LEFT] = 2; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #956", 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 #957", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 854; - 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] = 14; - node->style.margin[CSS_RIGHT] = 13; - node->style.padding[CSS_LEFT] = 12; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 9; - node->layout.position[CSS_LEFT] = 14; - node->layout.dimensions[CSS_WIDTH] = 854; - 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.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 658; - 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] = 17; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 11; - 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->style.padding[CSS_RIGHT] = 5; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - node->style.position[CSS_LEFT] = 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.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_STRETCH; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 16; - node->style.margin[CSS_TOP] = -4; - node->style.margin[CSS_RIGHT] = -2; - node->style.padding[CSS_LEFT] = 19; - node->style.padding[CSS_TOP] = 19; - node->style.padding[CSS_RIGHT] = 19; - node->style.padding[CSS_BOTTOM] = 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.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_HEIGHT] = 389; - node->style.margin[CSS_LEFT] = -7; - node->style.margin[CSS_BOTTOM] = 1; - 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->style.padding[CSS_LEFT] = 12; - node->style.padding[CSS_BOTTOM] = 15; - 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] = -4; - node->layout.position[CSS_LEFT] = 20; - node->layout.dimensions[CSS_WIDTH] = 95; - node->layout.dimensions[CSS_HEIGHT] = 658; - 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] = 31; - node->layout.dimensions[CSS_WIDTH] = 58; - node->layout.dimensions[CSS_HEIGHT] = 627; - 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] = 16; - node->layout.dimensions[CSS_WIDTH] = 27; - node->layout.dimensions[CSS_HEIGHT] = 588; - } - } - } - - test("Random #959", 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 #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.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_items = CSS_ALIGN_STRETCH; - 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.margin[CSS_TOP] = -6; - node->style.margin[CSS_RIGHT] = 16; - node->style.margin[CSS_BOTTOM] = 4; - 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.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - node->style.border[CSS_TOP] = 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] = -6; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 14; - node->layout.dimensions[CSS_HEIGHT] = 12; - } - - 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_CENTER; - node->style.dimensions[CSS_WIDTH] = 99; - node->style.dimensions[CSS_HEIGHT] = 344; - node->style.margin[CSS_TOP] = 2; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = -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_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_HEIGHT] = 460; - 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_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 1; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[CSS_LEFT] = 4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_NONE; - node->style.margin[CSS_LEFT] = -4; - 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] = 2; - node->layout.position[CSS_LEFT] = -5; - node->layout.dimensions[CSS_WIDTH] = 99; - node->layout.dimensions[CSS_HEIGHT] = 344; - 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] = 47.5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 460; - 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] = 1; - node->layout.position[CSS_LEFT] = -4; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 401; - node->style.margin[CSS_TOP] = 12; - 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_TOP] = 5; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 8; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - 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.align_self = CSS_ALIGN_FLEX_START; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 185; - node->style.dimensions[CSS_HEIGHT] = 789; - 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.margin[CSS_LEFT] = -8; - node->style.margin[CSS_TOP] = 3; - node->style.margin[CSS_RIGHT] = 3; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_TOP] = 13; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 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] = 0; - node->layout.dimensions[CSS_WIDTH] = 401; - node->layout.dimensions[CSS_HEIGHT] = 803; - 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] = 185; - node->layout.dimensions[CSS_HEIGHT] = 789; - } - } - - 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_COLUMN; - node->style.justify_content = CSS_JUSTIFY_CENTER; - node->style.align_items = CSS_ALIGN_STRETCH; - node->style.dimensions[CSS_HEIGHT] = 213; - 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_BOTTOM] = 14; - node->style.border[CSS_LEFT] = 2; - node->style.position[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] = -8; - node->layout.position[CSS_LEFT] = -2; - node->layout.dimensions[CSS_WIDTH] = 2; - node->layout.dimensions[CSS_HEIGHT] = 213; - } - - test("Random #965", 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.dimensions[CSS_WIDTH] = 970; - node->style.dimensions[CSS_HEIGHT] = 552; - 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_LEFT] = 15; - 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.border[CSS_RIGHT] = 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] = 8; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 970; - node->layout.dimensions[CSS_HEIGHT] = 552; - } - - test("Random #966", 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 #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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 73; - node->style.dimensions[CSS_HEIGHT] = 315; - 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] = 10; - node->style.margin[CSS_BOTTOM] = -9; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 14; - 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] = 4; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 73; - node->layout.dimensions[CSS_HEIGHT] = 315; - } - - test("Random #969", 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_WIDTH] = 522; - node->style.dimensions[CSS_HEIGHT] = 333; - 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] = 16; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -9; - node->style.padding[CSS_TOP] = 6; - node->style.padding[CSS_RIGHT] = 2; - node->style.padding[CSS_BOTTOM] = 5; - node->style.border[CSS_TOP] = 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] = 5; - node->layout.position[CSS_LEFT] = 16; - node->layout.dimensions[CSS_WIDTH] = 522; - node->layout.dimensions[CSS_HEIGHT] = 333; - } - - test("Random #970", 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 #971", 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] = 1; - node->style.margin[CSS_TOP] = 1; - node->style.margin[CSS_RIGHT] = 1; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_TOP] = 14; - node->style.padding[CSS_RIGHT] = 11; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = 1; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 17; - } - - 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_LEFT] = 2; - node->style.margin[CSS_TOP] = 2; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 2; - node->style.margin[CSS_LEFT] = 17; - node->style.padding[CSS_RIGHT] = 10; - node->style.padding[CSS_BOTTOM] = 5; - 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] = 6; - node->layout.position[CSS_LEFT] = 25; - node->layout.dimensions[CSS_WIDTH] = 10; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #973", 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_END; - node->style.align_items = CSS_ALIGN_FLEX_START; - node->style.dimensions[CSS_WIDTH] = 849; - node->style.dimensions[CSS_HEIGHT] = 51; - 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_RIGHT] = 17; - node->style.margin[CSS_BOTTOM] = 3; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - 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] = 21; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 849; - node->layout.dimensions[CSS_HEIGHT] = 51; - } - - test("Random #974", 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_CENTER; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_BOTTOM] = 0; - node->style.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 2; - node->style.border[CSS_TOP] = 3; - 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - 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_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 275; - node->style.margin[CSS_LEFT] = -4; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_LEFT] = 3; - node->style.position[CSS_LEFT] = -7; - 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] = -11; - node->layout.dimensions[CSS_WIDTH] = 3; - node->layout.dimensions[CSS_HEIGHT] = 275; - } - - test("Random #976", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 937; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_BOTTOM] = 0; - 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_TOP] = 9; - node->style.padding[CSS_BOTTOM] = 7; - node->style.border[CSS_LEFT] = 3; - node->style.border[CSS_TOP] = 3; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 3; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_BOTTOM] = 3; - node->style.position[CSS_LEFT] = -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_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.dimensions[CSS_WIDTH] = 956; - node->style.dimensions[CSS_HEIGHT] = 694; - 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_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = 3; - 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.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[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] = -2; - node->layout.dimensions[CSS_WIDTH] = 971; - node->layout.dimensions[CSS_HEIGHT] = 937; - 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] = 127.5; - node->layout.position[CSS_LEFT] = 6; - node->layout.dimensions[CSS_WIDTH] = 956; - node->layout.dimensions[CSS_HEIGHT] = 694; - } - } - - test("Random #977", 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 #978", 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] = 521; - node->style.margin[CSS_LEFT] = -5; - node->style.margin[CSS_TOP] = 0; - node->style.margin[CSS_RIGHT] = -10; - node->style.margin[CSS_BOTTOM] = -6; - 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_LEFT] = 18; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 7; - node->style.padding[CSS_BOTTOM] = 19; - node->style.border[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] = -5; - node->layout.dimensions[CSS_WIDTH] = 521; - node->layout.dimensions[CSS_HEIGHT] = 27; - } - - test("Random #979", 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_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.margin[CSS_LEFT] = 13; - node->style.margin[CSS_TOP] = 10; - node->style.margin[CSS_RIGHT] = 8; - node->style.margin[CSS_BOTTOM] = -2; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_BOTTOM] = 4; - node->style.border[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] = 13; - node->layout.dimensions[CSS_WIDTH] = 0; - node->layout.dimensions[CSS_HEIGHT] = 11; - } - - test("Random #980", 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_END; - node->style.dimensions[CSS_WIDTH] = 644; - 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.margin[CSS_RIGHT] = 17; - node->style.padding[CSS_LEFT] = 4; - node->style.border[CSS_LEFT] = 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] = 7; - node->layout.dimensions[CSS_WIDTH] = 644; - node->layout.dimensions[CSS_HEIGHT] = 0; - } - - test("Random #981", 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 #982", 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; - node->style.dimensions[CSS_HEIGHT] = 572; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_RIGHT] = 10; - node->style.border[CSS_LEFT] = 2; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_RIGHT] = 2; - node->style.border[CSS_BOTTOM] = 2; - 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] = 5; - node->layout.position[CSS_LEFT] = 0; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 572; - } - - test("Random #983", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 32; - 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] = 19; - node->style.margin[CSS_TOP] = 3; - node->style.padding[CSS_LEFT] = 10; - node->style.padding[CSS_TOP] = 7; - node->style.padding[CSS_RIGHT] = 18; - node->style.padding[CSS_BOTTOM] = 9; - node->style.border[CSS_BOTTOM] = 3; - 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] = 3; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 28; - node->layout.dimensions[CSS_HEIGHT] = 32; - } - - test("Random #984", 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.dimensions[CSS_WIDTH] = 336; - node->style.dimensions[CSS_HEIGHT] = 666; - 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.margin[CSS_RIGHT] = -9; - 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.padding[CSS_LEFT] = 0; - node->style.padding[CSS_TOP] = 4; - 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] = 10; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 336; - node->layout.dimensions[CSS_HEIGHT] = 666; - } - - test("Random #985", 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.dimensions[CSS_WIDTH] = 45; - 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_RIGHT] = 2; - node->style.margin[CSS_BOTTOM] = -4; - node->style.padding[CSS_TOP] = 11; - node->style.border[CSS_TOP] = 0; - node->style.position[CSS_TOP] = 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.flex_direction = CSS_FLEX_DIRECTION_ROW; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_HEIGHT] = 522; - 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] = 10; - node->style.margin[CSS_TOP] = 8; - node->style.margin[CSS_RIGHT] = 6; - node->style.margin[CSS_BOTTOM] = 6; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_BOTTOM] = 3; - node = &outer_node_1->children[1]; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; - node->style.flex = CSS_FLEX_ONE; - node->style.dimensions[CSS_WIDTH] = 788; - node->style.dimensions[CSS_HEIGHT] = 288; - 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_TOP] = 8; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 0; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 45; - node->layout.dimensions[CSS_HEIGHT] = 547; - 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] = 10; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 522; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 265; - node->layout.position[CSS_LEFT] = 10; - node->layout.dimensions[CSS_WIDTH] = 45; - node->layout.dimensions[CSS_HEIGHT] = 288; - } - } - - test("Random #986", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_WIDTH] = 690; - node->style.margin[CSS_LEFT] = 18; - node->style.margin[CSS_RIGHT] = -10; - node->style.position[CSS_LEFT] = 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] = 20; - node->layout.dimensions[CSS_WIDTH] = 690; - 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_CENTER; - node->style.dimensions[CSS_WIDTH] = 388; - 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] = -1; - node->style.margin[CSS_RIGHT] = 0; - node->style.margin[CSS_BOTTOM] = 16; - node->style.padding[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 2; - node->style.border[CSS_BOTTOM] = 3; - } - - 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] = -1; - node->layout.dimensions[CSS_WIDTH] = 388; - node->layout.dimensions[CSS_HEIGHT] = 5; - } - - test("Random #988", 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_CENTER; - node->style.dimensions[CSS_HEIGHT] = 951; - 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] = 13; - node->style.margin[CSS_TOP] = -10; - node->style.margin[CSS_RIGHT] = 1; - 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.flex = CSS_FLEX_NONE; - node->style.dimensions[CSS_WIDTH] = 450; - node->style.dimensions[CSS_HEIGHT] = 863; - 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; - node->style.padding[CSS_RIGHT] = 10; - node->style.border[CSS_RIGHT] = 2; - node = &outer_node_1->children[1]; - node->style.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.align_items = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 12; - node->style.margin[CSS_TOP] = 14; - node->style.margin[CSS_BOTTOM] = 13; - node->style.padding[CSS_BOTTOM] = 16; - node->style.border[CSS_LEFT] = 1; - node->style.position[CSS_LEFT] = 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.flex_direction = CSS_FLEX_DIRECTION_COLUMN; - node->style.justify_content = CSS_JUSTIFY_FLEX_END; - node->style.align_self = CSS_ALIGN_FLEX_END; - node->style.position_type = CSS_POSITION_RELATIVE; - node->style.margin[CSS_LEFT] = 5; - node->style.margin[CSS_RIGHT] = 15; - node->style.padding[CSS_TOP] = 12; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_RIGHT] = 3; - node->style.border[CSS_BOTTOM] = 1; - 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] = -10; - node->layout.position[CSS_LEFT] = 13; - node->layout.dimensions[CSS_WIDTH] = 453; - node->layout.dimensions[CSS_HEIGHT] = 951; - 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] = 5; - node->layout.position[CSS_LEFT] = 5; - node->layout.dimensions[CSS_WIDTH] = 450; - node->layout.dimensions[CSS_HEIGHT] = 863; - node = &outer_node_1->children[1]; - node->layout.position[CSS_TOP] = 887; - node->layout.position[CSS_LEFT] = 224; - node->layout.dimensions[CSS_WIDTH] = 25; - 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] = 0; - node->layout.position[CSS_LEFT] = 12; - node->layout.dimensions[CSS_WIDTH] = 4; - node->layout.dimensions[CSS_HEIGHT] = 13; - } - } - } - - test("Random #989", 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_STRETCH; - node->style.dimensions[CSS_WIDTH] = 350; - node->style.margin[CSS_LEFT] = 10; - node->style.margin[CSS_RIGHT] = -9; - node->style.margin[CSS_BOTTOM] = -5; - node->style.padding[CSS_LEFT] = 8; - node->style.padding[CSS_TOP] = 8; - node->style.padding[CSS_RIGHT] = 8; - node->style.padding[CSS_BOTTOM] = 8; - node->style.padding[CSS_BOTTOM] = 10; - node->style.border[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] = 10; - node->layout.dimensions[CSS_WIDTH] = 350; - node->layout.dimensions[CSS_HEIGHT] = 18; - } - - test("Random #990", 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 #991", 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 #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_SPACE_BETWEEN; - node->style.dimensions[CSS_WIDTH] = 326; - node->style.margin[CSS_LEFT] = 7; - node->style.margin[CSS_RIGHT] = 9; - 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.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] = 7; - node->layout.dimensions[CSS_WIDTH] = 326; - node->layout.dimensions[CSS_HEIGHT] = 2; - } - - test("Random #993", root_node, root_layout); - } - - { - css_node_t *root_node = new_css_node(); - { - css_node_t *node = root_node; - node->style.dimensions[CSS_HEIGHT] = 680; - 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] = 11; - node->style.margin[CSS_BOTTOM] = 1; - node->style.padding[CSS_LEFT] = 4; - node->style.padding[CSS_RIGHT] = 7; - node->style.border[CSS_RIGHT] = 0; - node->style.border[CSS_BOTTOM] = 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] = 5; - node->layout.dimensions[CSS_WIDTH] = 11; - node->layout.dimensions[CSS_HEIGHT] = 680; - } - - test("Random #994", 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_WIDTH] = 146; - node->style.dimensions[CSS_HEIGHT] = 252; - 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] = 15; - node->style.padding[CSS_TOP] = 6; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 3; - 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] = 18; - node->layout.position[CSS_LEFT] = 15; - node->layout.dimensions[CSS_WIDTH] = 146; - node->layout.dimensions[CSS_HEIGHT] = 252; - } - - test("Random #995", 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] = 436; - node->style.dimensions[CSS_HEIGHT] = 18; - 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.margin[CSS_TOP] = 4; - node->style.margin[CSS_RIGHT] = 4; - 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] = 6; - node->style.padding[CSS_BOTTOM] = 16; - node->style.position[CSS_LEFT] = 9; - 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] = 13; - node->layout.position[CSS_LEFT] = 19; - node->layout.dimensions[CSS_WIDTH] = 436; - node->layout.dimensions[CSS_HEIGHT] = 23; - } - - test("Random #996", 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 #997", 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 #998", 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.align_items = CSS_ALIGN_FLEX_END; - node->style.dimensions[CSS_WIDTH] = 127; - node->style.dimensions[CSS_HEIGHT] = 85; - node->style.margin[CSS_RIGHT] = -3; - node->style.padding[CSS_TOP] = 1; - node->style.border[CSS_LEFT] = 0; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_BOTTOM] = 0; - node->style.position[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.align_items = CSS_ALIGN_CENTER; - node->style.align_self = CSS_ALIGN_CENTER; - node->style.position_type = CSS_POSITION_ABSOLUTE; - node->style.dimensions[CSS_WIDTH] = 853; - node->style.dimensions[CSS_HEIGHT] = 222; - node->style.margin[CSS_LEFT] = 1; - node->style.margin[CSS_RIGHT] = 19; - node->style.margin[CSS_BOTTOM] = 5; - 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_LEFT] = 18; - node->style.padding[CSS_RIGHT] = 6; - node->style.border[CSS_LEFT] = 1; - node->style.border[CSS_TOP] = 1; - node->style.border[CSS_RIGHT] = 1; - node->style.border[CSS_BOTTOM] = 1; - node->style.border[CSS_BOTTOM] = 3; - 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] = 127; - node->layout.dimensions[CSS_HEIGHT] = 85; - 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] = 853; - node->layout.dimensions[CSS_HEIGHT] = 222; - } - } - - test("Random #999", root_node, root_layout); - } } diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index e3d49c1f..5134b66d 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -747,32 +747,32 @@ describe('Layout', function() { it('should layout node with just text', function() { testLayout( - {style: {measure: text('kikoo')}}, - {width: 36, height: 18, top: 0, left: 0} + {style: {measure: text('small')}}, + {width: 33, height: 18, top: 0, left: 0} ) }); it('should layout node with text and width', function() { testLayout( - {style: {measure: text('kikoo loool'), width: 10}}, - {width: 10, height: 36, top: 0, left: 0} + {style: {measure: text('small'), width: 10}}, + {width: 10, height: 18, top: 0, left: 0} ) }); it('should layout node with text, padding and margin', function() { testLayout( - {style: {measure: text('kikoo loool'), padding: 5, margin: 5}}, - {width: 82, height: 28, top: 5, left: 5} + {style: {measure: text('loooooooooong with space'), padding: 5, margin: 5}}, + {width: 181, height: 28, top: 5, left: 5} ) }); it('should layout node with text and position absolute', function() { testLayout( {style: {}, children: [ - {style: {measure: text('kikoo loool'), position: 'absolute'}} + {style: {measure: text('loooooooooong with space'), position: 'absolute'}} ]}, {width: 0, height: 0, top: 0, left: 0, children: [ - {width: 36, height: 36, top: 0, left: 0} + {width: 100, height: 36, top: 0, left: 0} ]} ) }); @@ -835,7 +835,7 @@ describe('Layout', function() { randEnum(node, 0.5, 'alignSelf', ['flex-start', 'center', 'flex-end', 'stretch']); randEnum(node, 0.5, 'flex', ['none', 1]); randEnum(node, 0.5, 'position', ['relative', 'absolute']); - randEnum(node, 0.5, 'measure', [text('kikoo'), text('kikooooooooooooo looool')]); + randEnum(node, 0.5, 'measure', [text('small'), text('loooooooooong with space')]); randChildren(node, 0.2); return node; } diff --git a/src/transpile.html b/src/transpile.html index a85abe18..a5dcb457 100644 --- a/src/transpile.html +++ b/src/transpile.html @@ -13,7 +13,7 @@ textarea {

layoutCode