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

84 lines
1.9 KiB
JSON

{
"description": "RTL and LTR text aligned to start/end in LTR layout direction context. Text should be aligned according the title of the text-block.",
"platforms": [
"android",
"ios",
"web",
"flutter"
],
"templates": {
"text_block": {
"type": "text",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"alpha": 1,
"alignment_horizontal": "center",
"alignment_vertical": "center",
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"font_size": 18,
"font_weight": "medium",
"text_alignment_vertical": "center",
"text_color": "#000000"
}
},
"card": {
"log_id": "container",
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "text_block",
"text_alignment_horizontal": "start",
"text": "LTR text aligned to START"
},
{
"type": "text_block",
"text_alignment_horizontal": "end",
"text": "LTR text aligned to END"
},
{
"type": "text_block",
"text_alignment_horizontal": "start",
"text": "تمت محاذاة نص RTL إلى START"
},
{
"type": "text_block",
"text_alignment_horizontal": "end",
"text": "تمت محاذاة نص RTL إلى END"
}
]
}
}
]
}
}