Apply a neutral backdrop-filter to a fixed position element to prevent Safari from sampling its background color.
A fixed element with bottom: -8px and min-height: 12px is sampled by Safari for toolbar tinting but is invisible to the user. Adjust the bottom offset to see when Safari stops sampling.
A fixed element with background-color: transparent is invisible to Safari's algorithm. An position: absolute child carries the visual styling, but Safari skips absolute children — so the toolbar tint falls through to the body background.
Which CSS visibility methods prevent Safari from sampling a fixed element? Only display: none is reliable. The others still get sampled.
::before and ::after pseudo-elements on fixed-position elements are NOT sampled by Safari's tinting algorithm. The background color from a pseudo-element is ignored.
Users can enable or disable browser UI color tinting in Safari 26:
macOS: Safari › Setting › Tabs › Appearance: ✓ Show color in tab bar
iOS: Setting › Apps › Safari ›