| Index: LayoutTests/fast/css/font-face-insertBefore.html
|
| diff --git a/LayoutTests/fast/css/font-face-remove.html b/LayoutTests/fast/css/font-face-insertBefore.html
|
| similarity index 58%
|
| copy from LayoutTests/fast/css/font-face-remove.html
|
| copy to LayoutTests/fast/css/font-face-insertBefore.html
|
| index 9f76e80bd388232a5943b4d7438506caa2592124..14f1c707dbee63bf40e195290d517e347d489aae 100644
|
| --- a/LayoutTests/fast/css/font-face-remove.html
|
| +++ b/LayoutTests/fast/css/font-face-insertBefore.html
|
| @@ -3,9 +3,10 @@
|
| <head>
|
| <script>
|
| function runTest() {
|
| - var target = document.getElementById('target');
|
| + var newStyle = document.createElement('style');
|
| + newStyle.innerHTML = "@font-face { font-family: f1; font-weight: 100; src: local('Courier New'); }";
|
| document.body.offsetLeft;
|
| - target.parentNode.removeChild(target);
|
| + document.body.insertBefore(newStyle, document.getElementById('target'));
|
| }
|
| </script>
|
| </head>
|
| @@ -17,7 +18,6 @@ function runTest() {
|
| 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>
|
|
|