gecko-dev/dom/canvas/crashtests/1441613.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 строки
460 B
HTML
Исходник Обычный вид История

<!DOCTYPE html>
<html class="reftest-wait">
<iframe id="iframe" src="about:blank"></iframe>
<script>
iframe.onload = function() {
let doc = iframe.contentDocument;
let canvas = doc.createElement('canvas');
doc.body.appendChild(canvas);
let ctx = canvas.getContext('2d');
document.body.offsetTop;
iframe.style.display = 'none';
try {
ctx.font = '10px serif';
} finally {
document.documentElement.className = "";
}
};
</script>
</html>