May 31, 2026

Notch drama hits the comments

Using safe-area-inset to build mobile-safe layouts

Your buttons are hiding behind phone cutouts, and commenters are already side-eyeing Apple

TLDR: The article says websites can now reliably leave room for phone cutouts and swipe areas so buttons don’t get hidden. Commenters weren’t fully buying the smooth sales pitch, with the loudest pushback demanding real iPhone proof and calling out Apple for making this messier than it sounds.

A seemingly simple web design tip — leave space so your app buttons don’t get trapped behind a phone’s notch, camera hole, or swipe bar — somehow turned into a mini comment-section uprising. The article explains that modern phones have awkward screen shapes, and browsers can tell websites how much room to leave on each edge so important stuff stays visible. In plain English: if your floating button is sitting under the bottom swipe area, this is the fix.

But the real heat came from the community, where the vibe was less “nice tutorial” and more “show us the receipts.” The strongest reaction? People wanted real screenshots from actual phones, not polished demos. One commenter zeroed in on Apple, pointing out the delicious irony that Safari on newer iPhones apparently doesn’t fully let sites draw under the top bars the way developers expect — despite Apple being one of the companies that pushed this idea in the first place. That sparked the classic tech-drama mood: standards say one thing, real devices do another.

There’s also a low-key comedy running through the whole discussion: web developers battling notches, islands, bars, corners, and gesture zones like they’re fighting the final boss of rectangle-shaped screens. The article says this feature is widely available and safe to use today. The commenters, meanwhile, are basically yelling, “Cool story — now test it on a real iPhone.”

Key Points

  • The article defines the mobile safe area as the unobscured part of the screen and safe-area-inset values as measurements of system UI space on each edge.
  • It shows how developers can use CSS `env()` with `safe-area-inset-*` variables to add padding and keep content or controls from being obscured.
  • The article says safe-area-insets are baseline widely available and suitable for production use on modern mobile browsers.
  • It provides optional fallback techniques for browsers without `env()` support or for unsupported environment variables, while noting some fallback cases are largely theoretical.
  • The article explains that browsers already protect content by default, but developers need `viewport-fit=cover` plus safe-area handling to create edge-to-edge layouts.

Hottest takes

"It'd be nice to see screenshots from real mobile browsers" — sheept
"it is not possible to use viewport-fit=cover" — sheept
"ironically Apple introduced it for the iPhone X" — sheept
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.