{"id":18563325,"url":"https://github.com/compulim/experiment-safari-auto-scroll-keyboard","last_synced_at":"2026-03-19T05:04:52.150Z","repository":{"id":173786598,"uuid":"651293087","full_name":"compulim/experiment-safari-auto-scroll-keyboard","owner":"compulim","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-13T20:37:19.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-15T18:13:12.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://compulim.github.io/experiment-safari-auto-scroll-keyboard/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compulim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T23:57:00.000Z","updated_at":"2023-08-28T13:17:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"0521b03c-4acd-4cc2-b38f-5c0d1385bb72","html_url":"https://github.com/compulim/experiment-safari-auto-scroll-keyboard","commit_stats":null,"previous_names":["compulim/experiment-safari-auto-scroll-keyboard"],"tags_count":0,"template":false,"template_full_name":"compulim/template-react-esbuild","purl":"pkg:github/compulim/experiment-safari-auto-scroll-keyboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fexperiment-safari-auto-scroll-keyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fexperiment-safari-auto-scroll-keyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fexperiment-safari-auto-scroll-keyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fexperiment-safari-auto-scroll-keyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compulim","download_url":"https://codeload.github.com/compulim/experiment-safari-auto-scroll-keyboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fexperiment-safari-auto-scroll-keyboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28659518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T22:12:21.339Z","updated_at":"2026-01-22T08:34:27.135Z","avatar_url":"https://github.com/compulim.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# experiment-safari-auto-scroll-keyboard\n\nIt seems iOS/iPadOS Safari \"scroll form control into view\" could be interrupted when a style is being applied to the pseudo element of the form control. It do not happen all the time and looks like a race condition.\n\n## Repro steps\n\n1. Click the demo link below\n2. Tap on the top part (green)\n3. Tap on the text box\n4. EXPECT: The text box should scroll into view\n5. ACTUAL: The text box did not scroll into view and is hidden from viewport until scrolled manually\n6. If it does not repro, repeat step 2-3 for up to 20 times\n\n(Only on iOS) Also, when the text box is focused, `\u003cbody\u003e` become much taller and scrollable to the empty bottom part. This is not expected.\n\n## Description\n\nThe demos below are free of JavaScript with minimal use of CSS flex box. The only difference is how CSS is being applied to `input::placeholder`.\n\n- [Demo of repro](https://compulim.github.io/experiment-safari-auto-scroll-keyboard/index3.html), coloring placeholder red [(source code)](https://github.com/compulim/experiment-safari-auto-scroll-keyboard/blob/main/public/index3.html)\n  ```css\n  .text-box::placeholder {\n    color: Red;\n  }\n  ```\n- [Demo of no-repro](https://compulim.github.io/experiment-safari-auto-scroll-keyboard/index4.html), style is commented out [(source code)](https://github.com/compulim/experiment-safari-auto-scroll-keyboard/blob/main/public/index4.html)\n  ```css\n  /* .text-box::placeholder {\n    color: Red;\n  } */\n  ```\n- [Demo of repro](https://compulim.github.io/experiment-safari-auto-scroll-keyboard/index5.html), style is empty [(source code)](https://github.com/compulim/experiment-safari-auto-scroll-keyboard/blob/main/public/index5.html)\n  ```css\n  .text-box::placeholder {\n  }\n  ```\n\n## Videos\n\nTested on iOS 16.5 and iPadOS 16.5.\n\n### Demo of repro, coloring placeholder red\n\nhttps://github.com/compulim/experiment-safari-auto-scroll-keyboard/assets/1622400/24f9015d-bc9f-4353-87f8-756a86ab604c\n\n### Demo of no-repro, style is commented out\n\nhttps://github.com/compulim/experiment-safari-auto-scroll-keyboard/assets/1622400/8a6da055-e3df-4b76-9c17-cdd804bd2820\n\n### Demo of repro, style is empty\n\nhttps://github.com/compulim/experiment-safari-auto-scroll-keyboard/assets/1622400/678611f7-81bf-4afa-bf2b-dddf9c2007e8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fexperiment-safari-auto-scroll-keyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompulim%2Fexperiment-safari-auto-scroll-keyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fexperiment-safari-auto-scroll-keyboard/lists"}