This commit is contained in:
Jesse Ruderman 2015-02-22 02:41:58 +00:00
Родитель 1240a0d52b
Коммит 332e3b357f
2 изменённых файлов: 41 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style id="s">
@font-face {
font-family: x;
src: url(bogus-font.ttf);
}
@font-face {
font-family: y;
src: url(bogus-font.ttf);
}
</style>
<script>
function boom()
{
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
ctx.font = 'normal 20px x';
document.getElementById("s").remove();
setTimeout(function() {
ctx.measureText("A");
}, 50);
}
window.addEventListener("DOMContentLoaded", boom, false)
</script>
</head>
<body><div style="font-family: y;">y</div></body>
</html>

Просмотреть файл

@ -112,4 +112,5 @@ load 893572-2.html
load 893572-3.html
load 893572-4.html
load 944579.svg
pref(security.fileuri.strict_origin_policy,false) load 950000.html
load 1034403-1.html