| 1 |
| <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>twidget — feed bench (iframe vs shadow DOM renderer)</title> |
| 7 | <style> |
| 8 | :root { color-scheme: light; } |
| 9 | html, body { margin: 0; height: 100%; font: 14px/1.4 system-ui, sans-serif; background: #e9eef3; } |
| 10 | #feed { height: 100%; overflow: auto; padding: 8px 12px; box-sizing: border-box; } |
| 11 | .bubble { width: 420px; max-width: 100%; margin: 0 0 10px; background: #fff; border-radius: 12px; overflow: hidden; box-sizing: border-box; } |
| 12 | .bubble.cv { content-visibility: auto; contain-intrinsic-size: auto 240px; } |
| 13 | .bubble .frame-wrap { width: 100%; } |
| 14 | .widget-frame { display: block; width: 100%; height: 24px; border: 0; background: transparent; } |
| 15 | #hud { position: fixed; right: 8px; top: 8px; background: rgba(255,255,255,.92); border: 1px solid #ccd; border-radius: 8px; padding: 6px 10px; font: 12px/1.5 ui-monospace, monospace; white-space: pre; max-width: 46vw; } |
| 16 | </style> |
| 17 | </head> |
| 18 | <body> |
| 19 | <div id="feed"></div> |
| 20 | <div id="hud">feed bench</div> |
| 21 | <script type="module" src="./feed.ts"></script> |
| 22 | </body> |
| 23 | </html> |
| 24 |