b1c38d2570a55465477e89c0b89e7f08188d1efd
[WebKit-https.git] / LayoutTests / system-preview / badge.html
1 <!DOCTYPE html>
2 <style>
3     a {
4         -webkit-clip-path: path("M 82 14 L 86 14 L 86 18 L 82 18 z");
5     }
6     img {
7         width: 100px;
8         height: 100px;
9     }
10 </style>
11 <script>
12 window.addEventListener("load", () => {
13     if (!window.internals)
14         return;
15
16     const link = document.querySelector("a");
17     link.rel = internals.systemPreviewRelType();
18 }, false);
19 </script>
20 <p>This test only works in WKTR or DRT.</p>
21 <a href="/">
22     <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAABlBMVEUAAP8AAAB7Yr8+AAAAEElEQVR4nGJgBQAAAP//AwAABwAGzHKrJgAAAABJRU5ErkJggg==">
23 </a>