Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/size-container-popover-change.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Container Queries Test: inline-size container popover change</title>
<link rel="match" href="/css/reference/pass_if_pass_below.html">
<style>
#container {
display: block;
container-type: inline-size;
height: 100px;
width: 100px;
margin: 0;
padding: 0;
inset: auto;
border: none;
}
</style>
<p>Test passes if there is the word "PASS" below.</p>
<div id="container" popover>PASS</div>
<script>
container.showPopover();
container.hidePopover();
</script>