rodneyrehm/viewport-units-buggyfill
Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4605
- days_rel: n/a
- days_push: 1575
- n_releases_24m: 0
Adoption not part of the score
1581 stars · 148 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript buggyfill that makes CSS viewport units (vh, vw, vmin, vmax) work correctly in Mobile Safari and other buggy browsers like old IE and Android Stock Browser. It reads stylesheets via the CSSOM, resolves viewport units against the viewport dimensions, and re-injects computed CSS, updating on orientation change.
Use cases
- fix vh/vw units breaking layouts in Mobile Safari
- make calc() with viewport units work in IE9+
- support vmin and vmax in older IE
- fix viewport units in old Android Stock Browser
- handle layout recalculation on device orientation change
When to choose
- you must support Mobile Safari or legacy IE/Android browsers where viewport units misbehave
- your CSS relies on vh/vw/vmin/vmax and you see rendering bugs on mobile WebKit
- you need a drop-in script rather than a build-time CSS transform
When to avoid
- you only target modern evergreen browsers where viewport units work correctly
- you rely on viewport units in inline style attributes (not supported)
- your stylesheets are cross-origin without CORS or contain relative asset URLs that the re-injection would break
Facets
library · maturity maintenance
ui-components developer-tools web-development frontend cross-platform browser css viewport-units buggyfill mobile-safari polyfill legacy-browser-support web-server
2 sources
- readme: https://github.com/rodneyrehm/viewport-units-buggyfill · fetched 2026-08-28 · c4fe1f670fc9
- registry_npm: https://registry.npmjs.org/viewport-units-buggyfill · fetched 2026-08-29 · 0b41f78ffdbf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rodneyrehm/viewport-units-buggyfill | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="rodneyrehm/viewport-units-buggyfill")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem