<!doctype html>
<html>
<head>
<script>
function runTest() {
var rules = document.styleSheets[0].cssRules;
document.styleSheets[0].insertRule("@font-face { font-family: f1; font-weight: 100; src: url(../../resources/Ahem.ttf); }", 0);
document.body.offsetLeft;
var target = document.getElementById('target');
target.parentNode.removeChild(target);
}
</script>
</head>
<body onload="runTest()">
<style id="target">
.nothing {
color: red;
}
</style>
<!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. -->
<span style="font-family: f1; font-weight: 100">A</span>
</body>
</html>