webkit.md

skills/responsive-qa/references/webkit.md16 lines, 1.9 KBView on GitHub

Known Safari / WebKit breaks

Check the changed CSS for these when a WebKit screenshot isn't possible.

SymptomCauseFix
Frosted/blur effect missing, or a gradient overlay shows where blur should bebackdrop-filter without -webkit-backdrop-filter (Safari < 18), or blur on an element with overflow: hidden + border-radiusAdd -webkit-backdrop-filter; test the fallback background; avoid stacking a gradient that only exists for the blur. Tailwind's backdrop-blur-* emits both.
Blur/fade "stuck" on cards after an animationwill-change/transform creating a layer that keeps the filterRemove will-change after the animation; avoid animating backdrop-filter.
Sticky header or sidebar does not stick, or stops earlyAn ancestor has overflow: hidden/auto, or the sticky element is in a flex child with no heightRemove ancestor overflow (use overflow: clip instead), set align-self: start on the sticky child.
Bar does not extend to the top behind the status bar / headerMissing top: 0 with safe area, or a parent's paddingUse top: 0, padding-top: env(safe-area-inset-top), viewport-fit=cover in the viewport meta.
Layout jumps or is cut off at the bottom on iPhone100vh includes the hidden URL barUse 100dvh (or 100svh) with a 100vh fallback.
Inputs zoom the page on focusFont size below 16 px on inputsfont-size: 16px (or larger) on inputs on touch widths.
Masks/fades not appliedmask-image without -webkit-mask-image (older Safari)Add the prefixed property.
Gap missing in flex rowsVery old Safari (< 14.1)Usually ignore now; use margins only if analytics show those versions.
Smooth scroll / scroll-snap jitterscroll-behavior + snap on the root in iOSSnap on an inner container, not html.
Date or select controls look unstyledNative WebKit appearanceappearance: none plus the project's styled component.