Syntax

background-origin

Setting the background's origin.

Overview

ClassDeclarations
background-origin:`origin`background-origin: `origin`;
bg-origin-borderbackground-origin: border-box;
bg-origin-contentbackground-origin: content-box;
bg-origin-paddingbackground-origin: padding-box;

Apply conditionally

Apply styles based on different states using selectors and conditional queries.

<div class="background:border:hover background:border@sm background:border@dark background:border@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy