1
0
Fork 0
firefox/layout/reftests/printing/test-print-selection-iframe.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
557 B
HTML

<!DOCTYPE html>
<html reftest-print-range="selection">
<head>
<meta charset="utf-8">
<link href="print.css" rel="stylesheet">
<script>
function selectNodeById(id) {
var node = document.getElementById(id);
var rng = document.createRange();
rng.selectNode(node);
window.getSelection().addRange(rng);
}
</script>
</head>
<body onload="selectNodeById('selection')">
<p>This text should not be there</p>
<p id="selection">This text should appear on page 1</p>
<iframe src="data:text/html,"></iframe>
</body>
</html>