library
Prebuilt pebble components: drop-in custom elements, no compiler needed
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runAucun
0Étoiles
0Forks
2Issues
tablet 0.3.0: the field fits its text, and the caret shows when decorated
The field sizes to its content (field-sizing: var(--tablet-sizing, content)), from --tablet-min-height until --tablet-max-height, where it scrolls and the backdrop follows. Where field-sizing is supported the resize handle goes (--tablet-resize, default none). --tablet-sizing: fixed with --tablet-resize: vertical keeps the textarea's rows and handle; browsers without field-sizing keep them anyway. A decorating dialect hid the field's glyphs with color: transparent, and the caret's colour is currentColor, so the caret went transparent with them. Only -webkit-text-fill-color goes transparent now; color stays the text's, so the caret and spellcheck marks show. The Chromium smoke checks both: the caret colour (it read rgba(0, 0, 0, 0) before), and the field starting at its min-height, growing with its text, stopping at its max-height, and fixed when opted out. 0.3.0 is also the first tablet to ship only the declarations its index reaches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents 1b56dd9
4 fichiers modifiés, 40 ajouts, 2 suppressions
docs/tablet.md+4−0examples/tablet-smoke.ts+23−0packages/tablet/package.json+1−1packages/tablet/tablet.css+12−1