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

Side by Side Diff: LayoutTests/fast/html/imports/import-readd.html

Issue 331763002: HTML Imports: styles in removed imports should be applied when it comes back (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-readd-dup-nested.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <link rel=import href="./resources/style-red.html">
7 </head>
8 <body>
9 <h1 class="target">Should be red</h1>
10 <script>
11 var t = async_test('Styles are re-applied after removed imports are re-added');
12 window.onload = function() {
13 t.step(function() {
14 var importLink = document.querySelector('link');
15 document.head.removeChild(importLink);
16 document.head.appendChild(importLink);
17 assert_equals(window.getComputedStyle(document.querySelector('.target')) .color, 'rgb(255, 0, 0)');
18 Array.prototype.forEach.call(document.querySelectorAll("h1"), function(e ) { e.style.display = "none"; });
19 t.done();
20 });
21 }
22 </script>
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-readd-dup-nested.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698