blob: c77f1b35d4d61f4f8c2046c5c58d28fd3ce63665 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] -->
<head>
<script src="../../resources/js-test-pre.js"></script>
<style>
img { clear: both; }
img:has-attachment { clear: none; }
</style>
</head>
<body>
<img id=target>
<script>
description("This tests the :has-attachment pseudoclass.");
var target = document.getElementById("target");
shouldBeEqualToString("getComputedStyle(target).clear", "both");
HTMLAttachmentElement.getAttachmentIdentifier(target);
shouldBeEqualToString("getComputedStyle(target).clear", "none");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>