var exceptionThrown = false;
try {
is(document.styleSheets[1].cssRules[0].cssText, "body { color: green; }", "Should get the color: green rule back");
} catch (e) {
exceptionThrown = true;
}
ok(!exceptionThrown, "Should be able to access data: <link> stylesheet");
exceptionThrown = false;
try {
is(document.styleSheets[2].cssRules[1].cssText, "body { color: black; }", "Should get the color: black rule back");
} catch (e) {
exceptionThrown = true;
}
ok(!exceptionThrown, "Should be able to access <style> stylesheet");
exceptionThrown = false;
try {
is(document.styleSheets[2].cssRules[0].styleSheet.cssRules[0].cssText, "body { border: 1px solid transparent; }", "Should get the 'border: 1px solid transparent' rule back");
} catch (e) {
exceptionThrown = true;
}
ok(!exceptionThrown, "Should be able to access data: @import stylesheet");
ok(!executed, "Shouldn't be executing stylesheet-link javascript: URIs against " + "the page context");
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ 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.0.17Bemerkung:
(vorverarbeitet am 2026-06-04)
¤
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.