| Index: LayoutTests/fast/css/remove-style-after-remove-font-face.html
|
| diff --git a/LayoutTests/fast/css/remove-style-after-remove-font-face.html b/LayoutTests/fast/css/remove-style-after-remove-font-face.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1702e273df2cc090e308a6b5f0df36c42f382051
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/remove-style-after-remove-font-face.html
|
| @@ -0,0 +1,24 @@
|
| +<!doctype html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| +function runTest() {
|
| + var rules = document.styleSheets[0].cssRules;
|
| + document.styleSheets[0].deleteRule(0);
|
| + var target = document.getElementById('target');
|
| + target.parentNode.removeChild(target);
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<style id="target">
|
| +@font-face {
|
| + font-family: f1;
|
| + font-weight: 100;
|
| + src: url(../../resources/Ahem.ttf);
|
| +}
|
| +</style>
|
| +<!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. -->
|
| +<span style="font-family: f1; font-weight: 100">A</span>
|
| +</body>
|
| +</html>
|
|
|