blob: 4243ad067f9fd347a2ae32082a512249f9851e32 [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',
':-internal-modal-dialog',
];
for (const pseudo of internalPseudoClasses) {
shouldThrowErrorName('target.matches("' + pseudo + '")', 'SyntaxError');
}
finishJSTest();
}
window.onload = runTest;
</script>
</body>
</html>