@position-try --custom-bottom {
top: anchor(bottom);
min-width: 100px;
margin-top: 10px;
}CSSPositionTryRule: name property / notebook
CSSPositionTryRule: name property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const myRules = document.styleSheets[0].cssRules;
const tryOption = myRules[0]; // a CSSPositionTryRule
console.log(tryOption.name); // "--custom-bottom"