<backdrop-filter>
Blur accumulated paint at a drawable's position in its parent scope.
Examples
Download the complete .nothing source · Source on GitHub
Rendered with ncf-preview at 64 × 32.

<scene width="64" height="32" frame-rate="24" background="#000000FF">
<shape>
<rect anchor-u="0" anchor-v="0" offset-x="20" width="4" height="32"/>
<fill><paint><solid color="#FFFFFFFF"/></paint></fill>
</shape>
<shape>
<rect anchor-u="0" anchor-v="0" offset-x="10" offset-y="6" width="40" height="18" corner-radius="3"/>
<backdrop-filter><blur sigma="3"/></backdrop-filter>
<fill><paint><solid color="#3080C030"/></paint></fill>
<filter><drop-shadow dx="4" dy="2" sigma="0" color="#FF0000FF"/></filter>
</shape>
<shape>
<rect anchor-u="0" anchor-v="0" offset-x="28" width="2" height="32"/>
<fill><paint><solid color="#FFFF00FF"/></paint></fill>
</shape>
</scene>A backdrop filter samples earlier paint in its parent scope. The owner can paint its own content and carry an independent source filter.
Syntax
Blur earlier paint through the panel
The earlier white stripe stays white at (21, 2) outside the panel, darkens at (21, 14) inside it, and spreads light to (25, 14). A separate source filter casts the red shadow.
<backdrop-filter><blur sigma="3"/></backdrop-filter>Complete .nothing source · Sample checks
Usage context
Allowed parents are <shape>, <group>, <sequence>.
A group or sequence requires an explicit mask. A shape can use its filled geometry as the default aperture. A shape mask further limits the effect within that filled geometry. The declaration's position among the owner's children has no effect on evaluation order.
Children
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<blur> | Exactly one | <backdrop-filter> | One blur determines the backdrop kernel. Applied to earlier paint before the owner paints its own picture. |