@position-try --custom-bottom {
top: anchor(bottom);
min-width: 100px;
margin-top: 10px;
}CSSPositionTryRule: style property / notebook
CSSPositionTryRule: style 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.style.top); // "anchor(bottom)"
console.log(tryOption.style["min-width"]); // "100px"
console.log(tryOption.style.positionArea); // ""; no position-area specified