mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
78 lines
1.7 KiB
JSON
78 lines
1.7 KiB
JSON
{
|
|
"description": "Text elements and text ranges with strike",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
],
|
|
"templates": {
|
|
"wrap_content_text": {
|
|
"type": "text",
|
|
"width": {
|
|
"type": "wrap_content"
|
|
}
|
|
}
|
|
},
|
|
"card": {
|
|
"log_id": "snapshot_test_card",
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "container",
|
|
"width": {
|
|
"type": "wrap_content"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "wrap_content_text",
|
|
"text": "Single strike",
|
|
"strike": "single"
|
|
},
|
|
{
|
|
"type": "wrap_content_text",
|
|
"text": "No strike",
|
|
"strike": "none"
|
|
},
|
|
{
|
|
"type": "wrap_content_text",
|
|
"text": "Partial strike",
|
|
"ranges": [
|
|
{
|
|
"start": 0,
|
|
"end": 7,
|
|
"strike": "single"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "wrap_content_text",
|
|
"text": "Excluded strike",
|
|
"strike": "single",
|
|
"ranges": [
|
|
{
|
|
"start": 0,
|
|
"end": 8,
|
|
"strike": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "wrap_content_text",
|
|
"text": "Unaffected strike",
|
|
"strike": "single",
|
|
"ranges": [
|
|
{
|
|
"start": 0,
|
|
"end": 8
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|