| <!DOCTYPE html><!-- webkit-test-runner [ SpatialPortalEnabled=false ] --> |
| <html> |
| <body> |
| <div id="portal" style="spatial: portal; width: 300px; height: 150px;"> |
| <span id="content">Hello!</span> |
| </div> |
| <pre id="results"></pre> |
| <script> |
| window.testRunner?.dumpAsText(); |
| |
| const portal = document.getElementById("portal"); |
| const lines = []; |
| |
| lines.push(`spatial computes to portal: ${getComputedStyle(portal).spatial === "portal"}`); |
| |
| results.textContent = lines.join("\n"); |
| |
| document.getElementById("portal").remove(); |
| </script> |
| </body> |
| </html> |