Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: LayoutTests/fast/css/font-face-insertBefore.html

Issue 82583005: Use removeFontFace to avoid resetting fontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698