Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-scroll-anchoring/fullscreen-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
#a { height: 700px; }
#b { border: 4px solid #ccc; }
</style>
<div id="a"><div id="b"></div></div>
<script>
onload = () => {
test_driver.bless("requestFullscreen", step2);
};
step2 = () => {
b.requestFullscreen();
b.addEventListener('fullscreenchange', step3);
};
step3 = () => {
document.designMode = "on";
document.execCommand("selectAll");
document.execCommand("formatBlock", false, "p");
document.documentElement.classList.remove('test-wait');
};
</script>
</html>