| 1 | { |
| 2 | "$comment": "Generated by scripts/conformance/build.ts: the test channel, in posting order. A test bot sends each widget as a layer-233 message (inputMediaWidget: html = the file, width / height = the anchors, 0 = auto) with its caption (none with `withoutCaption`, shown above the widget with `captionAbove`, Bot API show_caption_above_media / layer-233 invert_media: the client then draws the message time over the bottom corner of the widget, docs/sdk-v1.md §2.17), then the photos (the reference pictures, light then dark) as a separate message next to it. A post with `message` is sent with those fields (allow_queries, fwd_allow_queries, shared_widget, chat_data, public_data), into the test group when chat is group, forwarded by the tester when forward, or as the inline result for the query conf-preview when inline; its kind is the message context the client must report where the tester looks. `bot`: what the test bot does on a widget_query with that data (scripts/conformance/test-bot.ts; templates {n}, {from}, {time}).", |
| 3 |
| 4 | "posts": [ |
| 5 | { |
| 6 | "widget": "visual/01-boxes.html", |
| 7 | "width": 0, |
| 8 | "height": 0, |
| 9 | "caption": "visual/01-boxes · Boxes: borders, radius, shadows, outline, opacity, overflow clipping. Each box should look like the reference picture posted next to this message.", |
| 10 | "photos": [ |
| 11 | "refs/visual/01-boxes.png" |
| 12 | ], |
| 13 | "zlib": 1998 |
| 14 | }, |
| 15 | { |
| 16 | "widget": "visual/02-colours-gradients.html", |
| 17 | "width": 0, |
| 18 | "height": 0, |
| 19 | "caption": "visual/02-colours-gradients · Colours and gradients: linear, radial, conic; named, hex, rgb() and hsl() colours; colour functions out (hwb, lab, oklch, color(), color-mix); background images. Each box should look like the reference picture posted next to this message.", |
| 20 | "photos": [ |
| 21 | "refs/visual/02-colours-gradients.png" |
| 22 | ], |
| 23 | "zlib": 2459 |
| 24 | }, |
| 25 | { |
| 26 | "widget": "visual/03-text-a.html", |
| 27 | "width": 0, |
| 28 | "height": 0, |
| 29 | "caption": "visual/03-text-a · Text (1/2): system font families, weights, decoration, alignment. Fonts differ between platforms: compare the structure (which line is bold, where text breaks, what is underlined), not the exact letter shapes.", |
| 30 | "photos": [ |
| 31 | "refs/visual/03-text-a.png" |
| 32 | ], |
| 33 | "zlib": 2102 |
| 34 | }, |
| 35 | { |
| 36 | "widget": "visual/03-text-b.html", |
| 37 | "width": 0, |
| 38 | "height": 0, |
| 39 | "caption": "visual/03-text-b · Text (2/2): ellipsis, RTL and Arabic shaping, emoji; line clamp and text-shadow out. Fonts differ between platforms: compare the structure (which line is bold, where text breaks, what is underlined), not the exact letter shapes.", |
| 40 | "photos": [ |
| 41 | "refs/visual/03-text-b.png" |
| 42 | ], |
| 43 | "zlib": 2302 |
| 44 | }, |
| 45 | { |
| 46 | "widget": "visual/04-layout.html", |
| 47 | "width": 0, |
| 48 | "height": 0, |
| 49 | "caption": "visual/04-layout · Layout: flex with gap, grid, table, positioning and z-index, float; multi-column out. Each box should look like the reference picture posted next to this message.", |
| 50 | "photos": [ |
| 51 | "refs/visual/04-layout.png" |
| 52 | ], |
| 53 | "zlib": 2424 |
| 54 | }, |
| 55 | { |
| 56 | "widget": "visual/05-transforms-effects-a.html", |
| 57 | "width": 0, |
| 58 | "height": 0, |
| 59 | "caption": "visual/05-transforms-effects-a · Transforms and effects (1/2): 2D transforms; 3D transforms out (must look flat); filter blur, brightness, drop-shadow. Each box should look like the reference picture posted next to this message. The 3D row must look flat.", |
| 60 | "photos": [ |
| 61 | "refs/visual/05-transforms-effects-a.png" |
| 62 | ], |
| 63 | "zlib": 2317 |
| 64 | }, |
| 65 | { |
| 66 | "widget": "visual/05-transforms-effects-b.html", |
| 67 | "width": 0, |
| 68 | "height": 0, |
| 69 | "caption": "visual/05-transforms-effects-b · Transforms and effects (2/2): backdrop-filter blur/brightness; other filters, blend modes, clip-path and mask out. Each box should look like the reference picture posted next to this message.", |
| 70 | "photos": [ |
| 71 | "refs/visual/05-transforms-effects-b.png" |
| 72 | ], |
| 73 | "zlib": 2132 |
| 74 | }, |
| 75 | { |
| 76 | "widget": "visual/06-css-animations.html", |
| 77 | "width": 0, |
| 78 | "height": 0, |
| 79 | "caption": "visual/06-css-animations · CSS animations and transitions, live: slide, spin, pulse, steps, a frozen frame, a transition on tap. Moving rows: the box should move as the caption says (the picture shows the frames it moves between). Frozen row: must match exactly. Tap the last box once.", |
| 80 | "photos": [ |
| 81 | "refs/visual/06-css-animations.png" |
| 82 | ], |
| 83 | "zlib": 2904 |
| 84 | }, |
| 85 | { |
| 86 | "widget": "visual/07-web-animations.html", |
| 87 | "width": 0, |
| 88 | "height": 0, |
| 89 | "caption": "visual/07-web-animations · Web Animations (element.animate, pause and seek, keyframe offsets, control of CSS animations). Top row moves; the other rows are frozen by script and must match the picture exactly. Tap the bouncing ball to stop it half-way.", |
| 90 | "photos": [ |
| 91 | "refs/visual/07-web-animations.png" |
| 92 | ], |
| 93 | "zlib": 2669 |
| 94 | }, |
| 95 | { |
| 96 | "widget": "visual/08-canvas-a.html", |
| 97 | "width": 0, |
| 98 | "height": 0, |
| 99 | "caption": "visual/08-canvas-a · Canvas 2D (1/2): shapes and paths, line styles, colours, gradients, text, alpha. Each canvas should look like the reference picture posted next to this message.", |
| 100 | "photos": [ |
| 101 | "refs/visual/08-canvas-a.png" |
| 102 | ], |
| 103 | "zlib": 2554 |
| 104 | }, |
| 105 | { |
| 106 | "widget": "visual/08-canvas-b.html", |
| 107 | "width": 0, |
| 108 | "height": 0, |
| 109 | "caption": "visual/08-canvas-b · Canvas 2D (2/2): transforms and clipping; shadows, ctx.filter, conic gradients and patterns out; a chart. Each canvas should look like the reference picture posted next to this message.", |
| 110 | "photos": [ |
| 111 | "refs/visual/08-canvas-b.png" |
| 112 | ], |
| 113 | "zlib": 2732 |
| 114 | }, |
| 115 | { |
| 116 | "widget": "visual/09-svg-a.html", |
| 117 | "width": 0, |
| 118 | "height": 0, |
| 119 | "caption": "visual/09-svg-a · Inline SVG (1/2): shapes, structure and viewBox, gradients, text. Each picture should look like the reference picture posted next to this message.", |
| 120 | "photos": [ |
| 121 | "refs/visual/09-svg-a.png" |
| 122 | ], |
| 123 | "zlib": 2374 |
| 124 | }, |
| 125 | { |
| 126 | "widget": "visual/09-svg-b.html", |
| 127 | "width": 0, |
| 128 | "height": 0, |
| 129 | "caption": "visual/09-svg-b · Inline SVG (2/2): CSS on SVG; clipPath/mask, filters and SMIL out. Each picture should look like the reference picture posted next to this message. Nothing moves: SMIL is out.", |
| 130 | "photos": [ |
| 131 | "refs/visual/09-svg-b.png" |
| 132 | ], |
| 133 | "zlib": 2344 |
| 134 | }, |
| 135 | { |
| 136 | "widget": "visual/10-images.html", |
| 137 | "width": 0, |
| 138 | "height": 0, |
| 139 | "caption": "visual/10-images · Images: data: PNG, JPEG, GIF, WebP; object-fit; background images; SVG images, BMP/ICO and remote URLs out (placeholder). Each row should look like the reference picture posted next to this message.", |
| 140 | "photos": [ |
| 141 | "refs/visual/10-images.png" |
| 142 | ], |
| 143 | "zlib": 3143 |
| 144 | }, |
| 145 | { |
| 146 | "widget": "visual/11-interaction.html", |
| 147 | "width": 0, |
| 148 | "height": 0, |
| 149 | "caption": "visual/11-interaction · Taps, pressed state, details, drag, hover (desktop), link opening with confirmation. Do what each row says; the widget shows ✓ when it saw the input.", |
| 150 | "photos": [ |
| 151 | "refs/visual/11-interaction.png" |
| 152 | ], |
| 153 | "zlib": 3130 |
| 154 | }, |
| 155 | { |
| 156 | "widget": "visual/12-theme.html", |
| 157 | "width": 0, |
| 158 | "height": 0, |
| 159 | "caption": "visual/12-theme · Theme: light-dark(), prefers-color-scheme and onTheme follow the chat theme live; the --tg-theme-* palette. Switch the chat between light and dark: the live box must match the picture for the current theme.", |
| 160 | "photos": [ |
| 161 | "refs/visual/12-theme.png", |
| 162 | "refs/visual/12-theme.dark.png" |
| 163 | ], |
| 164 | "zlib": 1966 |
| 165 | }, |
| 166 | { |
| 167 | "widget": "visual/13-out-of-profile.html", |
| 168 | "width": 0, |
| 169 | "height": 0, |
| 170 | "caption": "visual/13-out-of-profile · Out of the profile, neutralised the same way everywhere: form controls, inner scrolling, sticky, named fonts, 3D, popover over the chat. Each box must look like the reference picture: the out-of-profile feature is simply not there. The popover is dropped: its red box is an ordinary block in the bubble, shown from the start. Tap “Show popover”: nothing changes, and nothing may appear outside this bubble.", |
| 171 | "photos": [ |
| 172 | "refs/visual/13-out-of-profile.png" |
| 173 | ], |
| 174 | "zlib": 2722 |
| 175 | }, |
| 176 | { |
| 177 | "widget": "visual/14-unstyled-document.html", |
| 178 | "width": 0, |
| 179 | "height": 0, |
| 180 | "caption": "visual/14-unstyled-document · Unstyled document: the renderer's defaults for the root and the text (no CSS at all). Compare with the picture for the chat's theme: the bubble's own colour behind the text, the chat's text size, the same spacing, a table with row lines, the button in the client's style. Change the chat text size: the text follows.", |
| 181 | "photos": [ |
| 182 | "refs/visual/14-unstyled-document.png", |
| 183 | "refs/visual/14-unstyled-document.dark.png" |
| 184 | ], |
| 185 | "zlib": 1658 |
| 186 | }, |
| 187 | { |
| 188 | "widget": "visual/15-body-background.html", |
| 189 | "width": 0, |
| 190 | "height": 0, |
| 191 | "caption": "visual/15-body-background · A body background without a margin reset fills the whole bubble (root background propagation). The whole bubble is dark blue, edge to edge: no strip of the bubble's own colour around the text, in either theme.", |
| 192 | "photos": [ |
| 193 | "refs/visual/15-body-background.png", |
| 194 | "refs/visual/15-body-background.dark.png" |
| 195 | ], |
| 196 | "zlib": 1348 |
| 197 | }, |
| 198 | { |
| 199 | "widget": "visual/16-selection.html", |
| 200 | "width": 0, |
| 201 | "height": 0, |
| 202 | "caption": "visual/16-selection · Text selection: nothing is selectable by default; user-select: text makes a paragraph selectable, its children included. Select text the way your client selects message text (on a phone through the bubble's menu, with a mouse by dragging): only the blue-bordered paragraph can be selected, the bold word in it too, and copying gives its text.", |
| 203 | "photos": [ |
| 204 | "refs/visual/16-selection.png" |
| 205 | ], |
| 206 | "zlib": 1750 |
| 207 | }, |
| 208 | { |
| 209 | "widget": "visual/17-time-corner.html", |
| 210 | "width": 0, |
| 211 | "height": 0, |
| 212 | "withoutCaption": true, |
| 213 | "caption": "visual/17-time-corner · The client's time over the bottom corner of a widget with no caption below it: the widget keeps clear of it with env(safe-area-inset-bottom) and --tg-content-safe-area-corner-*. No caption below this widget (none, or one above it): the time with its ticks sits over the bottom right corner (bottom left in a right-to-left interface) on a dark backing, inside the lighter corner box. The blue footer reaches the bubble's bottom edge; its last line runs beside the time, never under it. A tap on the time does nothing in the widget. Sent without a caption: your time over the widget's bottom corner.", |
| 214 | "photos": [ |
| 215 | "refs/visual/17-time-corner.png" |
| 216 | ], |
| 217 | "zlib": 2423 |
| 218 | }, |
| 219 | { |
| 220 | "widget": "visual/17-time-corner.html", |
| 221 | "width": 0, |
| 222 | "height": 0, |
| 223 | "captionAbove": true, |
| 224 | "variant": "caption-above", |
| 225 | "caption": "visual/17-time-corner · The client's time over the bottom corner of a widget with no caption below it: the widget keeps clear of it with env(safe-area-inset-bottom) and --tg-content-safe-area-corner-*. No caption below this widget (none, or one above it): the time with its ticks sits over the bottom right corner (bottom left in a right-to-left interface) on a dark backing, inside the lighter corner box. The blue footer reaches the bubble's bottom edge; its last line runs beside the time, never under it. A tap on the time does nothing in the widget. Sent with its caption above the widget (invert_media): your time over the widget's bottom corner, as without a caption.", |
| 226 | "photos": [ |
| 227 | "refs/visual/17-time-corner.png" |
| 228 | ], |
| 229 | "zlib": 2423 |
| 230 | }, |
| 231 | { |
| 232 | "widget": "visual/sdk/01-link-external.html", |
| 233 | "width": 0, |
| 234 | "height": 0, |
| 235 | "caption": "visual/sdk/01-link-external · openLink: the confirmation shows the full URL. Tap each button. Each time the client asks first and shows the whole URL (path, query; the IDN host in its xn-- form), then opens the browser. The client must: A native confirmation with the full URL and Open / Cancel; Open goes to the browser (or the in-app browser, as the client usually does).", |
| 236 | "photos": [ |
| 237 | "refs/visual/sdk/01-link-external.png" |
| 238 | ], |
| 239 | "zlib": 1734 |
| 240 | }, |
| 241 | { |
| 242 | "widget": "visual/sdk/02-link-telegram.html", |
| 243 | "width": 0, |
| 244 | "height": 0, |
| 245 | "caption": "visual/sdk/02-link-telegram · openTelegramLink: t.me links open inside the client. Tap each button: the link opens inside Telegram (a channel, a post, a user), never in a browser. The client must: The client's own t.me handling, with its usual confirmations; no external browser.", |
| 246 | "photos": [ |
| 247 | "refs/visual/sdk/02-link-telegram.png" |
| 248 | ], |
| 249 | "zlib": 1569 |
| 250 | }, |
| 251 | { |
| 252 | "widget": "visual/sdk/03-link-rejected.html", |
| 253 | "width": 0, |
| 254 | "height": 0, |
| 255 | "caption": "visual/sdk/03-link-rejected · Invalid links and links over 256 characters are rejected. Tap Try all: no dialog may appear for the bad links; then tap the 256-character link: that one asks. The client must: No dialog for a non-https URL, user info, javascript:, tg:, a t.me URL through openLink or a 257-character URL (the widget gets a TypeError); a dialog for the 256-character one.", |
| 256 | "photos": [ |
| 257 | "refs/visual/sdk/03-link-rejected.png" |
| 258 | ], |
| 259 | "zlib": 1885 |
| 260 | }, |
| 261 | { |
| 262 | "widget": "visual/sdk/04-link-timer.html", |
| 263 | "width": 0, |
| 264 | "height": 0, |
| 265 | "caption": "visual/sdk/04-link-timer · Links need a press: a timer cannot open one, one press opens one link. Tap the first button and wait 2 s: nothing opens. Tap the second: exactly one dialog, not two. The client must: No dialog from the timer (the host drops it as activation-blocked); one dialog for the two calls of one press.", |
| 266 | "photos": [ |
| 267 | "refs/visual/sdk/04-link-timer.png" |
| 268 | ], |
| 269 | "zlib": 1539 |
| 270 | }, |
| 271 | { |
| 272 | "widget": "visual/sdk/05-haptics.html", |
| 273 | "width": 0, |
| 274 | "height": 0, |
| 275 | "caption": "visual/sdk/05-haptics · Haptics: every impact style, notification type and selection. On a phone tap each button: each one is felt, and they feel different. Desktop and web: nothing happens, no error. The client must: impact light/medium/heavy/rigid/soft, notification error/success/warning, selection played with the platform's generators; nothing on desktop and web.", |
| 276 | "photos": [ |
| 277 | "refs/visual/sdk/05-haptics.png" |
| 278 | ], |
| 279 | "zlib": 1619 |
| 280 | }, |
| 281 | { |
| 282 | "widget": "visual/sdk/06-haptics-rate.html", |
| 283 | "width": 0, |
| 284 | "height": 0, |
| 285 | "caption": "visual/sdk/06-haptics-rate · Haptics rate limit: a burst of 5, then 10 per second. On a phone: Burst asks for 20 at once, you feel 5. Stream asks for 100 over 2 s, you feel about 25. Hidden: tap, scroll the bubble away within a second, nothing is felt. The client must: A bucket of 5 refilled at 10 per second; the rest dropped silently; nothing from a hidden widget.", |
| 286 | "photos": [ |
| 287 | "refs/visual/sdk/06-haptics-rate.png" |
| 288 | ], |
| 289 | "zlib": 1681 |
| 290 | }, |
| 291 | { |
| 292 | "widget": "visual/sdk/07-storage-recreate.html", |
| 293 | "width": 0, |
| 294 | "height": 0, |
| 295 | "caption": "visual/sdk/07-storage-recreate · Storage survives the widget being dropped and re-created. Tap +1 three times. Scroll far up the chat until the bubble is rebuilt (Started goes up), scroll back: both counters are still 3. The client must: localStorage and sessionStorage come back with the re-created widget (the client passes its copy at creation).", |
| 296 | "photos": [ |
| 297 | "refs/visual/sdk/07-storage-recreate.png" |
| 298 | ], |
| 299 | "zlib": 1567 |
| 300 | }, |
| 301 | { |
| 302 | "widget": "visual/sdk/08-storage-restart.html", |
| 303 | "width": 0, |
| 304 | "height": 0, |
| 305 | "caption": "visual/sdk/08-storage-restart · localStorage survives an app restart, sessionStorage does not. Tap +1 twice. Quit the app completely and open this chat again: local is still 2, session is 0. The client must: localStorage is on disk per (account, chat, message); sessionStorage is in memory until the app restarts.", |
| 306 | "photos": [ |
| 307 | "refs/visual/sdk/08-storage-restart.png" |
| 308 | ], |
| 309 | "zlib": 1514 |
| 310 | }, |
| 311 | { |
| 312 | "widget": "visual/sdk/09-storage-delete.html", |
| 313 | "width": 0, |
| 314 | "height": 0, |
| 315 | "caption": "visual/sdk/09-storage-delete · Storage is deleted with the message. Tap Fill (about 15 KB). Delete this message: the client's widget-storage debug listing (or its storage stats) no longer has an entry for it. The same after Clear cache. The client must: Both areas are deleted with the message, with the chat or its history, with the account and on Clear cache.", |
| 316 | "photos": [ |
| 317 | "refs/visual/sdk/09-storage-delete.png" |
| 318 | ], |
| 319 | "zlib": 1572 |
| 320 | }, |
| 321 | { |
| 322 | "widget": "visual/sdk/10-storage-quota.html", |
| 323 | "width": 0, |
| 324 | "height": 0, |
| 325 | "caption": "visual/sdk/10-storage-quota · QuotaExceededError at 4 KB. Tap Fill: it writes 1 KB values until the client refuses; the line must say QuotaExceededError at 4 KB, for local and for session. The client must: 4096 bytes of keys and values per area; the refused setItem throws a DOMException named QuotaExceededError and stores nothing.", |
| 326 | "photos": [ |
| 327 | "refs/visual/sdk/10-storage-quota.png" |
| 328 | ], |
| 329 | "zlib": 1652 |
| 330 | }, |
| 331 | { |
| 332 | "widget": "visual/sdk/11-crash-restart.html", |
| 333 | "width": 0, |
| 334 | "height": 0, |
| 335 | "caption": "visual/sdk/11-crash-restart · After 2 crashes in a row the widget stays stopped. Tap Crash: the frame freezes with the Widget stopped badge. Scroll away and back: it starts again (Started 2). Crash again, scroll away and back: it stays stopped with the badge. The client must: The frozen last frame with the localised badge; one rebuild after the first crash; none after the second, until the app restarts (the HTML never changes, so no edit brings it back).", |
| 336 | "photos": [ |
| 337 | "refs/visual/sdk/11-crash-restart.png" |
| 338 | ], |
| 339 | "zlib": 1594 |
| 340 | }, |
| 341 | { |
| 342 | "widget": "visual/sdk/12-drag-gestures.html", |
| 343 | "width": 0, |
| 344 | "height": 0, |
| 345 | "caption": "visual/sdk/12-drag-gestures · Who gets a press: double taps always, holds and horizontal drags by touch-action, vertical drags never, and the edge strip. Blue (touch-action: none): drag the knob sideways, hold “Hold me” (it counts the time); no swipe-to-reply, no menu, the counters move. Drag up or down over blue: the chat scrolls, “to the chat” counts it. Striped (auto): long press = the message menu, swipe = reply; “cancelled” counts each one. Double-tap anywhere in the widget: no reaction, the widget counts the double taps. Bottom pad: a drag from the red strip is the back gesture, from the rest it moves the green mark. The client must: A double tap over the widget is always the widget's: both clicks and dblclick, on every element, and the client's reaction stays on the bubble outside the widget. A vertical drag is always the chat's: the list scrolls and the widget gets pointercancel, on touch-action: none too (v0.1.3). touch-action: none gives the widget horizontal drags (on both axes once a drag started sideways) and holds (it gets contextmenu, no message menu); on auto the bubble takes holds and swipes and the widget gets pointercancel; a press in the leading 20 px of the widget is never the widget's (system back). The client follows the shared gesture policy (gesture-policy.ts: 500 ms hold, 300 ms / 40 px double tap, 10 px slop, 20 px edge strip).", |
| 346 | "photos": [ |
| 347 | "refs/visual/sdk/12-drag-gestures.png" |
| 348 | ], |
| 349 | "zlib": 2819 |
| 350 | }, |
| 351 | { |
| 352 | "widget": "visual/sdk/13-max-height.html", |
| 353 | "width": 0, |
| 354 | "height": 0, |
| 355 | "caption": "visual/sdk/13-max-height · Taller than the cap: a hard clip. The widget is 3000 px tall. The bubble shows the top 600 px and cuts it: no scrolling inside, no expand or fullscreen button. The last mark you see is the cap. The client must: The bubble's height is the cap, 600 px on every client (the shared v0.1.0 value; maximumHeight / maxHeightDp / the web MAX_HEIGHT); content below is clipped.", |
| 356 | "photos": [ |
| 357 | "refs/visual/sdk/13-max-height.png" |
| 358 | ], |
| 359 | "zlib": 1579 |
| 360 | }, |
| 361 | { |
| 362 | "widget": "visual/sdk/14-theme-palette.html", |
| 363 | "width": 0, |
| 364 | "height": 0, |
| 365 | "caption": "visual/sdk/14-theme-palette · Theme palette: themeParams and --tg-theme-* follow the chat live. Each row: the swatch from themeParams and the one from the CSS variable are the same colour and match the chat. Switch the theme or night mode: all rows change at once, the counter goes up. The client must: Every themeParams key as #rrggbb, the same values as --tg-theme-* on the root, updated in one task with themeChanged.", |
| 366 | "photos": [ |
| 367 | "refs/visual/sdk/14-theme-palette.png", |
| 368 | "refs/visual/sdk/14-theme-palette.dark.png" |
| 369 | ], |
| 370 | "zlib": 1900 |
| 371 | }, |
| 372 | { |
| 373 | "widget": "visual/sdk/15-storage-forward.html", |
| 374 | "width": 0, |
| 375 | "height": 0, |
| 376 | "caption": "visual/sdk/15-storage-forward · A forwarded copy has its own storage. Tap +1 three times, then forward this message to another chat: the copy shows 0, the original still 3. +1 on the copy does not change the original. The client must: Storage keyed by (account, chat, message id): the destination chat's copy starts empty.", |
| 377 | "photos": [ |
| 378 | "refs/visual/sdk/15-storage-forward.png" |
| 379 | ], |
| 380 | "zlib": 1416 |
| 381 | }, |
| 382 | { |
| 383 | "widget": "visual/sdk/16-state-edit.html", |
| 384 | "width": 0, |
| 385 | "height": 0, |
| 386 | "message": { |
| 387 | "kind": "private", |
| 388 | "allow_queries": true, |
| 389 | "chat_data": "0", |
| 390 | "public_data": "0" |
| 391 | }, |
| 392 | "caption": "visual/sdk/16-state-edit · The bot edits the widget's state: the widget changes without a restart. Tap Ask the bot to edit a few times. Each time both values go up by one, chatDataChanged and publicDataChanged each count one more, Started stays 1, and the answer line says edited N. The client must: The bot's editMessageWidgetData reaches the running widget (updateMessageWidgetData, then setData): chatDataChanged, then publicDataChanged, in one task; no restart, the HTML never changes; the answer carries no state. Sent as private: the private chat, allow_queries, chat_data \"0\", public_data \"0\".", |
| 393 | "photos": [ |
| 394 | "refs/visual/sdk/16-state-edit.png" |
| 395 | ], |
| 396 | "zlib": 1973 |
| 397 | }, |
| 398 | { |
| 399 | "widget": "visual/sdk/17-size-hint.html", |
| 400 | "width": 0, |
| 401 | "height": 0, |
| 402 | "caption": "visual/sdk/17-size-hint · The bubble takes the bot's size anchors before load, then the content height. The bot sends this widget four times: width 0 + height 0 (the default placeholder, then the content height, 240 px), width 0 + height 300 (a fixed 300 px bubble that stays 300 after load), width 300 + height 0 (a 300 px wide widget, then its content height), and width 300 + height 300 (fixed both). The cached height is used next time the auto bubbles scroll in. The client must: Width 0 = the bubble's width, W = a fixed width clamped to [200, max]; height 0 = auto (placeholder, then the reported 240 clamped to [50, 600], cached per message), H = a fixed clamp(H, 50, 600) that the content does not change.", |
| 403 | "photos": [ |
| 404 | "refs/visual/sdk/17-size-hint.png" |
| 405 | ], |
| 406 | "zlib": 1502 |
| 407 | }, |
| 408 | { |
| 409 | "widget": "visual/sdk/17-size-hint.html", |
| 410 | "width": 0, |
| 411 | "height": 300, |
| 412 | "caption": "visual/sdk/17-size-hint · The bubble takes the bot's size anchors before load, then the content height. The bot sends this widget four times: width 0 + height 0 (the default placeholder, then the content height, 240 px), width 0 + height 300 (a fixed 300 px bubble that stays 300 after load), width 300 + height 0 (a 300 px wide widget, then its content height), and width 300 + height 300 (fixed both). The cached height is used next time the auto bubbles scroll in. The client must: Width 0 = the bubble's width, W = a fixed width clamped to [200, max]; height 0 = auto (placeholder, then the reported 240 clamped to [50, 600], cached per message), H = a fixed clamp(H, 50, 600) that the content does not change.", |
| 413 | "photos": [ |
| 414 | "refs/visual/sdk/17-size-hint.png" |
| 415 | ], |
| 416 | "zlib": 1502 |
| 417 | }, |
| 418 | { |
| 419 | "widget": "visual/sdk/17-size-hint.html", |
| 420 | "width": 300, |
| 421 | "height": 0, |
| 422 | "caption": "visual/sdk/17-size-hint · The bubble takes the bot's size anchors before load, then the content height. The bot sends this widget four times: width 0 + height 0 (the default placeholder, then the content height, 240 px), width 0 + height 300 (a fixed 300 px bubble that stays 300 after load), width 300 + height 0 (a 300 px wide widget, then its content height), and width 300 + height 300 (fixed both). The cached height is used next time the auto bubbles scroll in. The client must: Width 0 = the bubble's width, W = a fixed width clamped to [200, max]; height 0 = auto (placeholder, then the reported 240 clamped to [50, 600], cached per message), H = a fixed clamp(H, 50, 600) that the content does not change.", |
| 423 | "photos": [ |
| 424 | "refs/visual/sdk/17-size-hint.png" |
| 425 | ], |
| 426 | "zlib": 1502 |
| 427 | }, |
| 428 | { |
| 429 | "widget": "visual/sdk/17-size-hint.html", |
| 430 | "width": 300, |
| 431 | "height": 300, |
| 432 | "caption": "visual/sdk/17-size-hint · The bubble takes the bot's size anchors before load, then the content height. The bot sends this widget four times: width 0 + height 0 (the default placeholder, then the content height, 240 px), width 0 + height 300 (a fixed 300 px bubble that stays 300 after load), width 300 + height 0 (a 300 px wide widget, then its content height), and width 300 + height 300 (fixed both). The cached height is used next time the auto bubbles scroll in. The client must: Width 0 = the bubble's width, W = a fixed width clamped to [200, max]; height 0 = auto (placeholder, then the reported 240 clamped to [50, 600], cached per message), H = a fixed clamp(H, 50, 600) that the content does not change.", |
| 433 | "photos": [ |
| 434 | "refs/visual/sdk/17-size-hint.png" |
| 435 | ], |
| 436 | "zlib": 1502 |
| 437 | }, |
| 438 | { |
| 439 | "widget": "visual/sdk/18-resize-anchor.html", |
| 440 | "width": 0, |
| 441 | "height": 0, |
| 442 | "caption": "visual/sdk/18-resize-anchor · The resize anchor: the edge the widget chose stays put when its height changes. Anchor bottom (the start): tap + line a few times: the buttons stay under your finger, the bubble grows upward and the messages above it move up; − line shrinks it back the same way. Tap the anchor button for top: now + line keeps the bubble's top still and pushes the buttons and the messages below down. Try both with the bubble near the top and near the bottom of the screen. The client must: With every height the host reports the widget's anchor (setResizeAnchor, v0.1.3); the chat list keeps that edge of the bubble in place on screen: bottom, the content above moves and the bubble's bottom edge does not; top (the default), the content below moves. No jump of the anchored edge while the height animates. A bubble off screen keeps what is on screen in place.", |
| 443 | "photos": [ |
| 444 | "refs/visual/sdk/18-resize-anchor.png" |
| 445 | ], |
| 446 | "zlib": 2061 |
| 447 | }, |
| 448 | { |
| 449 | "widget": "visual/sdk/19-request-tap.html", |
| 450 | "width": 0, |
| 451 | "height": 0, |
| 452 | "message": { |
| 453 | "kind": "private", |
| 454 | "allow_queries": true |
| 455 | }, |
| 456 | "caption": "visual/sdk/19-request-tap · A request on a tap gets the bot's answer. Tap Ping: “sending…”, then the bot's answer “pong, <your first name>”; the client shows nothing of its own. Tap Two at once: the first is answered, the second fails at once with BUSY. The client must: messages.getBotWidgetQueryAnswer per tap with the widget's data; its result goes back to the widget (no toast, alert or link from the client); one request in flight per widget. Sent as private: the private chat, allow_queries.", |
| 457 | "photos": [ |
| 458 | "refs/visual/sdk/19-request-tap.png" |
| 459 | ], |
| 460 | "zlib": 1758 |
| 461 | }, |
| 462 | { |
| 463 | "widget": "visual/sdk/20-forward-requests.html", |
| 464 | "width": 0, |
| 465 | "height": 0, |
| 466 | "message": { |
| 467 | "kind": "live-copy", |
| 468 | "allow_queries": true, |
| 469 | "fwd_allow_queries": true, |
| 470 | "chat_data": "secret", |
| 471 | "public_data": "live forward", |
| 472 | "forward": true |
| 473 | }, |
| 474 | "variant": "live-copy", |
| 475 | "caption": "visual/sdk/20-forward-requests · A forward asks the bot only if the widget was sent with fwd_allow_queries. The bot sends this twice: “live forward” (fwd_allow_queries) and “plain forward”. Forward both to another chat. In the forwards: Ask on the live one is answered; on the plain one it says NOT_ALLOWED. Neither shows chatData or a chat type; only the live one shows a viewer (your name). The client must: A copy gets is_copy; can_query only for a fwd_allow_queries widget, taps only. The client passes the flags from the media; the widget of a copy gets no chatData and no chatType, and the viewer only with can_query; the bot gets only from, data and widget_id. Sent as live-copy: the private chat, allow_queries, fwd_allow_queries, chat_data \"secret\", public_data \"live forward\", then forwarded.", |
| 476 | "photos": [ |
| 477 | "refs/visual/sdk/20-forward-requests.png" |
| 478 | ], |
| 479 | "zlib": 1987 |
| 480 | }, |
| 481 | { |
| 482 | "widget": "visual/sdk/20-forward-requests.html", |
| 483 | "width": 0, |
| 484 | "height": 0, |
| 485 | "message": { |
| 486 | "kind": "copy", |
| 487 | "allow_queries": true, |
| 488 | "chat_data": "secret", |
| 489 | "public_data": "plain forward", |
| 490 | "forward": true |
| 491 | }, |
| 492 | "variant": "copy", |
| 493 | "caption": "visual/sdk/20-forward-requests · A forward asks the bot only if the widget was sent with fwd_allow_queries. The bot sends this twice: “live forward” (fwd_allow_queries) and “plain forward”. Forward both to another chat. In the forwards: Ask on the live one is answered; on the plain one it says NOT_ALLOWED. Neither shows chatData or a chat type; only the live one shows a viewer (your name). The client must: A copy gets is_copy; can_query only for a fwd_allow_queries widget, taps only. The client passes the flags from the media; the widget of a copy gets no chatData and no chatType, and the viewer only with can_query; the bot gets only from, data and widget_id. Sent as copy: the private chat, allow_queries, chat_data \"secret\", public_data \"plain forward\", then forwarded.", |
| 494 | "photos": [ |
| 495 | "refs/visual/sdk/20-forward-requests.png" |
| 496 | ], |
| 497 | "zlib": 1987 |
| 498 | }, |
| 499 | { |
| 500 | "widget": "visual/sdk/21-network-marker.html", |
| 501 | "width": 0, |
| 502 | "height": 0, |
| 503 | "message": { |
| 504 | "kind": "private", |
| 505 | "allow_queries": true, |
| 506 | "public_data": "allow_queries" |
| 507 | }, |
| 508 | "variant": "private", |
| 509 | "caption": "visual/sdk/21-network-marker · The network marker: shown exactly where a tap may send data to the bot. The bot sends this twice. On “allow_queries” the client shows its network marker; on “no queries” it shows none. Forward both: neither forward has a marker (no fwd_allow_queries). Tap the marker: the client explains it (a tap may send data to the bot's server). The client must: The marker exactly where the message has can_query (context.canQuery): never without allow_queries, never on a forward of a widget without fwd_allow_queries, never on a preview. Sent as private: the private chat, allow_queries, public_data \"allow_queries\".", |
| 510 | "photos": [ |
| 511 | "refs/visual/sdk/21-network-marker.png" |
| 512 | ], |
| 513 | "zlib": 1620 |
| 514 | }, |
| 515 | { |
| 516 | "widget": "visual/sdk/21-network-marker.html", |
| 517 | "width": 0, |
| 518 | "height": 0, |
| 519 | "message": { |
| 520 | "kind": "no-queries", |
| 521 | "public_data": "no queries" |
| 522 | }, |
| 523 | "variant": "no-queries", |
| 524 | "caption": "visual/sdk/21-network-marker · The network marker: shown exactly where a tap may send data to the bot. The bot sends this twice. On “allow_queries” the client shows its network marker; on “no queries” it shows none. Forward both: neither forward has a marker (no fwd_allow_queries). Tap the marker: the client explains it (a tap may send data to the bot's server). The client must: The marker exactly where the message has can_query (context.canQuery): never without allow_queries, never on a forward of a widget without fwd_allow_queries, never on a preview. Sent as no-queries: the private chat, no flags, public_data \"no queries\".", |
| 525 | "photos": [ |
| 526 | "refs/visual/sdk/21-network-marker.png" |
| 527 | ], |
| 528 | "zlib": 1620 |
| 529 | }, |
| 530 | { |
| 531 | "widget": "visual/sdk/22-copy-text.html", |
| 532 | "width": 0, |
| 533 | "height": 0, |
| 534 | "message": { |
| 535 | "kind": "private" |
| 536 | }, |
| 537 | "caption": "visual/sdk/22-copy-text · copyText: the client copies on a tap and shows what it copied. Tap Copy: the client's toast shows CONF-2026-OK, and that is what you paste. Tap Copy later: nothing is copied a second later (no tap). Tap Copy twice: one tap, one toast. The client must: copyText on a tap: copy the text and show a toast with the text itself (truncated if long); outside a tap nothing (activation-blocked); one copy per tap. The widget is not told. Sent as private: the private chat, no flags.", |
| 538 | "photos": [ |
| 539 | "refs/visual/sdk/22-copy-text.png" |
| 540 | ], |
| 541 | "zlib": 1697 |
| 542 | }, |
| 543 | { |
| 544 | "widget": "visual/sdk/23-preview.html", |
| 545 | "width": 0, |
| 546 | "height": 0, |
| 547 | "message": { |
| 548 | "kind": "preview", |
| 549 | "allow_queries": true, |
| 550 | "inline": true, |
| 551 | "chat_data": "chat state", |
| 552 | "public_data": "shared state" |
| 553 | }, |
| 554 | "caption": "visual/sdk/23-preview · A preview in the inline results: the widget's data, no input, nothing about the user. In any chat type the test bot's username and conf-preview. In the list the widget says Preview yes and shows its state; a tap on it selects the result: Taps stays 0. Send it: the message says Preview no, shows a viewer, and Tap me counts. The client must: A widget result in the inline list (botInlineMessageWidget) runs with context.preview and the result's data: no input routed to the widget, no requests or actions, no viewer, no storage, no network marker; the sent message is a new widget. Sent as preview: an inline result for the query conf-preview, allow_queries, chat_data \"chat state\", public_data \"shared state\".", |
| 555 | "photos": [ |
| 556 | "refs/visual/sdk/23-preview.png" |
| 557 | ], |
| 558 | "zlib": 1773 |
| 559 | }, |
| 560 | { |
| 561 | "widget": "visual/sdk/24-watch-public-data.html", |
| 562 | "width": 0, |
| 563 | "height": 0, |
| 564 | "message": { |
| 565 | "kind": "private", |
| 566 | "allow_queries": true, |
| 567 | "shared_widget": true, |
| 568 | "public_data": "0" |
| 569 | }, |
| 570 | "caption": "visual/sdk/24-watch-public-data · watchPublicData: the client polls a shared widget's state while the widget watches. Tap Start: for two minutes the bot changes the shared state every 10 s (editWidgetData with cache_time 5, nothing pushed). Watching: the value follows within about 5 s. Tap Unwatch: it stops following; Watch: it catches up at the next poll. Scrolled off screen nothing is polled. The client must: The client polls getWidgetPublicData only while the widget watches (onWatchPublicData / watchesPublicData) and is on screen, one carrier per widget_id, at the object's period; a new value reaches the widget as publicDataChanged. Sent as private: the private chat, allow_queries, shared_widget, public_data \"0\".", |
| 571 | "photos": [ |
| 572 | "refs/visual/sdk/24-watch-public-data.png" |
| 573 | ], |
| 574 | "zlib": 2035 |
| 575 | }, |
| 576 | { |
| 577 | "widget": "visual/sdk/25-group-chat-state.html", |
| 578 | "width": 0, |
| 579 | "height": 0, |
| 580 | "message": { |
| 581 | "kind": "group", |
| 582 | "allow_queries": true, |
| 583 | "chat": "group", |
| 584 | "chat_data": "{\"n\":0}" |
| 585 | }, |
| 586 | "caption": "visual/sdk/25-group-chat-state · A group: one chat state for all members, drawn per viewer. The bot sends this into the test group. Each member taps +1: everyone sees the same count and who tapped last (one chat state for the group), and each sees their own name under You. Nobody's widget asks without a tap. The client must: In a group chatData is one value for all members, edited by the bot (updateMessageWidgetData; in a supergroup with the channel's pts); requests on a tap only; viewer is each member. Sent as group: the test group, allow_queries, chat_data \"{\\\"n\\\":0}\".", |
| 587 | "photos": [ |
| 588 | "refs/visual/sdk/25-group-chat-state.png" |
| 589 | ], |
| 590 | "zlib": 1943 |
| 591 | }, |
| 592 | { |
| 593 | "widget": "visual/sdk/26-haptics-no-touch.html", |
| 594 | "width": 0, |
| 595 | "height": 0, |
| 596 | "caption": "visual/sdk/26-haptics-no-touch · Haptics without a touch: one second, then nothing for nine (a widget cannot buzz the phone). Tap Start, then do not touch the widget: 6 s later it asks for a haptic every 50 ms for 15 s (the counter runs). You feel one second of them, nothing for nine, one more second, then nothing. Then hold Hold and buzz for a second and lift your finger: it asks every 100 ms while you hold and for 8 s after; you feel it while you hold and about 6 s after (the 5 s after a touch, then one series), then nothing. The client must: Outside a touch the first haptic opens a 1 s series; the next series needs a touch or 10 s since the last began (one series after a touch at any time later). During a touch (a press on the widget and 5 s after it is lifted) haptics pass under the rate limit (a burst of 5, then 10 per second).", |
| 597 | "photos": [ |
| 598 | "refs/visual/sdk/26-haptics-no-touch.png" |
| 599 | ], |
| 600 | "zlib": 2057 |
| 601 | }, |
| 602 | { |
| 603 | "widget": "auto/01-html-elements-a.html", |
| 604 | "width": 0, |
| 605 | "height": 0, |
| 606 | "caption": "auto/01-html-elements-a · HTML elements and their UA styles: text structure, headings, sections, inline text. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 607 | "photos": [], |
| 608 | "zlib": 3493 |
| 609 | }, |
| 610 | { |
| 611 | "widget": "auto/01-html-elements-b.html", |
| 612 | "width": 0, |
| 613 | "height": 0, |
| 614 | "caption": "auto/01-html-elements-b · HTML elements and their UA styles: pre, blockquote, lists, tables, ruby. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 615 | "photos": [], |
| 616 | "zlib": 3213 |
| 617 | }, |
| 618 | { |
| 619 | "widget": "auto/01-html-elements-c.html", |
| 620 | "width": 0, |
| 621 | "height": 0, |
| 622 | "caption": "auto/01-html-elements-c · HTML elements and their UA styles: sub/sup, legacy, unknown, details, button, links, gauges. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 623 | "photos": [], |
| 624 | "zlib": 3501 |
| 625 | }, |
| 626 | { |
| 627 | "widget": "auto/02-attributes-images-a.html", |
| 628 | "width": 0, |
| 629 | "height": 0, |
| 630 | "caption": "auto/02-attributes-images-a · Global attributes, dir, data-/aria-, legacy presentational attributes, inline handlers, out-of-profile attributes; img width/height, picture. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 631 | "photos": [], |
| 632 | "zlib": 3424 |
| 633 | }, |
| 634 | { |
| 635 | "widget": "auto/02-attributes-images-b.html", |
| 636 | "width": 0, |
| 637 | "height": 0, |
| 638 | "caption": "auto/02-attributes-images-b · <img> formats, remote images. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 639 | "photos": [], |
| 640 | "zlib": 3792 |
| 641 | }, |
| 642 | { |
| 643 | "widget": "auto/03-layout-a.html", |
| 644 | "width": 0, |
| 645 | "height": 0, |
| 646 | "caption": "auto/03-layout-a · Layout and box model (1/3): display, flex, gap, grid. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 647 | "photos": [], |
| 648 | "zlib": 3576 |
| 649 | }, |
| 650 | { |
| 651 | "widget": "auto/03-layout-b.html", |
| 652 | "width": 0, |
| 653 | "height": 0, |
| 654 | "caption": "auto/03-layout-b · Layout and box model (2/3): sizes, spacing, border, box-sizing, aspect-ratio, logical properties, outline, float, columns. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 655 | "photos": [], |
| 656 | "zlib": 3446 |
| 657 | }, |
| 658 | { |
| 659 | "widget": "auto/03-layout-c.html", |
| 660 | "width": 0, |
| 661 | "height": 0, |
| 662 | "caption": "auto/03-layout-c · Layout and box model (3/3): table, flow-root, contents, radius, positioning, z-index, overflow, visibility, opacity. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 663 | "photos": [], |
| 664 | "zlib": 3639 |
| 665 | }, |
| 666 | { |
| 667 | "widget": "auto/04-values-units.html", |
| 668 | "width": 0, |
| 669 | "height": 0, |
| 670 | "caption": "auto/04-values-units · Units, viewport units, calc/min/max/clamp, custom properties, CSS-wide keywords, generated content, env(). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 671 | "photos": [], |
| 672 | "zlib": 3736 |
| 673 | }, |
| 674 | { |
| 675 | "widget": "auto/05-colour-backgrounds-a.html", |
| 676 | "width": 0, |
| 677 | "height": 0, |
| 678 | "caption": "auto/05-colour-backgrounds-a · Colour and backgrounds (1/2): colours, colour functions, light-dark(). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 679 | "photos": [], |
| 680 | "zlib": 2822 |
| 681 | }, |
| 682 | { |
| 683 | "widget": "auto/05-colour-backgrounds-b.html", |
| 684 | "width": 0, |
| 685 | "height": 0, |
| 686 | "caption": "auto/05-colour-backgrounds-b · Colour and backgrounds (2/2): backgrounds and data: images, gradients, box-shadow, outline, object-fit. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 687 | "photos": [], |
| 688 | "zlib": 3195 |
| 689 | }, |
| 690 | { |
| 691 | "widget": "auto/06-text-fonts-a.html", |
| 692 | "width": 0, |
| 693 | "height": 0, |
| 694 | "caption": "auto/06-text-fonts-a · Fonts (generic families, named families and @font-face out), font properties, tabular numbers. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 695 | "photos": [], |
| 696 | "zlib": 3199 |
| 697 | }, |
| 698 | { |
| 699 | "widget": "auto/06-text-fonts-b.html", |
| 700 | "width": 0, |
| 701 | "height": 0, |
| 702 | "caption": "auto/06-text-fonts-b · Alignment, decoration, transforms, white-space, wrapping, line clamp, vertical-align, lists, writing-mode. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 703 | "photos": [], |
| 704 | "zlib": 3350 |
| 705 | }, |
| 706 | { |
| 707 | "widget": "auto/06-text-fonts-c.html", |
| 708 | "width": 0, |
| 709 | "height": 0, |
| 710 | "caption": "auto/06-text-fonts-c · Ellipsis, text-shadow, emoji and decoration (pixels), RTL and shaping, emoji, opt-in selection. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 711 | "photos": [], |
| 712 | "zlib": 3159 |
| 713 | }, |
| 714 | { |
| 715 | "widget": "auto/07-selectors-a.html", |
| 716 | "width": 0, |
| 717 | "height": 0, |
| 718 | "caption": "auto/07-selectors-a · Selectors: type, class, id, attributes, combinators. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 719 | "photos": [], |
| 720 | "zlib": 2605 |
| 721 | }, |
| 722 | { |
| 723 | "widget": "auto/07-selectors-b.html", |
| 724 | "width": 0, |
| 725 | "height": 0, |
| 726 | "caption": "auto/07-selectors-b · Selectors: structural pseudo-classes, :is/:where, :has, :root, pseudo-elements, :hover kept, :focus and host-scoped selectors out. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 727 | "photos": [], |
| 728 | "zlib": 3461 |
| 729 | }, |
| 730 | { |
| 731 | "widget": "auto/08-at-rules.html", |
| 732 | "width": 0, |
| 733 | "height": 0, |
| 734 | "caption": "auto/08-at-rules · @media (width, colour scheme, reduced motion, hover/pointer, print), @supports from the profile, @import, @container, @layer, @property, exotic at-rules, CSS nesting. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 735 | "photos": [], |
| 736 | "zlib": 3686 |
| 737 | }, |
| 738 | { |
| 739 | "widget": "auto/09-transforms-effects-a.html", |
| 740 | "width": 0, |
| 741 | "height": 0, |
| 742 | "caption": "auto/09-transforms-effects-a · 2D transforms, 3D transforms out, filter (blur, brightness, drop-shadow; others; url() out). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 743 | "photos": [], |
| 744 | "zlib": 3505 |
| 745 | }, |
| 746 | { |
| 747 | "widget": "auto/09-transforms-effects-b.html", |
| 748 | "width": 0, |
| 749 | "height": 0, |
| 750 | "caption": "auto/09-transforms-effects-b · Backdrop-filter, blend modes, clip-path, mask, opacity, pointer-events, touch-action, cursor. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 751 | "photos": [], |
| 752 | "zlib": 2837 |
| 753 | }, |
| 754 | { |
| 755 | "widget": "auto/10-css-animations.html", |
| 756 | "width": 0, |
| 757 | "height": 0, |
| 758 | "caption": "auto/10-css-animations · CSS animations (@keyframes, timing, direction, iteration, fill-mode, play-state), transitions (incl. negative delay), steps() easing, animation and transition events. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 759 | "photos": [], |
| 760 | "zlib": 3512 |
| 761 | }, |
| 762 | { |
| 763 | "widget": "auto/11-web-animations.html", |
| 764 | "width": 0, |
| 765 | "height": 0, |
| 766 | "caption": "auto/11-web-animations · Web Animations: Element.animate, pause and seek, keyframe offsets and easing, getAnimations, finished, cancel, timeline; control of CSS animations through getAnimations (needs the webAnimations feature, D5). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 767 | "photos": [], |
| 768 | "zlib": 3605 |
| 769 | }, |
| 770 | { |
| 771 | "widget": "auto/12-canvas-a.html", |
| 772 | "width": 0, |
| 773 | "height": 0, |
| 774 | "caption": "auto/12-canvas-a · Canvas 2D (1/2): rectangles, paths, line styles, gradients (conic out), measureText, hit testing, HiDPI backing store; WebGL and read-back out. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 775 | "photos": [], |
| 776 | "zlib": 3619 |
| 777 | }, |
| 778 | { |
| 779 | "widget": "auto/12-canvas-b.html", |
| 780 | "width": 0, |
| 781 | "height": 0, |
| 782 | "caption": "auto/12-canvas-b · Canvas 2D (2/2): patterns, transforms, clipping, text, alpha, compositing, shadows, ctx.filter, Path2D, drawImage, ImageData. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 783 | "photos": [], |
| 784 | "zlib": 3604 |
| 785 | }, |
| 786 | { |
| 787 | "widget": "auto/13-svg-a.html", |
| 788 | "width": 0, |
| 789 | "height": 0, |
| 790 | "caption": "auto/13-svg-a · Inline SVG (1/2): shapes with presentation attributes, g/use/symbol/viewBox, text, gradients, CSS on SVG; SVG geometry queries. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 791 | "photos": [], |
| 792 | "zlib": 3236 |
| 793 | }, |
| 794 | { |
| 795 | "widget": "auto/13-svg-b.html", |
| 796 | "width": 0, |
| 797 | "height": 0, |
| 798 | "caption": "auto/13-svg-b · Inline SVG (2/2): clipPath/mask, filters, SMIL, <image>, foreignObject out. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 799 | "photos": [], |
| 800 | "zlib": 2453 |
| 801 | }, |
| 802 | { |
| 803 | "widget": "auto/14-dom-layout-api-a.html", |
| 804 | "width": 0, |
| 805 | "height": 0, |
| 806 | "caption": "auto/14-dom-layout-api-a · DOM and layout APIs (1/2): DOM building, CSSOM, events. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 807 | "photos": [], |
| 808 | "zlib": 3211 |
| 809 | }, |
| 810 | { |
| 811 | "widget": "auto/14-dom-layout-api-b.html", |
| 812 | "width": 0, |
| 813 | "height": 0, |
| 814 | "caption": "auto/14-dom-layout-api-b · DOM and layout APIs (2/2): DOM queries; layout queries answered by the renderer: rects, boxes, computed style (incl. shorthands), matchMedia, ResizeObserver, IntersectionObserver, elementFromPoint, measureText. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 815 | "photos": [], |
| 816 | "zlib": 3506 |
| 817 | }, |
| 818 | { |
| 819 | "widget": "auto/15-js-runtime-a.html", |
| 820 | "width": 0, |
| 821 | "height": 0, |
| 822 | "caption": "auto/15-js-runtime-a · JS runtime: timers, frames, microtasks, storage (4 KB quota). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 823 | "photos": [], |
| 824 | "zlib": 3052 |
| 825 | }, |
| 826 | { |
| 827 | "widget": "auto/15-js-runtime-b.html", |
| 828 | "width": 0, |
| 829 | "height": 0, |
| 830 | "caption": "auto/15-js-runtime-b · JS runtime: Intl, locale, crypto, built-ins, eval, CSS.supports from the profile, visibility, bundled libraries. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 831 | "photos": [], |
| 832 | "zlib": 3372 |
| 833 | }, |
| 834 | { |
| 835 | "widget": "auto/15-js-runtime-c.html", |
| 836 | "width": 0, |
| 837 | "height": 0, |
| 838 | "caption": "auto/15-js-runtime-c · JS runtime: network, navigation, dialogs, device APIs, shadow DOM, blobs, fullscreen, View Transitions out. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 839 | "photos": [], |
| 840 | "zlib": 2991 |
| 841 | }, |
| 842 | { |
| 843 | "widget": "auto/16-sdk-taps-a.html", |
| 844 | "width": 0, |
| 845 | "height": 0, |
| 846 | "caption": "auto/16-sdk-taps-a · openLink: taps (click, pointer and mouse events), external and prevented links, a call from a timer, the URL rules and the 256-character limit. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 847 | "photos": [], |
| 848 | "zlib": 3640 |
| 849 | }, |
| 850 | { |
| 851 | "widget": "auto/16-sdk-taps-b.html", |
| 852 | "width": 0, |
| 853 | "height": 0, |
| 854 | "caption": "auto/16-sdk-taps-b · Taps: details toggle, #fragment links, :active; a double tap is the widget's (dblclick), the context menu stays out on touch-action: auto (auto/23 has none); keyboard and wheel stay out. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 855 | "photos": [], |
| 856 | "zlib": 3251 |
| 857 | }, |
| 858 | { |
| 859 | "widget": "auto/16-sdk-taps-c.html", |
| 860 | "width": 0, |
| 861 | "height": 0, |
| 862 | "caption": "auto/16-sdk-taps-c · TelegramWidget SDK v1: ready, colorScheme, themeParams, isActive, onEvent, openTelegramLink with its URL rules, haptics, profile, no sendMessage. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 863 | "photos": [], |
| 864 | "zlib": 3468 |
| 865 | }, |
| 866 | { |
| 867 | "widget": "auto/17-drag-hover.html", |
| 868 | "width": 0, |
| 869 | "height": 0, |
| 870 | "caption": "auto/17-drag-hover · Drag (pointer events with capture), hover events and :hover (desktop), pointer-events: none, touch events on touch clients, no text selection. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 871 | "photos": [], |
| 872 | "zlib": 3785 |
| 873 | }, |
| 874 | { |
| 875 | "widget": "auto/18-out-of-profile.html", |
| 876 | "width": 0, |
| 877 | "height": 0, |
| 878 | "caption": "auto/18-out-of-profile · Elements out of the profile: form controls, dialog and popover (top layer), media, embedded content, MathML; they must be neutralised the same way everywhere. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 879 | "photos": [], |
| 880 | "zlib": 3554 |
| 881 | }, |
| 882 | { |
| 883 | "widget": "auto/19-limits.html", |
| 884 | "width": 0, |
| 885 | "height": 0, |
| 886 | "caption": "auto/19-limits · Strict limits: a 30 K text value and a 6 K data-* attribute render, the complex-script budget, the 64-timer cap, 4000 canvas commands per canvas and task, a data: image up to 1024 × 1024 pixels, attr() under strict (past a counted limit the widget stops: auto/31–35). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 887 | "photos": [], |
| 888 | "zlib": 3599 |
| 889 | }, |
| 890 | { |
| 891 | "widget": "auto/20-client-behaviour.html", |
| 892 | "width": 0, |
| 893 | "height": 0, |
| 894 | "caption": "auto/20-client-behaviour · What the client does around the widget: live theme switch, off-screen pause (no frames, timers at 1 Hz, visibilitychange), auto height with a hard clip at the cap. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 895 | "photos": [], |
| 896 | "zlib": 3762 |
| 897 | }, |
| 898 | { |
| 899 | "widget": "auto/21-no-keyboard.html", |
| 900 | "width": 0, |
| 901 | "height": 0, |
| 902 | "caption": "auto/21-no-keyboard · No keyboard (D4): key events never reach the widget, Enter/Space do not activate buttons or links, focus() does not take the focus from the chat input, a key press is not a user gesture for the bridge. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 903 | "photos": [], |
| 904 | "zlib": 3118 |
| 905 | }, |
| 906 | { |
| 907 | "widget": "auto/22-ua-defaults.html", |
| 908 | "width": 0, |
| 909 | "height": 0, |
| 910 | "caption": "auto/22-ua-defaults · The UA layer: the root on the text tokens over the bubble, text defaults, author CSS wins. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 911 | "photos": [], |
| 912 | "zlib": 3754 |
| 913 | }, |
| 914 | { |
| 915 | "widget": "auto/23-gestures-a.html", |
| 916 | "width": 0, |
| 917 | "height": 0, |
| 918 | "caption": "auto/23-gestures-a · Who gets a press (1/2): a double tap is always the widget's (dblclick, on every element); a hold on touch-action: none is the widget's (contextmenu), on auto the bubble's (pointercancel). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 919 | "photos": [], |
| 920 | "zlib": 2843 |
| 921 | }, |
| 922 | { |
| 923 | "widget": "auto/23-gestures-b.html", |
| 924 | "width": 0, |
| 925 | "height": 0, |
| 926 | "caption": "auto/23-gestures-b · Who gets a press (2/2): a vertical drag is always the chat's, on touch-action: none and pan-x too; a drag from the leading 20 px is the back gesture. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 927 | "photos": [], |
| 928 | "zlib": 2944 |
| 929 | }, |
| 930 | { |
| 931 | "widget": "auto/24-resize-anchor.html", |
| 932 | "width": 0, |
| 933 | "height": 0, |
| 934 | "caption": "auto/24-resize-anchor · TelegramWidget.setResizeAnchor (v0.1.3): the method exists, takes 'top' and 'bottom', throws TypeError on anything else; the widget grows and shrinks with either anchor. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 935 | "photos": [], |
| 936 | "zlib": 2459 |
| 937 | }, |
| 938 | { |
| 939 | "widget": "auto/25-state-api-a.html", |
| 940 | "width": 0, |
| 941 | "height": 0, |
| 942 | "caption": "auto/25-state-api-a · The widget's state (SDK v1, layer 233): chatData / publicData read-only text or null, events, the context fields and the rules that hold in every message. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 943 | "photos": [], |
| 944 | "zlib": 2922 |
| 945 | }, |
| 946 | { |
| 947 | "widget": "auto/25-state-api-b.html", |
| 948 | "width": 0, |
| 949 | "height": 0, |
| 950 | "caption": "auto/25-state-api-b · Requests and copyText (SDK v1, layer 233): argument errors, a request without a tap settles with { result } or a WidgetRequestError, copyText outside a tap is dropped, watchPublicData idempotent. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 951 | "photos": [], |
| 952 | "zlib": 2988 |
| 953 | }, |
| 954 | { |
| 955 | "widget": "auto/26-context-copy.html", |
| 956 | "width": 0, |
| 957 | "height": 0, |
| 958 | "message": { |
| 959 | "kind": "copy", |
| 960 | "allow_queries": true, |
| 961 | "chat_data": "conf-chat", |
| 962 | "public_data": "conf-public", |
| 963 | "forward": true, |
| 964 | "view": "the forward (in the test group or any chat)" |
| 965 | }, |
| 966 | "caption": "auto/26-context-copy · The message context: a forward of a widget sent without fwd_allow_queries: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as copy: the private chat, allow_queries, chat_data \"conf-chat\", public_data \"conf-public\", then forwarded; look at the forward (in the test group or any chat).", |
| 967 | "photos": [], |
| 968 | "zlib": 3060 |
| 969 | }, |
| 970 | { |
| 971 | "widget": "auto/26-context-group.html", |
| 972 | "width": 0, |
| 973 | "height": 0, |
| 974 | "message": { |
| 975 | "kind": "group", |
| 976 | "allow_queries": true, |
| 977 | "chat": "group", |
| 978 | "chat_data": "conf-chat", |
| 979 | "public_data": "conf-public", |
| 980 | "view": "the original the test bot sent into the test group" |
| 981 | }, |
| 982 | "caption": "auto/26-context-group · The message context: an original the bot sent to a group: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as group: the test group, allow_queries, chat_data \"conf-chat\", public_data \"conf-public\"; look at the original the test bot sent into the test group.", |
| 983 | "photos": [], |
| 984 | "zlib": 3093 |
| 985 | }, |
| 986 | { |
| 987 | "widget": "auto/26-context-live-copy.html", |
| 988 | "width": 0, |
| 989 | "height": 0, |
| 990 | "message": { |
| 991 | "kind": "live-copy", |
| 992 | "allow_queries": true, |
| 993 | "fwd_allow_queries": true, |
| 994 | "chat_data": "conf-chat", |
| 995 | "public_data": "conf-public", |
| 996 | "forward": true, |
| 997 | "view": "the forward (in the test group or any chat); the bot needs the fwd_allow_queries whitelist" |
| 998 | }, |
| 999 | "caption": "auto/26-context-live-copy · The message context: a forward of a widget sent with fwd_allow_queries: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as live-copy: the private chat, allow_queries, fwd_allow_queries, chat_data \"conf-chat\", public_data \"conf-public\", then forwarded; look at the forward (in the test group or any chat); the bot needs the fwd_allow_queries whitelist.", |
| 1000 | "photos": [], |
| 1001 | "zlib": 3129 |
| 1002 | }, |
| 1003 | { |
| 1004 | "widget": "auto/26-context-no-queries.html", |
| 1005 | "width": 0, |
| 1006 | "height": 0, |
| 1007 | "message": { |
| 1008 | "kind": "no-queries", |
| 1009 | "chat_data": "conf-chat", |
| 1010 | "public_data": "conf-public", |
| 1011 | "view": "the original in the tester's private chat (sent without allow_queries)" |
| 1012 | }, |
| 1013 | "caption": "auto/26-context-no-queries · The message context: an original sent without allow_queries: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as no-queries: the private chat, no flags, chat_data \"conf-chat\", public_data \"conf-public\"; look at the original in the tester's private chat (sent without allow_queries).", |
| 1014 | "photos": [], |
| 1015 | "zlib": 3050 |
| 1016 | }, |
| 1017 | { |
| 1018 | "widget": "auto/26-context-preview.html", |
| 1019 | "width": 0, |
| 1020 | "height": 0, |
| 1021 | "message": { |
| 1022 | "kind": "preview", |
| 1023 | "allow_queries": true, |
| 1024 | "inline": true, |
| 1025 | "chat_data": "conf-chat", |
| 1026 | "public_data": "conf-public", |
| 1027 | "view": "the list of inline results: type the test bot's username and conf-preview in any chat; do not send it" |
| 1028 | }, |
| 1029 | "caption": "auto/26-context-preview · The message context: an inline result shown before it is sent: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as preview: an inline result for the query conf-preview, allow_queries, chat_data \"conf-chat\", public_data \"conf-public\"; look at the list of inline results: type the test bot's username and conf-preview in any chat; do not send it.", |
| 1030 | "photos": [], |
| 1031 | "zlib": 2805 |
| 1032 | }, |
| 1033 | { |
| 1034 | "widget": "auto/26-context-private.html", |
| 1035 | "width": 0, |
| 1036 | "height": 0, |
| 1037 | "message": { |
| 1038 | "kind": "private", |
| 1039 | "allow_queries": true, |
| 1040 | "chat_data": "conf-chat", |
| 1041 | "public_data": "conf-public", |
| 1042 | "view": "the original in the tester's private chat with the test bot" |
| 1043 | }, |
| 1044 | "caption": "auto/26-context-private · The message context: the original in the private chat with the bot: isForward, isPreview, chatType, viewer, chatData and what a request may do. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it) Sent as private: the private chat, allow_queries, chat_data \"conf-chat\", public_data \"conf-public\"; look at the original in the tester's private chat with the test bot.", |
| 1045 | "photos": [], |
| 1046 | "zlib": 3084 |
| 1047 | }, |
| 1048 | { |
| 1049 | "widget": "auto/27-haptics-no-touch.html", |
| 1050 | "width": 0, |
| 1051 | "height": 0, |
| 1052 | "caption": "auto/27-haptics-no-touch · Haptics without a touch (v0.2.2): a timer's haptics get one series, the first second's, then none until a touch or 10 s later. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1053 | "photos": [], |
| 1054 | "zlib": 2182 |
| 1055 | }, |
| 1056 | { |
| 1057 | "widget": "auto/28-grid-percent-fill.html", |
| 1058 | "width": 0, |
| 1059 | "height": 0, |
| 1060 | "caption": "auto/28-grid-percent-fill · A grid row with a percentage fill (a poll's options): a <button> grid 52px 1fr auto, a bar across columns 2–3 whose fill a width transition takes to 100 %. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1061 | "photos": [], |
| 1062 | "zlib": 3629 |
| 1063 | }, |
| 1064 | { |
| 1065 | "widget": "auto/29-grid-svg-marks.html", |
| 1066 | "width": 0, |
| 1067 | "height": 0, |
| 1068 | "caption": "auto/29-grid-svg-marks · A 3×3 board with SVG marks (a game board): nine <button>s in a grid on an aspect-ratio box, an SVG mark at 58 % put into a cell by innerHTML after load. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1069 | "photos": [], |
| 1070 | "zlib": 3468 |
| 1071 | }, |
| 1072 | { |
| 1073 | "widget": "auto/30-svg-fill-box.html", |
| 1074 | "width": 0, |
| 1075 | "height": 0, |
| 1076 | "caption": "auto/30-svg-fill-box · transform-box: fill-box on an SVG circle (a chart's end dot): scale(3) and a running pulse about its centre, before and after cx/cy move, measured and drawn (stages). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1077 | "photos": [], |
| 1078 | "zlib": 3615 |
| 1079 | }, |
| 1080 | { |
| 1081 | "widget": "auto/31-stop-text.html", |
| 1082 | "width": 0, |
| 1083 | "height": 0, |
| 1084 | "caption": "auto/31-stop-text · Strict limits: a text value over 32 K characters stops the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1085 | "photos": [], |
| 1086 | "zlib": 2053 |
| 1087 | }, |
| 1088 | { |
| 1089 | "widget": "auto/32-stop-attribute.html", |
| 1090 | "width": 0, |
| 1091 | "height": 0, |
| 1092 | "caption": "auto/32-stop-attribute · Strict limits: an attribute over 8 K characters stops the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1093 | "photos": [], |
| 1094 | "zlib": 2046 |
| 1095 | }, |
| 1096 | { |
| 1097 | "widget": "auto/33-stop-batch.html", |
| 1098 | "width": 0, |
| 1099 | "height": 0, |
| 1100 | "caption": "auto/33-stop-batch · Strict limits: more than 10 000 operations in one task stop the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1101 | "photos": [], |
| 1102 | "zlib": 2219 |
| 1103 | }, |
| 1104 | { |
| 1105 | "widget": "auto/34-stop-css-rules.html", |
| 1106 | "width": 0, |
| 1107 | "height": 0, |
| 1108 | "caption": "auto/34-stop-css-rules · Strict limits: more than 400 CSS rules in the document's stylesheets stop the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1109 | "photos": [], |
| 1110 | "zlib": 2122 |
| 1111 | }, |
| 1112 | { |
| 1113 | "widget": "auto/35-stop-canvas-pixels.html", |
| 1114 | "width": 0, |
| 1115 | "height": 0, |
| 1116 | "caption": "auto/35-stop-canvas-pixels · Strict limits: canvases over 2048 × 2048 pixels together stop the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1117 | "photos": [], |
| 1118 | "zlib": 2143 |
| 1119 | }, |
| 1120 | { |
| 1121 | "widget": "auto/36-safe-area.html", |
| 1122 | "width": 0, |
| 1123 | "height": 0, |
| 1124 | "withoutCaption": true, |
| 1125 | "caption": "auto/36-safe-area · The client's time over a widget with no caption below it: env(safe-area-inset-*) with and without a fallback, other env() names, CSS.supports, the --tg-content-safe-area-* variables and TelegramWidget.contentSafeAreaInset agree, the corner on its side. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it). Sent without a caption: your time over the widget's bottom corner.", |
| 1126 | "photos": [], |
| 1127 | "zlib": 3052 |
| 1128 | }, |
| 1129 | { |
| 1130 | "widget": "auto/36-safe-area.html", |
| 1131 | "width": 0, |
| 1132 | "height": 0, |
| 1133 | "captionAbove": true, |
| 1134 | "variant": "caption-above", |
| 1135 | "caption": "auto/36-safe-area · The client's time over a widget with no caption below it: env(safe-area-inset-*) with and without a fallback, other env() names, CSS.supports, the --tg-content-safe-area-* variables and TelegramWidget.contentSafeAreaInset agree, the corner on its side. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it). Sent with its caption above the widget (invert_media): your time over the widget's bottom corner, as without a caption.", |
| 1136 | "photos": [], |
| 1137 | "zlib": 3052 |
| 1138 | }, |
| 1139 | { |
| 1140 | "widget": "auto/37-paint-counted.html", |
| 1141 | "width": 0, |
| 1142 | "height": 0, |
| 1143 | "caption": "auto/37-paint-counted · Paint limit: 16 heavy boxes (2 of them with backdrop-filter) draw; shadows without blur, a display: none subtree, a ::before without content, a pulse without blur and 20 disabled buttons dimmed by the client are not counted (display: contents is out of profile 1: the validator removes it). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1144 | "photos": [], |
| 1145 | "zlib": 2719 |
| 1146 | }, |
| 1147 | { |
| 1148 | "widget": "auto/38-stop-paint-load.html", |
| 1149 | "width": 0, |
| 1150 | "height": 0, |
| 1151 | "caption": "auto/38-stop-paint-load · Paint limit: 17 boxes with a blurred shadow at load stop the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1152 | "photos": [], |
| 1153 | "zlib": 2175 |
| 1154 | }, |
| 1155 | { |
| 1156 | "widget": "auto/39-stop-paint-class.html", |
| 1157 | "width": 0, |
| 1158 | "height": 0, |
| 1159 | "caption": "auto/39-stop-paint-class · Paint limit: a class change that makes a 17th box heavy (opacity below 1) stops the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1160 | "photos": [], |
| 1161 | "zlib": 2309 |
| 1162 | }, |
| 1163 | { |
| 1164 | "widget": "auto/40-stop-paint-animation.html", |
| 1165 | "width": 0, |
| 1166 | "height": 0, |
| 1167 | "caption": "auto/40-stop-paint-animation · Paint limit: a CSS animation of opacity on 17 boxes stops the widget (heavy for the whole animation). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1168 | "photos": [], |
| 1169 | "zlib": 2304 |
| 1170 | }, |
| 1171 | { |
| 1172 | "widget": "auto/41-stop-paint-web-animation.html", |
| 1173 | "width": 0, |
| 1174 | "height": 0, |
| 1175 | "caption": "auto/41-stop-paint-web-animation · Paint limit: a Web Animation of opacity running on 17 boxes stops the widget (needs the webAnimations feature, D5). the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1176 | "photos": [], |
| 1177 | "zlib": 2327 |
| 1178 | }, |
| 1179 | { |
| 1180 | "widget": "auto/42-stop-paint-before.html", |
| 1181 | "width": 0, |
| 1182 | "height": 0, |
| 1183 | "caption": "auto/42-stop-paint-before · Paint limit: a ::before with a filter is a heavy box of its own; next to 16 heavy elements it stops the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1184 | "photos": [], |
| 1185 | "zlib": 2356 |
| 1186 | }, |
| 1187 | { |
| 1188 | "widget": "auto/43-stop-paint-backdrop.html", |
| 1189 | "width": 0, |
| 1190 | "height": 0, |
| 1191 | "caption": "auto/43-stop-paint-backdrop · Paint limit: two boxes with backdrop-filter run, a third stops the widget. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1192 | "photos": [], |
| 1193 | "zlib": 2362 |
| 1194 | }, |
| 1195 | { |
| 1196 | "widget": "auto/44-stop-nodes.html", |
| 1197 | "width": 0, |
| 1198 | "height": 0, |
| 1199 | "caption": "auto/44-stop-nodes · Strict limits: more than 2000 nodes in the document stop the widget, 1900 more do not. the widget checks itself: its result line at the bottom must say \"done\" and show no \"fail\" (each failure is listed under it)", |
| 1200 | "photos": [], |
| 1201 | "zlib": 2270 |
| 1202 | } |
| 1203 | ], |
| 1204 | "bot": { |
| 1205 | "conf:16:edit": { |
| 1206 | "case": "visual/sdk/16-state-edit", |
| 1207 | "action": { |
| 1208 | "edit": { |
| 1209 | "chat_data": "{n}", |
| 1210 | "public_data": "{n}" |
| 1211 | }, |
| 1212 | "result": "edited {n}" |
| 1213 | } |
| 1214 | }, |
| 1215 | "conf:19:ping": { |
| 1216 | "case": "visual/sdk/19-request-tap", |
| 1217 | "action": { |
| 1218 | "result": "pong, {from}" |
| 1219 | } |
| 1220 | }, |
| 1221 | "conf:20:ask": { |
| 1222 | "case": "visual/sdk/20-forward-requests", |
| 1223 | "action": { |
| 1224 | "result": "answered for {from}" |
| 1225 | } |
| 1226 | }, |
| 1227 | "conf:24:start": { |
| 1228 | "case": "visual/sdk/24-watch-public-data", |
| 1229 | "action": { |
| 1230 | "result": "ticking", |
| 1231 | "repeat": { |
| 1232 | "every": 10, |
| 1233 | "times": 12 |
| 1234 | }, |
| 1235 | "editShared": { |
| 1236 | "public_data": "{n}", |
| 1237 | "cache_time": 5 |
| 1238 | } |
| 1239 | } |
| 1240 | }, |
| 1241 | "conf:25:plus": { |
| 1242 | "case": "visual/sdk/25-group-chat-state", |
| 1243 | "action": { |
| 1244 | "edit": { |
| 1245 | "chat_data": "{\"n\":{n},\"by\":\"{from}\"}" |
| 1246 | }, |
| 1247 | "result": "ok" |
| 1248 | } |
| 1249 | }, |
| 1250 | "conf:a25": { |
| 1251 | "case": "auto/25-state-api-b", |
| 1252 | "action": { |
| 1253 | "result": "ok" |
| 1254 | } |
| 1255 | }, |
| 1256 | "conf:a26:bg": { |
| 1257 | "case": "auto/26-context-private", |
| 1258 | "action": { |
| 1259 | "result": "ok" |
| 1260 | } |
| 1261 | }, |
| 1262 | "conf:a26:tap": { |
| 1263 | "case": "auto/26-context-private", |
| 1264 | "action": { |
| 1265 | "result": "ok" |
| 1266 | } |
| 1267 | } |
| 1268 | } |
| 1269 | } |
| 1270 |