CSS textarea trick intermittently fails on iPhone
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.5k
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
https://til.simonwillison.net/css/resizing-textarea
Sometimes it works, sometimes it doesn't. I've found it easiest to recreate clicking a link to it in the Twitter in-app browser.
I managed to run the Safari debugger against it, where I confirmed that the data- attribute is correctly updating - I can't figure out why that doesn't cause the ::after element to increase in size:
https://github.com/simonw/til/assets/9599/b4506820-18c8-47fd-80d5-400e0e92ecba
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS textarea trick described at https://til.simonwillison.net/css/resizing-textarea and reproduce the failure by opening it through a link in the Twitter in-app browser on an iPhone. Use the Safari debugger to compare the updating data- attribute with the ::after element's size; done means the textarea resizes reliably in that environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, ios
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100