@font-feature-values "MonteCarlo" {
@ornaments {
my-ornaments: 1;
}
}CSSFontFeatureValuesRule: ornaments property / notebook
CSSFontFeatureValuesRule: ornaments property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
// look for the first stylesheet and the first cssRule in that sheet
const myRule = document.styleSheets[0].cssRules[0];
// check
if (myRule instanceof CSSFontFeatureValuesRule && myRule.ornaments.size) {
// do something with the ornaments
}