Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: snapshot
- Manifest: layout/reftests/meta-viewport/reftest.list
<!DOCTYPE html>
<meta name="viewport" content="width=device-width">
<!-- This should still have an effect after removal -->
<meta name="viewport" content="width=980">
<script>document.querySelector('meta + meta').remove()</script>
<style>
#box {
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
background: green;
}
</style>
<div id="box"></div>