Blending Tinting and Page Blurs

A sheet or a dialog dims and blurs the page behind it with a translucent layer: a scrim. Safari ignores the scrim, so the status bar and the toolbar keep the page color above and below the dimmed page.

A solid strip at the edge, in the color the scrim shows over the page, makes them match the scrim.

Sheet

The sheet covers the bottom edge, and Safari tints the toolbar with the color of the sheet. Only the top edge needs a strip.

Dialog

The dialog touches no edge, so both edges need a strip.

Rules

Technique: gist by caelinsutch. Code for this page: scrim.html.