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

Side by Side Diff: LayoutTests/fast/css/remove-style-after-insert-font-face.html

Issue 66483002: fontSelector should be reset when removing stylesheets which has @font-face rule. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 function runTest() {
6 var rules = document.styleSheets[0].cssRules;
7 document.styleSheets[0].insertRule("@font-face { font-family: f1; font-weigh t: 100; src: url(../../resources/Ahem.ttf); }", 0);
8 document.body.offsetLeft;
9 var target = document.getElementById('target');
10 target.parentNode.removeChild(target);
11 }
12 </script>
13 </head>
14 <body onload="runTest()">
15 <style id="target">
16 .nothing {
17 color: red;
18 }
19 </style>
20 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. -->
21 <span style="font-family: f1; font-weight: 100">A</span>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698