blob: a1e0d5ab31ee1fba789427d8d0c7a279f6138b79 [file] [log] [blame]
<!doctype html>
<title>Test for Bug 48984 - [Chromium] @media print crash due to paged media support</title>
* { display: none; }
<div id="output">
Test has not run yet.
Click the print button and see if Chromium crashes.
<input type="button" value="print" onclick="testManually()"/>
function testManually() { = "none";
if (window.testRunner) {
// The test passes if the following line doesn't cause a crash.
internals.pageSizeAndMarginsInPixels(0, 100, 200, 1, 2, 3, 4);
document.getElementById("output").innerHTML = "PASS";
// Remove the display: none; rule. Otherwise, DumpRenderTree dumps weird stuff.