blob: 2112634287940c9840ba25feff934eab492aa0c3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<div id="target"></div>
<script>
description('This tests that -internal- pseudo classes are not exposed');
function runTest() {
const internalPseudoClasses = [
':-internal-direct-focus',
];
for (const pseudo of internalPseudoClasses) {
shouldThrowErrorName('target.matches("' + pseudo + '")', 'SyntaxError');
}
finishJSTest();
}
window.onload = runTest;
</script>
</body>
</html>