function testCSSFontFeatureValuesRuleOM() { var s = document.documentElement.style; var cs = window.getComputedStyle(document.documentElement);
var hasFFVRule = "CSSFontFeatureValuesRule" in window; var hasStyleAlternates = "fontVariantAlternates" in s; var hasCompStyleAlternates = "fontVariantAlternates" in cs;
// if window.CSSFontFeatureValuesRule isn't around, neither should any of the font feature props
fontFeatureProps = [ "fontKerning", "fontVariantAlternates", "fontVariantCaps", "fontVariantEastAsian", "fontVariantLigatures", "fontVariantNumeric", "fontVariantPosition", "fontSynthesis", "fontFeatureSettings", "fontLanguageOverride" ];
if (!hasFFVRule) { var i;
for (i = 0; i < fontFeatureProps.length; i++) { var prop = fontFeatureProps[i];
test(function() {
assert_true(!(prop in s), "window.CSSFontFeatureValuesRule not available but style." + prop + " is available - ");
}, "style." + prop + " availability");
test(function() {
assert_true(!(prop in cs), "window.CSSFontFeatureValuesRule not available but computedStyle." + prop + " is available - ");
}, "computedStyle." + prop + " availability");
}
}
}
testCSSFontFeatureValuesRuleOM();
</script>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-05-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.