Top inset
0px
env(safe-area-inset-top)
Mobile viewport debugging
Check CSS env(safe-area-inset-*) values, visual viewport offsets, and mobile browser viewport behavior for notch and edge-safe layouts.
Measure CSS environment insets and visual viewport behavior in the current browser.
Top inset
0px
env(safe-area-inset-top)
Right inset
0px
env(safe-area-inset-right)
Bottom inset
0px
env(safe-area-inset-bottom)
Left inset
0px
env(safe-area-inset-left)
Measurement status
Checking safe-area support…
Layout viewport
Measuring…
Visual viewport
Measuring…
Visual offset / scale
Measuring…
Safe-area CSS pattern
Use env() with fallbacks and keep important UI away from device edges.
.app-shell {
padding-top: max(16px, env(safe-area-inset-top));
padding-right: max(16px, env(safe-area-inset-right));
padding-bottom: max(16px, env(safe-area-inset-bottom));
padding-left: max(16px, env(safe-area-inset-left));
}
Developer workflow
Safe-area values help responsive layouts avoid hardware cutouts, rounded screen edges, and mobile browser controls. They are especially useful for full-screen app shells, sticky bottom navigation, chat inputs, and installable web apps.
Use a viewport meta tag with viewport-fit=cover when you intentionally want an edge-to-edge iOS layout and need safe-area values.
Wrap safe-area values in max() or combine them with base spacing so desktop and rectangular screens still have comfortable padding.
Desktop responsive mode is useful, but final checks should include real iOS Safari and Android Chrome when the UI touches screen edges.
Zero is normal on desktop browsers, rectangular viewports, and browsers that do not expose a non-zero safe area for the current page state.
It is commonly used to keep sticky bottom navigation, chat inputs, and call-to-action buttons above the home indicator area on supported mobile devices.
Browsers do not expose keyboard height directly in a consistent way, but visual viewport height and offset changes can help identify keyboard or browser chrome changes.
No. Use it when you intentionally want edge-to-edge layouts and have tested safe-area padding. Normal websites may not need it.
Content cluster
Use these supporting guides to understand the tool result and next testing steps.
Continue with another ScreenMetricLab utility.