Files
divkit/test_data/snapshot_test_data/div-container/overlap-container-alignment.json
T
man-y eed44f448f Mark flutter platform supported tests
commit_hash:a80884f8d89a14490cb02e5278507f93ef7fb589
2025-01-13 16:09:03 +03:00

129 lines
3.2 KiB
JSON

{
"description": "Overlap container alignmnet. Foreground text should be on the left and foreground, background text should be on the right and background.",
"platforms": [
"android",
"ios",
"web",
"flutter"
],
"templates": {
"big_text": {
"font_size": 11,
"line_height": 12,
"type": "text"
}
},
"card": {
"log_id": "test_logId",
"states": [
{
"state_id": 0,
"div": {
"height": {
"type": "fixed",
"value": 300
},
"items": [
{
"background": [
{
"color": "#FFFFFF",
"type": "solid"
}
],
"border": {
"corner_radius": 7,
"stroke": {
"color": "#000000",
"width": 1
}
},
"content_alignment_vertical": "center",
"height": {
"type": "fixed",
"value": 30
},
"items": [
{
"font_family": "display",
"paddings": {
"left": 18
},
"text": "placeholder left text",
"text_color": "#FFFFFF",
"type": "big_text"
},
{
"paddings": {
"left": 10,
"top": 5,
"bottom": 5,
"right": 10
},
"text": "background right text",
"type": "big_text"
}
],
"orientation": "horizontal",
"paddings": {
"bottom": 5,
"left": 10,
"right": 10,
"top": 5
},
"type": "container",
"width": {
"type": "fixed",
"value": 280
}
},
{
"background": [
{
"color": "#20d379",
"type": "solid"
}
],
"border": {
"corner_radius": 7
},
"content_alignment_vertical": "center",
"height": {
"type": "fixed",
"value": 30
},
"items": [
{
"font_family": "display",
"paddings": {
"left": 2
},
"text": "foreground left text",
"type": "big_text"
}
],
"orientation": "horizontal",
"paddings": {
"bottom": 5,
"left": 10,
"top": 5,
"right": 10
},
"type": "container",
"width": {
"type": "fixed",
"value": 125
}
}
],
"orientation": "overlap",
"type": "container",
"width": {
"type": "wrap_content"
}
}
}
]
}
}