Update web-platform-tests

Import wpt@fed03d61ac548fb94838e0f868f75c619d9a8edb

Using update-w3c-deps in Chromium 1353ef00266c2b94ab98b1e028296c273fa14a70.

BUG=622853,622819

Review-Url: https://codereview.chromium.org/2086283003
Cr-Commit-Position: refs/heads/master@{#402318}
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations
index 6953730..da310aa 100644
--- a/third_party/WebKit/LayoutTests/TestExpectations
+++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -49,7 +49,7 @@
 crbug.com/538697 [ Win7 Debug ] virtual/threaded/printing/webgl-oversized-printing.html [ Crash ]
 crbug.com/538697 [ Win7 Debug ] printing/webgl-oversized-printing.html [ Crash ]
 
-crbug.com/617152 imported/wpt/mediacapture-streams/GUM-impossible-constraint.html [ Skip ]
+crbug.com/617152 imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html [ Skip ]
 
 # Expected to fail until OffscreenCanvas can render on the gpu
 crbug.com/593514 virtual/gpu/fast/canvas/OffscreenCanvas-strokeRect-in-worker.html [ Failure ]
@@ -571,19 +571,19 @@
 
 crbug.com/602110 hittesting/border-hittest-with-image-fallback.html [ Failure ]
 
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-end.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-init.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-audio-only.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-finished-add.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-idl.html [ Skip ]
-crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-removetrack.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-end.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStreamTrack-init.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-audio-only.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-finished-add.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-idl.https.html [ Skip ]
+crbug.com/387740 imported/wpt/mediacapture-streams/MediaStream-removetrack.https.html [ Skip ]
 
-crbug.com/412381 imported/wpt/mediacapture-streams/GUM-empty-option-param.html [ Failure ]
-crbug.com/412381 imported/wpt/mediacapture-streams/GUM-trivial-constraint.html [ Failure ]
-crbug.com/412381 imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.html [ Failure ]
-crbug.com/412381 imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.html [ Pass Timeout Failure ]
+crbug.com/412381 imported/wpt/mediacapture-streams/GUM-empty-option-param.https.html [ Failure ]
+crbug.com/412381 imported/wpt/mediacapture-streams/GUM-trivial-constraint.https.html [ Failure ]
+crbug.com/412381 imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.https.html [ Failure ]
+crbug.com/412381 imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.https.html [ Pass Timeout Failure ]
 
 crbug.com/325673 imported/wpt/custom-elements/v0/concepts/custom-elements-type-allowed-chars-first-char.html [ Failure Timeout ]
 crbug.com/325673 imported/wpt/custom-elements/v0/concepts/custom-elements-type-allowed-chars.html [ Failure Timeout ]
@@ -1264,6 +1264,8 @@
 crbug.com/612924 imported/wpt/pointerevents/pointerevent_touch-action-table-test_touch-manual.html  [ Skip ]
 crbug.com/612924 virtual/pointerevent/imported/wpt/pointerevents/pointerevent_touch-action-verification.html  [ Skip ]
 crbug.com/612924 imported/wpt/pointerevents/pointerevent_touch-action-verification.html  [ Skip ]
+crbug.com/612924 imported/wpt/pointerevents/pointerevent_properties_mouse-manual.html [ Skip ]
+crbug.com/612924 virtual/pointerevent/imported/wpt/pointerevents/pointerevent_properties_mouse-manual.html [ Skip ]
 
 # These testcases are incorrect, mark them as failing until they're fixed in the testsuite.
 # https://lists.w3.org/Archives/Public/www-style/2016Jan/0275.html
@@ -1564,8 +1566,8 @@
 
 crbug.com/601669 [ Win ] svg/as-image/svg-nested.html [ Crash ]
 
-crbug.com/600261 imported/wpt/mediacapture-streams/GUM-deny.html [ Failure ]
-crbug.com/600261 imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.html [ Failure ]
+crbug.com/600261 imported/wpt/mediacapture-streams/GUM-deny.https.html [ Failure ]
+crbug.com/600261 imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html [ Failure ]
 
 crbug.com/605525 [ Win ] http/tests/xmlhttprequest/redirect-cross-origin-post.html [ Failure Pass ]
 
@@ -1658,6 +1660,8 @@
 
 crbug.com/622368 [ Linux Win Debug ] fast/repaint/obscured-background-no-repaint.html [ Pass Failure ]
 
+crbug.com/622819 imported/wpt/IndexedDB/transaction-lifetime-empty.html [ Skip ]
+
 crbug.com/621892 css3/filters/effect-brightness-clamping-hw.html [ Pass Failure ]
 crbug.com/621892 css3/filters/effect-brightness-hw.html [ Pass Failure ]
 crbug.com/621892 css3/filters/effect-hue-rotate-hw.html [ Pass Failure ]
diff --git a/third_party/WebKit/LayoutTests/W3CImportExpectations b/third_party/WebKit/LayoutTests/W3CImportExpectations
index 7e176d9..8537c74 100644
--- a/third_party/WebKit/LayoutTests/W3CImportExpectations
+++ b/third_party/WebKit/LayoutTests/W3CImportExpectations
@@ -218,6 +218,7 @@
 imported/wpt/editing [ Skip ]
 ## Owners: jsbell@chromium.org
 # imported/wpt/encoding [ Pass ]
+imported/wpt/encrypted-media [ Skip ]
 imported/wpt/eventsource [ Skip ]
 imported/wpt/ext-xhtml-pubid [ Skip ]
 imported/wpt/fetch [ Skip ]
@@ -252,6 +253,7 @@
 imported/wpt/navigation-timing [ Skip ]
 imported/wpt/notifications [ Skip ]
 imported/wpt/old-tests [ Skip ]
+imported/wpt/orientation-event [ Skip ]
 imported/wpt/page-visibility [ Skip ]
 imported/wpt/performance-timeline [ Skip ]
 ## Owners: mustaq@chromium.org
@@ -458,6 +460,7 @@
 imported/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name_cross_origin_3.html [ Skip ]
 imported/wpt/html/browsers/browsing-the-web/navigating-across-documents [ Skip ]
 imported/wpt/html/browsers/browsing-the-web/unloading-documents [ Skip ]
+imported/wpt/html/browsers/history/joint-session-history/joint-session-history-only-fully-active.html [ Skip ]
 imported/wpt/html/browsers/history/the-history-interface/001.html [ Skip ]
 imported/wpt/html/browsers/history/the-history-interface/002.html [ Skip ]
 imported/wpt/html/browsers/history/the-history-interface/009.html [ Skip ]
@@ -528,6 +531,7 @@
 imported/wpt/html/semantics/document-metadata/the-base-element/base_multiple.html [ Skip ]
 imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html [ Skip ]
 imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html [ Skip ]
+imported/wpt/html/semantics/embedded-content/the-iframe-element/change_parentage.html [ Skip ]
 imported/wpt/html/semantics/embedded-content/the-object-element/object-handler.html [ Skip ]
 imported/wpt/html/semantics/forms/attributes-common-to-form-controls/dirname-ltr.html [ Skip ]
 imported/wpt/html/semantics/forms/the-button-element/button-activate.html [ Skip ]
@@ -573,6 +577,8 @@
 imported/wpt/html/infrastructure/urls/terminology-0/multiple-base.sub.html [ Skip ]
 imported/wpt/html/semantics/document-metadata/the-base-element/base_href_specified.sub.html [ Skip ]
 imported/wpt/html/semantics/embedded-content/media-elements/track/track-element/cors [ Skip ]
+imported/wpt/dom/events/EventListener-incumbent-global-1.sub.html [ Skip ]
+imported/wpt/dom/events/EventListener-incumbent-global-2.sub.html [ Skip ]
 
 # https://github.com/w3c/web-platform-tests/issues/1862:
 # The test doesn't handle ':' after a drive letter in file: URL on Windows.
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbkeyrange-includes.htm b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbkeyrange-includes.htm
index bfe9d2c..6a05627 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbkeyrange-includes.htm
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbkeyrange-includes.htm
@@ -5,7 +5,7 @@
 <script src=/resources/testharnessreport.js></script>
 <script>
 
-  test( function() {
+  test(function() {
     var closedRange = IDBKeyRange.bound(5, 20);
     assert_true(!!closedRange.includes, "IDBKeyRange has a .includes");
     assert_true(closedRange.includes(7), "in range");
@@ -17,17 +17,45 @@
                   "invalid key");
   }, "IDBKeyRange.includes() with a closed range");
 
-  test( function() {
+  test(function() {
     var openRange = IDBKeyRange.bound(5, 20, true, true);
     assert_false(openRange.includes(5) || openRange.includes(20),
                  "boundary points");
   }, "IDBKeyRange.includes() with an open range");
 
-  test( function() {
+  test(function() {
     var range = IDBKeyRange.only(42);
     assert_true(range.includes(42), "in range");
     assert_false(range.includes(1), "below range");
     assert_false(range.includes(9000), "above range");
   }, "IDBKeyRange.includes() with an only range");
 
+  test(function() {
+    var range = IDBKeyRange.lowerBound(5);
+    assert_false(range.includes(4), 'value before closed lower bound');
+    assert_true(range.includes(5), 'value at closed lower bound');
+    assert_true(range.includes(6), 'value after closed lower bound');
+  }, "IDBKeyRange.includes() with an closed lower-bounded range");
+
+  test(function() {
+    var range = IDBKeyRange.lowerBound(5, true);
+    assert_false(range.includes(4), 'value before open lower bound');
+    assert_false(range.includes(5), 'value at open lower bound');
+    assert_true(range.includes(6), 'value after open lower bound');
+  }, "IDBKeyRange.includes() with an open lower-bounded range");
+
+  test(function() {
+    var range = IDBKeyRange.upperBound(5);
+    assert_true(range.includes(4), 'value before closed upper bound');
+    assert_true(range.includes(5), 'value at closed upper bound');
+    assert_false(range.includes(6), 'value after closed upper bound');
+  }, "IDBKeyRange.includes() with an closed upper-bounded range");
+
+  test(function() {
+    var range = IDBKeyRange.upperBound(5, true);
+    assert_true(range.includes(4), 'value before open upper bound');
+    assert_false(range.includes(5), 'value at open upper bound');
+    assert_false(range.includes(6), 'value after open upper bound');
+  }, "IDBKeyRange.includes() with an open upper-bounded range");
+
 </script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_createIndex14-exception_order.htm b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_createIndex14-exception_order.htm
index 75d805a..a0ec288 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_createIndex14-exception_order.htm
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_createIndex14-exception_order.htm
@@ -4,31 +4,10 @@
 <link rel="help" href="http://w3c.github.io/IndexedDB/#dom-idbobjectstore-createindex">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
+<script src="support.js"></script>
 <script>
 
-function indexeddb_test(description, upgrade_func, open_func = null) {
-    async_test(function(t) {
-        var dbname = document.location + "-" + t.name;
-        var del = indexedDB.deleteDatabase(dbname);
-        del.onerror = t.unreached_func("deleteDatabase should succeed");
-        var open = indexedDB.open(dbname, 1);
-        open.onerror = t.unreached_func("open should succeed");
-        open.onupgradeneeded = t.step_func(function() {
-            var db = open.result;
-            var tx = open.transaction;
-            upgrade_func(t, db, tx);
-        });
-        if (open_func) {
-            open.onsuccess = t.step_func(function() {
-                var db = open.result;
-                open_func(t, db);
-            });
-        }
-    }, description);
-}
-
 indexeddb_test(
-    "InvalidStateError(Incorrect mode) vs. TransactionInactiveError",
     function(t, db, txn) {
         var store = db.createObjectStore("s");
     },
@@ -41,12 +20,12 @@
             }, "Mode check should precede state check of the transaction");
             t.done();
         };
-    }
+    },
+    "InvalidStateError(Incorrect mode) vs. TransactionInactiveError"
 );
 
 var gDeletedObjectStore;
 indexeddb_test(
-    "InvalidStateError(Deleted ObjectStore) vs. TransactionInactiveError",
     function(t, db, txn) {
         gDeletedObjectStore = db.createObjectStore("s");
         db.deleteObjectStore("s");
@@ -56,11 +35,12 @@
             }, "Deletion check should precede transaction-state check");
             t.done();
         };
-    }
+    },
+    null,
+    "InvalidStateError(Deleted ObjectStore) vs. TransactionInactiveError"
 );
 
 indexeddb_test(
-    "TransactionInactiveError vs. ConstraintError",
     function(t, db, txn) {
         var store = db.createObjectStore("s");
         store.createIndex("index", "foo");
@@ -70,11 +50,12 @@
             }, "Transaction-state check should precede index name check");
             t.done();
         };
-    }
+    },
+    null,
+    "TransactionInactiveError vs. ConstraintError"
 );
 
 indexeddb_test(
-    "ConstraintError vs. SyntaxError",
     function(t, db) {
         var store = db.createObjectStore("s");
         store.createIndex("index", "foo");
@@ -86,11 +67,12 @@
                               ["invalid key path 1", "invalid key path 2"]);
         }, "Index name check should precede syntax check of the key path");
         t.done();
-    }
+    },
+    null,
+    "ConstraintError vs. SyntaxError"
 );
 
 indexeddb_test(
-    "SyntaxError vs. InvalidAccessError",
     function(t, db) {
         var store = db.createObjectStore("s");
         assert_throws("SyntaxError", function() {
@@ -99,7 +81,9 @@
                               { multiEntry: true });
         }, "Syntax check should precede multiEntry check of the key path");
         t.done();
-    }
+    },
+    null,
+    "SyntaxError vs. InvalidAccessError"
 );
 
 </script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete-expected.png b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete-expected.png
deleted file mode 100644
index b5daa85..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete-expected.png
+++ /dev/null
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete2-expected.png b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete2-expected.png
deleted file mode 100644
index b5daa85..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete2-expected.png
+++ /dev/null
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete3-expected.png b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete3-expected.png
deleted file mode 100644
index b5daa85..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete3-expected.png
+++ /dev/null
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete4-expected.png b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete4-expected.png
deleted file mode 100644
index b5daa85..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete4-expected.png
+++ /dev/null
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbtransaction_objectStoreNames.html b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbtransaction_objectStoreNames.html
index b964248..7f6aa35 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbtransaction_objectStoreNames.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbtransaction_objectStoreNames.html
@@ -2,27 +2,9 @@
 <title>IndexedDB: IDBTransaction.objectStoreNames attribute</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
+<script src="support.js"></script>
 <script>
 
-function indexeddb_test(upgrade_func, open_func, description) {
-    async_test(function(t) {
-        var dbname = document.location + '-' + t.name;
-        var del = indexedDB.deleteDatabase(dbname);
-        del.onerror = t.unreached_func('deleteDatabase should succeed');
-        var open = indexedDB.open(dbname, 1);
-        open.onerror = t.unreached_func('open should succeed');
-        open.onupgradeneeded = t.step_func(function() {
-            var db = open.result;
-            var tx = open.transaction;
-            upgrade_func(t, db, tx);
-        });
-        open.onsuccess = t.step_func(function() {
-            var db = open.result;
-            open_func(t, db);
-        });
-    }, description);
-}
-
 function with_stores_test(store_names, open_func, description) {
     indexeddb_test(function(t, db, tx) {
         store_names.forEach(function(name) {
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/support.js b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/support.js
index 1e8458fe..8149873 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/support.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/support.js
@@ -101,3 +101,23 @@
 function assert_key_equals(actual, expected, description) {
     assert_equals(indexedDB.cmp(actual, expected), 0, description);
 }
+
+function indexeddb_test(upgrade_func, open_func, description) {
+    async_test(function(t) {
+        var dbname = document.location + '-' + t.name;
+        var del = indexedDB.deleteDatabase(dbname);
+        del.onerror = t.unreached_func('deleteDatabase should succeed');
+        var open = indexedDB.open(dbname, 1);
+        open.onerror = t.unreached_func('open should succeed');
+        open.onupgradeneeded = t.step_func(function() {
+            var db = open.result;
+            var tx = open.transaction;
+            upgrade_func(t, db, tx);
+        });
+        open.onsuccess = t.step_func(function() {
+            var db = open.result;
+            if (open_func)
+                open_func(t, db);
+        });
+    }, description);
+}
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-lifetime-empty.html b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-lifetime-empty.html
new file mode 100644
index 0000000..50e552ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-lifetime-empty.html
@@ -0,0 +1,89 @@
+<!DOCTYPE html>
+<title>IndexedDB: Commit ordering of empty transactions</title>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+<script src='support.js'></script>
+<script>
+
+// Call with a test object and array of expected values. Returns a
+// function to call with each actual value. Once the expected number
+// of values is seen, asserts that the value orders match and completes
+// the test.
+function expect(t, expected) {
+    var results = [];
+    return result => {
+        results.push(result);
+        if (results.length === expected.length) {
+            assert_array_equals(results, expected);
+            t.done();
+        }
+    };
+}
+
+indexeddb_test(
+    (t, db) => {
+        db.createObjectStore('store');
+    },
+    (t, db) => {
+        var saw = expect(t, ['rq1.onsuccess',
+                           'rq2.onsuccess',
+                           'tx1.oncomplete',
+                           'tx2.oncomplete']);
+
+        var tx1 = db.transaction('store', 'readwrite');
+        tx1.onabort = t.unreached_func('transaction should commit');
+        tx1.oncomplete = t.step_func(() => saw('tx1.oncomplete'));
+
+        var store = tx1.objectStore('store');
+        var rq1 = store.put('a', 1);
+        rq1.onerror = t.unreached_func('put should succeed');
+        rq1.onsuccess = t.step_func(() => {
+            saw('rq1.onsuccess');
+
+            var tx2 = db.transaction('store', 'readonly');
+            tx2.onabort = t.unreached_func('transaction should commit');
+            tx2.oncomplete = t.step_func(() => saw('tx2.oncomplete'));
+
+            var rq2 = store.put('b', 2);
+            rq2.onsuccess = t.step_func(() => saw('rq2.onsuccess'));
+            rq2.onerror = t.unreached_func('request should succeed');
+        });
+
+    },
+    'Transactions without requests complete in the expected order');
+
+indexeddb_test(
+    (t, db) => {
+        db.createObjectStore('store');
+    },
+    (t, db) => {
+        var saw = expect(t, ['rq1.onsuccess',
+                           'rq2.onsuccess',
+                           'tx1.oncomplete',
+                           'tx2.oncomplete',
+                           'tx3.oncomplete']);
+        var tx1 = db.transaction('store', 'readwrite');
+        tx1.onabort = t.unreached_func('transaction should commit');
+        tx1.oncomplete = t.step_func(() => saw('tx1.oncomplete'));
+
+        var store = tx1.objectStore('store');
+        var rq1 = store.put('a', 1);
+        rq1.onerror = t.unreached_func('put should succeed');
+        rq1.onsuccess = t.step_func(() => {
+            saw('rq1.onsuccess');
+
+            var tx2 = db.transaction('store', 'readonly');
+            tx2.onabort = t.unreached_func('transaction should commit');
+            tx2.oncomplete = t.step_func(() => saw('tx2.oncomplete'));
+
+            var tx3 = db.transaction('store', 'readonly');
+            tx3.onabort = t.unreached_func('transaction should commit');
+            tx3.oncomplete = t.step_func(() => saw('tx3.oncomplete'));
+
+            var rq2 = store.put('b', 2);
+            rq2.onsuccess = t.step_func(() => saw('rq2.onsuccess'));
+            rq2.onerror = t.unreached_func('request should succeed');
+        });
+    },
+    'Multiple transactions without requests complete in the expected order');
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
index 94afa59..269a077 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
@@ -73,9 +73,7 @@
 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedError assert_throws: function "() =>  {
         customElements.define('test-define-extend-' + name, class {}, { extends: name });
       }" did not throw
-FAIL If constructor.observedAttributes throws, should rethrow assert_throws: function "() => {
-      customElements.define('test-define-observedattributes-rethrow', C);
-    }" did not throw
+PASS If constructor.observedAttributes throws, should rethrow 
 PASS If constructor.prototype throws, should rethrow 
 PASS If Type(constructor.prototype) is undefined, should throw a TypeError 
 PASS If Type(constructor.prototype) is string, should throw a TypeError 
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
index d0d6582..670c963 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
@@ -164,6 +164,7 @@
   test(() => {
     class C {
       static get observedAttributes() { throw_rethrown_error(); }
+      attributeChangedCallback() {}
     }
     assert_rethrown(() => {
       customElements.define('test-define-observedattributes-rethrow', C);
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/AddEventListenerOptions-passive.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/AddEventListenerOptions-passive.html
new file mode 100644
index 0000000..1f0118e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/AddEventListenerOptions-passive.html
@@ -0,0 +1,113 @@
+<!DOCTYPE HTML>
+<meta charset="utf-8">
+<title>EventListenerOptions.passive</title>
+<link rel="author" title="Rick Byers" href="mailto:rbyers@chromium.org">
+<link rel="help" href="https://dom.spec.whatwg.org/#dom-addeventlisteneroptions-passive">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+
+<script>
+
+test(function() {
+  var supportsPassive = false;
+  var query_options = {
+    get passive() {
+      supportsPassive = true;
+      return false;
+    },
+    get dummy() {
+      assert_unreached("dummy value getter invoked");
+      return false;
+    }
+  };
+
+  document.addEventListener('test_event', null, query_options);
+  assert_true(supportsPassive, "addEventListener doesn't support the passive option");
+
+  supportsPassive = false;
+  document.removeEventListener('test_event', null, query_options);
+  assert_false(supportsPassive, "removeEventListener supports the passive option when it should not");
+}, "Supports passive option on addEventListener only");
+
+function testPassiveValue(optionsValue, expectedDefaultPrevented) {
+  var defaultPrevented = undefined;
+  var handler = function handler(e) {
+    assert_false(e.defaultPrevented, "Event prematurely marked defaultPrevented");
+    e.preventDefault();
+    defaultPrevented = e.defaultPrevented;
+  }
+  document.addEventListener('test', handler, optionsValue);
+  var uncanceled = document.body.dispatchEvent(new Event('test', {bubbles: true, cancelable: true}));
+
+  assert_equals(defaultPrevented, expectedDefaultPrevented, "Incorrect defaultPrevented for options: " + JSON.stringify(optionsValue));
+  assert_equals(uncanceled, !expectedDefaultPrevented, "Incorrect return value from dispatchEvent");
+
+  document.removeEventListener('test', handler, optionsValue);
+}
+
+test(function() {
+  testPassiveValue(undefined, true);
+  testPassiveValue({}, true);
+  testPassiveValue({passive: false}, true);
+  testPassiveValue({passive: true}, false);
+  testPassiveValue({passive: 0}, true);
+  testPassiveValue({passive: 1}, false);
+}, "preventDefault should be ignored if-and-only-if the passive option is true");
+
+function testPassiveWithOtherHandlers(optionsValue, expectedDefaultPrevented) {
+  var handlerInvoked1 = false;
+  var dummyHandler1 = function() {
+    handlerInvoked1 = true;
+  };
+  var handlerInvoked2 = false;
+  var dummyHandler2 = function() {
+    handlerInvoked2 = true;
+  };
+
+  document.addEventListener('test', dummyHandler1, {passive:true});
+  document.addEventListener('test', dummyHandler2);
+
+  testPassiveValue(optionsValue, expectedDefaultPrevented);
+
+  assert_true(handlerInvoked1, "Extra passive handler not invoked");
+  assert_true(handlerInvoked2, "Extra non-passive handler not invoked");
+
+  document.removeEventListener('test', dummyHandler1);
+  document.removeEventListener('test', dummyHandler2);
+}
+
+test(function() {
+  testPassiveWithOtherHandlers({}, true);
+  testPassiveWithOtherHandlers({passive: false}, true);
+  testPassiveWithOtherHandlers({passive: true}, false);
+}, "passive behavior of one listener should be unaffeted by the presence of other listeners");
+
+function testOptionEquivalence(optionValue1, optionValue2, expectedEquality) {
+  var invocationCount = 0;
+  var handler = function handler(e) {
+    invocationCount++;
+  }
+  document.addEventListener('test', handler, optionValue1);
+  document.addEventListener('test', handler, optionValue2);
+  document.body.dispatchEvent(new Event('test', {bubbles: true}));
+  assert_equals(invocationCount, expectedEquality ? 1 : 2, "equivalence of options " +
+    JSON.stringify(optionValue1) + " and " + JSON.stringify(optionValue2));
+  document.removeEventListener('test', handler, optionValue1);
+  document.removeEventListener('test', handler, optionValue2);
+}
+
+test(function() {
+  // Sanity check options that should be treated as distinct handlers
+  testOptionEquivalence({capture:true}, {capture:false, passive:false}, false);
+  testOptionEquivalence({capture:true}, {passive:true}, false);
+
+  // Option values that should be treated as equivalent
+  testOptionEquivalence({}, {passive:false}, true);
+  testOptionEquivalence({passive:true}, {passive:false}, true);
+  testOptionEquivalence(undefined, {passive:true}, true);
+  testOptionEquivalence({capture: true, passive: false}, {capture: true, passive: true}, true);
+
+}, "Equivalence of option values");
+
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-defaultPrevented.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-defaultPrevented.html
index dfcd438..2a3d171 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-defaultPrevented.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-defaultPrevented.html
@@ -32,7 +32,7 @@
   ev.preventDefault();
   assert_equals(ev.cancelable, true, "cancelable (after)");
   assert_equals(ev.defaultPrevented, true, "defaultPrevented");
-}, "preventDefault() should change defaultPrevented if cancelable is false.");
+}, "preventDefault() should change defaultPrevented if cancelable is true.");
 test(function() {
   ev.initEvent("foo", true, true);
   assert_equals(ev.bubbles, true, "bubbles");
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
index 377b6c7..f72cf3c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
@@ -16,9 +16,9 @@
     handlerPhase = e.eventPhase;
   }
   document.addEventListener('test', handler, captureValue);
-  document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+  document.body.dispatchEvent(new Event('test', {bubbles: true}));
   document.removeEventListener('test', handler, captureValue);
-  document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+  document.body.dispatchEvent(new Event('test', {bubbles: true}));
   assert_equals(handlerPhase, expectedValue, "Incorrect event phase for value: " + JSON.stringify(captureValue));
 }
 
@@ -72,7 +72,7 @@
   }
   document.addEventListener('test', handler, addOptionValue);
   document.removeEventListener('test', handler, removeOptionValue);
-  document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+  document.body.dispatchEvent(new Event('test', {bubbles: true}));
   assert_equals(!handlerInvoked, expectedEquality, "equivalence of options " +
     JSON.stringify(addOptionValue) + " and " + JSON.stringify(removeOptionValue));
   if (handlerInvoked)
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/historical-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/dom/historical-expected.txt
index 08d34fe..0217ef0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/historical-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/historical-expected.txt
@@ -48,6 +48,7 @@
 PASS Node member must be nuked: getFeature 
 PASS Node member must be nuked: getUserData 
 PASS Node member must be nuked: setUserData 
+FAIL Node member must be nuked: rootNode assert_equals: expected (undefined) undefined but got (object) Document node with 0 children
 PASS Window member must be nuked: attachEvent 
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/historical.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/historical.html
index 1f065ed..58881af 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/historical.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/historical.html
@@ -117,7 +117,8 @@
   "isSupported",
   "getFeature",
   "getUserData",
-  "setUserData"
+  "setUserData",
+  "rootNode",
 ]
 nodeNuked.forEach(isNukedFromNode)
 
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces-expected.txt
index 3b6d568..ed0f1b0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces-expected.txt
@@ -196,7 +196,6 @@
 PASS Node interface: attribute baseURI 
 PASS Node interface: attribute isConnected 
 PASS Node interface: attribute ownerDocument 
-PASS Node interface: attribute rootNode 
 PASS Node interface: attribute parentNode 
 PASS Node interface: attribute parentElement 
 PASS Node interface: operation hasChildNodes() 
@@ -350,47 +349,46 @@
 FAIL Node interface: new Document() must inherit property "baseURI" with the proper type (14) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: new Document() must inherit property "isConnected" with the proper type (15) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: new Document() must inherit property "ownerDocument" with the proper type (16) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "rootNode" with the proper type (17) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "parentNode" with the proper type (18) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "parentElement" with the proper type (19) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "hasChildNodes" with the proper type (20) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "childNodes" with the proper type (21) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "firstChild" with the proper type (22) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "lastChild" with the proper type (23) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "previousSibling" with the proper type (24) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "nextSibling" with the proper type (25) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "nodeValue" with the proper type (26) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "textContent" with the proper type (27) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "normalize" with the proper type (28) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "cloneNode" with the proper type (29) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "parentNode" with the proper type (17) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "parentElement" with the proper type (18) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "hasChildNodes" with the proper type (19) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "childNodes" with the proper type (20) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "firstChild" with the proper type (21) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "lastChild" with the proper type (22) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "previousSibling" with the proper type (23) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "nextSibling" with the proper type (24) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "nodeValue" with the proper type (25) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "textContent" with the proper type (26) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "normalize" with the proper type (27) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "cloneNode" with the proper type (28) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling cloneNode(boolean) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "isEqualNode" with the proper type (30) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "isEqualNode" with the proper type (29) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling isEqualNode(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "isSameNode" with the proper type (31) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "isSameNode" with the proper type (30) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling isSameNode(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "compareDocumentPosition" with the proper type (38) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "compareDocumentPosition" with the proper type (37) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling compareDocumentPosition(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "contains" with the proper type (39) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "contains" with the proper type (38) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling contains(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "lookupPrefix" with the proper type (40) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "lookupPrefix" with the proper type (39) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling lookupPrefix(DOMString) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "lookupNamespaceURI" with the proper type (41) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "lookupNamespaceURI" with the proper type (40) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling lookupNamespaceURI(DOMString) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "isDefaultNamespace" with the proper type (42) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "isDefaultNamespace" with the proper type (41) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling isDefaultNamespace(DOMString) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "insertBefore" with the proper type (43) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "insertBefore" with the proper type (42) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling insertBefore(Node,Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "appendChild" with the proper type (44) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "appendChild" with the proper type (43) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling appendChild(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "replaceChild" with the proper type (45) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "replaceChild" with the proper type (44) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling replaceChild(Node,Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
-FAIL Node interface: new Document() must inherit property "removeChild" with the proper type (46) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
+FAIL Node interface: new Document() must inherit property "removeChild" with the proper type (45) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL Node interface: calling removeChild(Node) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL EventTarget interface: new Document() must inherit property "addEventListener" with the proper type (0) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
 FAIL EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on new Document() with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Illegal constructor"
@@ -479,47 +477,46 @@
 FAIL Node interface: xmlDoc must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
 PASS Node interface: xmlDoc must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: xmlDoc must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: xmlDoc must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: xmlDoc must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: xmlDoc must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: xmlDoc must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: xmlDoc must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: xmlDoc must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: xmlDoc must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: xmlDoc must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: xmlDoc must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: xmlDoc must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: xmlDoc must inherit property "textContent" with the proper type (27) 
-PASS Node interface: xmlDoc must inherit property "normalize" with the proper type (28) 
-PASS Node interface: xmlDoc must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: xmlDoc must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: xmlDoc must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: xmlDoc must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: xmlDoc must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: xmlDoc must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: xmlDoc must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: xmlDoc must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: xmlDoc must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: xmlDoc must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: xmlDoc must inherit property "textContent" with the proper type (26) 
+PASS Node interface: xmlDoc must inherit property "normalize" with the proper type (27) 
+PASS Node interface: xmlDoc must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: xmlDoc must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: xmlDoc must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: xmlDoc must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: xmlDoc must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: xmlDoc must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "contains" with the proper type (39) 
+PASS Node interface: xmlDoc must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: xmlDoc must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: xmlDoc must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: xmlDoc must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: xmlDoc must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: xmlDoc must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: xmlDoc must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on xmlDoc with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: xmlDoc must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on xmlDoc with too few arguments must throw TypeError 
 PASS EventTarget interface: xmlDoc must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on xmlDoc with too few arguments must throw TypeError 
@@ -586,47 +583,46 @@
 PASS Node interface: document.doctype must inherit property "baseURI" with the proper type (14) 
 PASS Node interface: document.doctype must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: document.doctype must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: document.doctype must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: document.doctype must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: document.doctype must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: document.doctype must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: document.doctype must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: document.doctype must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: document.doctype must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: document.doctype must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: document.doctype must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: document.doctype must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: document.doctype must inherit property "textContent" with the proper type (27) 
-PASS Node interface: document.doctype must inherit property "normalize" with the proper type (28) 
-PASS Node interface: document.doctype must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: document.doctype must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: document.doctype must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: document.doctype must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: document.doctype must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: document.doctype must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: document.doctype must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: document.doctype must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: document.doctype must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: document.doctype must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: document.doctype must inherit property "textContent" with the proper type (26) 
+PASS Node interface: document.doctype must inherit property "normalize" with the proper type (27) 
+PASS Node interface: document.doctype must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: document.doctype must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: document.doctype must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: document.doctype must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: document.doctype must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: document.doctype must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "contains" with the proper type (39) 
+PASS Node interface: document.doctype must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: document.doctype must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: document.doctype must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: document.doctype must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: document.doctype must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: document.doctype must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: document.doctype must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on document.doctype with too few arguments must throw TypeError 
-PASS Node interface: document.doctype must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: document.doctype must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on document.doctype with too few arguments must throw TypeError 
 PASS EventTarget interface: document.doctype must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on document.doctype with too few arguments must throw TypeError 
@@ -681,47 +677,46 @@
 PASS Node interface: document.createDocumentFragment() must inherit property "baseURI" with the proper type (14) 
 PASS Node interface: document.createDocumentFragment() must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: document.createDocumentFragment() must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: document.createDocumentFragment() must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: document.createDocumentFragment() must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: document.createDocumentFragment() must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: document.createDocumentFragment() must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: document.createDocumentFragment() must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: document.createDocumentFragment() must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: document.createDocumentFragment() must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: document.createDocumentFragment() must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: document.createDocumentFragment() must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: document.createDocumentFragment() must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: document.createDocumentFragment() must inherit property "textContent" with the proper type (27) 
-PASS Node interface: document.createDocumentFragment() must inherit property "normalize" with the proper type (28) 
-PASS Node interface: document.createDocumentFragment() must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: document.createDocumentFragment() must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: document.createDocumentFragment() must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: document.createDocumentFragment() must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: document.createDocumentFragment() must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: document.createDocumentFragment() must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: document.createDocumentFragment() must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: document.createDocumentFragment() must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: document.createDocumentFragment() must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: document.createDocumentFragment() must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: document.createDocumentFragment() must inherit property "textContent" with the proper type (26) 
+PASS Node interface: document.createDocumentFragment() must inherit property "normalize" with the proper type (27) 
+PASS Node interface: document.createDocumentFragment() must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: document.createDocumentFragment() must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: document.createDocumentFragment() must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: document.createDocumentFragment() must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: document.createDocumentFragment() must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: document.createDocumentFragment() must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "contains" with the proper type (39) 
+PASS Node interface: document.createDocumentFragment() must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: document.createDocumentFragment() must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: document.createDocumentFragment() must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: document.createDocumentFragment() must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: document.createDocumentFragment() must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: document.createDocumentFragment() must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: document.createDocumentFragment() must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
-PASS Node interface: document.createDocumentFragment() must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: document.createDocumentFragment() must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on document.createDocumentFragment() with too few arguments must throw TypeError 
 PASS EventTarget interface: document.createDocumentFragment() must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on document.createDocumentFragment() with too few arguments must throw TypeError 
@@ -887,47 +882,46 @@
 FAIL Node interface: element must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
 PASS Node interface: element must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: element must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: element must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: element must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: element must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: element must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: element must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: element must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: element must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: element must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: element must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: element must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: element must inherit property "textContent" with the proper type (27) 
-PASS Node interface: element must inherit property "normalize" with the proper type (28) 
-PASS Node interface: element must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: element must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: element must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: element must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: element must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: element must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: element must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: element must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: element must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: element must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: element must inherit property "textContent" with the proper type (26) 
+PASS Node interface: element must inherit property "normalize" with the proper type (27) 
+PASS Node interface: element must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: element must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: element must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: element must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: element must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: element must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: element must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "contains" with the proper type (39) 
+PASS Node interface: element must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: element must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: element must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: element must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: element must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: element must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: element must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on element with too few arguments must throw TypeError 
-PASS Node interface: element must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: element must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on element with too few arguments must throw TypeError 
 PASS EventTarget interface: element must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on element with too few arguments must throw TypeError 
@@ -1045,47 +1039,46 @@
 PASS Node interface: document.createTextNode("abc") must inherit property "baseURI" with the proper type (14) 
 PASS Node interface: document.createTextNode("abc") must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: document.createTextNode("abc") must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: document.createTextNode("abc") must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: document.createTextNode("abc") must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: document.createTextNode("abc") must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: document.createTextNode("abc") must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: document.createTextNode("abc") must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: document.createTextNode("abc") must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: document.createTextNode("abc") must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: document.createTextNode("abc") must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: document.createTextNode("abc") must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: document.createTextNode("abc") must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: document.createTextNode("abc") must inherit property "textContent" with the proper type (27) 
-PASS Node interface: document.createTextNode("abc") must inherit property "normalize" with the proper type (28) 
-PASS Node interface: document.createTextNode("abc") must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: document.createTextNode("abc") must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: document.createTextNode("abc") must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: document.createTextNode("abc") must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: document.createTextNode("abc") must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: document.createTextNode("abc") must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: document.createTextNode("abc") must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: document.createTextNode("abc") must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: document.createTextNode("abc") must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: document.createTextNode("abc") must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: document.createTextNode("abc") must inherit property "textContent" with the proper type (26) 
+PASS Node interface: document.createTextNode("abc") must inherit property "normalize" with the proper type (27) 
+PASS Node interface: document.createTextNode("abc") must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: document.createTextNode("abc") must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: document.createTextNode("abc") must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: document.createTextNode("abc") must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: document.createTextNode("abc") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: document.createTextNode("abc") must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "contains" with the proper type (39) 
+PASS Node interface: document.createTextNode("abc") must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: document.createTextNode("abc") must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: document.createTextNode("abc") must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: document.createTextNode("abc") must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: document.createTextNode("abc") must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: document.createTextNode("abc") must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: document.createTextNode("abc") must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createTextNode("abc") must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: document.createTextNode("abc") must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on document.createTextNode("abc") with too few arguments must throw TypeError 
 PASS EventTarget interface: document.createTextNode("abc") must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on document.createTextNode("abc") with too few arguments must throw TypeError 
@@ -1140,47 +1133,46 @@
 FAIL Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
 PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "textContent" with the proper type (27) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "normalize" with the proper type (28) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "textContent" with the proper type (26) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "normalize" with the proper type (27) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "contains" with the proper type (39) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
-PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
 PASS EventTarget interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError 
@@ -1233,47 +1225,46 @@
 PASS Node interface: document.createComment("abc") must inherit property "baseURI" with the proper type (14) 
 PASS Node interface: document.createComment("abc") must inherit property "isConnected" with the proper type (15) 
 PASS Node interface: document.createComment("abc") must inherit property "ownerDocument" with the proper type (16) 
-PASS Node interface: document.createComment("abc") must inherit property "rootNode" with the proper type (17) 
-PASS Node interface: document.createComment("abc") must inherit property "parentNode" with the proper type (18) 
-PASS Node interface: document.createComment("abc") must inherit property "parentElement" with the proper type (19) 
-PASS Node interface: document.createComment("abc") must inherit property "hasChildNodes" with the proper type (20) 
-PASS Node interface: document.createComment("abc") must inherit property "childNodes" with the proper type (21) 
-PASS Node interface: document.createComment("abc") must inherit property "firstChild" with the proper type (22) 
-PASS Node interface: document.createComment("abc") must inherit property "lastChild" with the proper type (23) 
-PASS Node interface: document.createComment("abc") must inherit property "previousSibling" with the proper type (24) 
-PASS Node interface: document.createComment("abc") must inherit property "nextSibling" with the proper type (25) 
-PASS Node interface: document.createComment("abc") must inherit property "nodeValue" with the proper type (26) 
-PASS Node interface: document.createComment("abc") must inherit property "textContent" with the proper type (27) 
-PASS Node interface: document.createComment("abc") must inherit property "normalize" with the proper type (28) 
-PASS Node interface: document.createComment("abc") must inherit property "cloneNode" with the proper type (29) 
+PASS Node interface: document.createComment("abc") must inherit property "parentNode" with the proper type (17) 
+PASS Node interface: document.createComment("abc") must inherit property "parentElement" with the proper type (18) 
+PASS Node interface: document.createComment("abc") must inherit property "hasChildNodes" with the proper type (19) 
+PASS Node interface: document.createComment("abc") must inherit property "childNodes" with the proper type (20) 
+PASS Node interface: document.createComment("abc") must inherit property "firstChild" with the proper type (21) 
+PASS Node interface: document.createComment("abc") must inherit property "lastChild" with the proper type (22) 
+PASS Node interface: document.createComment("abc") must inherit property "previousSibling" with the proper type (23) 
+PASS Node interface: document.createComment("abc") must inherit property "nextSibling" with the proper type (24) 
+PASS Node interface: document.createComment("abc") must inherit property "nodeValue" with the proper type (25) 
+PASS Node interface: document.createComment("abc") must inherit property "textContent" with the proper type (26) 
+PASS Node interface: document.createComment("abc") must inherit property "normalize" with the proper type (27) 
+PASS Node interface: document.createComment("abc") must inherit property "cloneNode" with the proper type (28) 
 PASS Node interface: calling cloneNode(boolean) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "isEqualNode" with the proper type (30) 
+PASS Node interface: document.createComment("abc") must inherit property "isEqualNode" with the proper type (29) 
 PASS Node interface: calling isEqualNode(Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "isSameNode" with the proper type (31) 
+PASS Node interface: document.createComment("abc") must inherit property "isSameNode" with the proper type (30) 
 PASS Node interface: calling isSameNode(Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (32) 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (33) 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (34) 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (35) 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (36) 
-PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (37) 
-PASS Node interface: document.createComment("abc") must inherit property "compareDocumentPosition" with the proper type (38) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_DISCONNECTED" with the proper type (31) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_PRECEDING" with the proper type (32) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_FOLLOWING" with the proper type (33) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_CONTAINS" with the proper type (34) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_CONTAINED_BY" with the proper type (35) 
+PASS Node interface: document.createComment("abc") must inherit property "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" with the proper type (36) 
+PASS Node interface: document.createComment("abc") must inherit property "compareDocumentPosition" with the proper type (37) 
 PASS Node interface: calling compareDocumentPosition(Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "contains" with the proper type (39) 
+PASS Node interface: document.createComment("abc") must inherit property "contains" with the proper type (38) 
 PASS Node interface: calling contains(Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "lookupPrefix" with the proper type (40) 
+PASS Node interface: document.createComment("abc") must inherit property "lookupPrefix" with the proper type (39) 
 PASS Node interface: calling lookupPrefix(DOMString) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "lookupNamespaceURI" with the proper type (41) 
+PASS Node interface: document.createComment("abc") must inherit property "lookupNamespaceURI" with the proper type (40) 
 PASS Node interface: calling lookupNamespaceURI(DOMString) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "isDefaultNamespace" with the proper type (42) 
+PASS Node interface: document.createComment("abc") must inherit property "isDefaultNamespace" with the proper type (41) 
 PASS Node interface: calling isDefaultNamespace(DOMString) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "insertBefore" with the proper type (43) 
+PASS Node interface: document.createComment("abc") must inherit property "insertBefore" with the proper type (42) 
 PASS Node interface: calling insertBefore(Node,Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "appendChild" with the proper type (44) 
+PASS Node interface: document.createComment("abc") must inherit property "appendChild" with the proper type (43) 
 PASS Node interface: calling appendChild(Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "replaceChild" with the proper type (45) 
+PASS Node interface: document.createComment("abc") must inherit property "replaceChild" with the proper type (44) 
 PASS Node interface: calling replaceChild(Node,Node) on document.createComment("abc") with too few arguments must throw TypeError 
-PASS Node interface: document.createComment("abc") must inherit property "removeChild" with the proper type (46) 
+PASS Node interface: document.createComment("abc") must inherit property "removeChild" with the proper type (45) 
 PASS Node interface: calling removeChild(Node) on document.createComment("abc") with too few arguments must throw TypeError 
 PASS EventTarget interface: document.createComment("abc") must inherit property "addEventListener" with the proper type (0) 
 PASS EventTarget interface: calling addEventListener(DOMString,EventListener,[object Object],[object Object]) on document.createComment("abc") with too few arguments must throw TypeError 
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces.html
index 63546b83..407bff8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/interfaces.html
@@ -212,7 +212,6 @@
 
   readonly attribute boolean isConnected;
   readonly attribute Document? ownerDocument;
-  readonly attribute Node rootNode;
   readonly attribute Node? parentNode;
   readonly attribute Element? parentElement;
   boolean hasChildNodes();
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Document-createElement-namespace-tests/generate.py b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Document-createElement-namespace-tests/generate.py
new file mode 100755
index 0000000..88c4da1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Document-createElement-namespace-tests/generate.py
@@ -0,0 +1,77 @@
+#!/usr/bin/python
+import os
+import sys
+
+THIS_NAME = "generate.py"
+
+# Note: these lists must be kept in sync with the lists in
+# Document-createElement-namespace.html, and this script must be run whenever
+# the lists are updated.  (We could keep the lists in a shared JSON file, but
+# seems like too much effort.)
+FILES = (
+    ("empty", ""),
+    ("minimal_html", "<!doctype html><title></title>"),
+
+    ("xhtml", '<html xmlns="http://www.w3.org/1999/xhtml"></html>'),
+    ("svg", '<svg xmlns="http://www.w3.org/2000/svg"></svg>'),
+    ("mathml", '<mathml xmlns="http://www.w3.org/1998/Math/MathML"></mathml>'),
+
+    ("bare_xhtml", "<html></html>"),
+    ("bare_svg", "<svg></svg>"),
+    ("bare_mathml", "<math></math>"),
+
+    ("xhtml_ns_removed", """\
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head><script>
+    var newRoot = document.createElementNS(null, "html");
+    document.removeChild(document.documentElement);
+    document.appendChild(newRoot);
+  </script></head>
+</html>
+"""),
+    ("xhtml_ns_changed", """\
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head><script>
+    var newRoot = document.createElementNS("http://www.w3.org/2000/svg", "abc");
+    document.removeChild(document.documentElement);
+    document.appendChild(newRoot);
+  </script></head>
+</html>
+"""),
+)
+
+EXTENSIONS = (
+    "html",
+    "xhtml",
+    "xml",
+    "svg",
+    # Was not able to get server MIME type working properly :(
+    #"mml",
+)
+
+def __main__():
+    if len(sys.argv) > 1:
+        print "No arguments expected, aborting"
+        return
+
+    if not os.access(THIS_NAME, os.F_OK):
+        print "Must be run from the directory of " + THIS_NAME + ", aborting"
+        return
+
+    for name in os.listdir("."):
+        if name == THIS_NAME:
+            continue
+        os.remove(name)
+
+    manifest = open("MANIFEST", "w")
+
+    for name, contents in FILES:
+        for extension in EXTENSIONS:
+            f = open(name + "." + extension, "w")
+            f.write(contents)
+            f.close()
+            manifest.write("support " + name + "." + extension + "\n")
+
+    manifest.close()
+
+__main__()
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-isConnected.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-isConnected.html
new file mode 100644
index 0000000..da0b460
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-isConnected.html
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<head>
+<title>Node.prototype.isConnected</title>
+<link rel=help href="https://dom.spec.whatwg.org/#dom-node-isconnected">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<script>
+
+"use strict";
+
+test(function() {
+  var nodes = [document.createElement("div"),
+               document.createElement("div"),
+               document.createElement("div")];
+  checkNodes([], nodes);
+
+  // Append nodes[0].
+  document.body.appendChild(nodes[0]);
+  checkNodes([nodes[0]],
+             [nodes[1], nodes[2]]);
+
+  // Append nodes[1] and nodes[2] together.
+  nodes[1].appendChild(nodes[2]);
+  checkNodes([nodes[0]],
+             [nodes[1], nodes[2]]);
+
+  nodes[0].appendChild(nodes[1]);
+  checkNodes(nodes, []);
+
+  // Remove nodes[2].
+  nodes[2].remove();
+  checkNodes([nodes[0], nodes[1]],
+             [nodes[2]]);
+
+  // Remove nodes[0] and nodes[1] together.
+  nodes[0].remove();
+  checkNodes([], nodes);
+}, "Test with ordinary child nodes");
+
+test(function() {
+  var nodes = [document.createElement("iframe"),
+               document.createElement("iframe"),
+               document.createElement("iframe"),
+               document.createElement("iframe"),
+               document.createElement("div")];
+  var frames = [nodes[0],
+                nodes[1],
+                nodes[2],
+                nodes[3]];
+  checkNodes([], nodes);
+
+  // Since we cannot append anything to the contentWindow of an iframe before it
+  // is appended to the main DOM tree, we append the iframes one after another.
+  document.body.appendChild(nodes[0]);
+  checkNodes([nodes[0]],
+             [nodes[1], nodes[2], nodes[3], nodes[4]]);
+
+  frames[0].contentDocument.body.appendChild(nodes[1]);
+  checkNodes([nodes[0], nodes[1]],
+             [nodes[2], nodes[3], nodes[4]]);
+
+  frames[1].contentDocument.body.appendChild(nodes[2]);
+  checkNodes([nodes[0], nodes[1], nodes[2]],
+             [nodes[3], nodes[4]]);
+
+  frames[2].contentDocument.body.appendChild(nodes[3]);
+  checkNodes([nodes[0], nodes[1], nodes[2], nodes[3]],
+             [nodes[4]]);
+
+  frames[3].contentDocument.body.appendChild(nodes[4]);
+  checkNodes(nodes, []);
+
+  frames[3].remove();
+  // Since node[4] is still under the doument of frame[3], it's still connected.
+  checkNodes([nodes[0], nodes[1], nodes[2], nodes[4]],
+             [nodes[3]]);
+
+  frames[0].remove();
+  // Since node[1] and node[2] are still under the doument of frame[0], they are
+  // still connected.
+  checkNodes([nodes[1], nodes[2], nodes[4]],
+             [nodes[0], nodes[3]]);
+}, "Test with iframes");
+
+// This helper function is used to check whether nodes should be connected.
+function checkNodes(aConnectedNodes, aDisconnectedNodes) {
+  aConnectedNodes.forEach(node => assert_true(node.isConnected));
+  aDisconnectedNodes.forEach(node => assert_false(node.isConnected));
+}
+
+</script>
+</body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/ProcessingInstruction-escapes-1.xhtml b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/ProcessingInstruction-escapes-1.xhtml
new file mode 100644
index 0000000..d629a84
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/ProcessingInstruction-escapes-1.xhtml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="support/style.css" type="text/css"?>
+<?xml-stylesheet href="data:text/css,&#x41;&amp;&apos;" type="text/css"?>
+<?xml-stylesheet href="data:text/css,&#65;&amp;&apos;" type="text/css"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>ProcessingInstruction numeric escapes</title>
+<link rel="help" href="https://dom.spec.whatwg.org/#dom-processinginstruction-target"/>
+<link rel="help" href="https://dom.spec.whatwg.org/#dom-characterdata-data"/>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"/>
+<script>
+<![CDATA[
+test(function() {
+  var pienc = document.firstChild.nextSibling;
+  assert_true(pienc instanceof ProcessingInstruction)
+  assert_equals(pienc.target, "xml-stylesheet")
+  assert_equals(pienc.data, 'href="data:text/css,&#x41;&amp;&apos;" type="text/css"')
+  assert_equals(pienc.sheet.href, "data:text/css,A&'");
+
+  pienc = pienc.nextSibling;
+  assert_true(pienc instanceof ProcessingInstruction)
+  assert_equals(pienc.target, "xml-stylesheet")
+  assert_equals(pienc.data, 'href="data:text/css,&#65;&amp;&apos;" type="text/css"')
+  assert_equals(pienc.sheet.href, "data:text/css,A&'");
+})
+]]>
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/remove-unscopable.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/remove-unscopable.html
index 120ae81..0238b0f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/remove-unscopable.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/remove-unscopable.html
@@ -5,14 +5,28 @@
 <script src=/resources/testharnessreport.js></script>
 <div id="testDiv" onclick="result1 = remove; result2 = this.remove;"></div>
 <script>
-var remove = "Hello there";
 var result1;
 var result2;
-test(function() {
-  assert_true(Element.prototype[Symbol.unscopables].remove);
-  var div = document.querySelector("#testDiv");
-  div.dispatchEvent(new Event("click"));
-  assert_equals(typeof result1, "string");
-  assert_equals(typeof result2, "function");
-}, "remove() should be unscopable")
+var unscopables = [
+    "before",
+    "after",
+    "replaceWith",
+    "remove",
+    "prepend",
+    "append"
+];
+for (var i in unscopables) {
+    var name = unscopables[i];
+    window[name] = "Hello there";
+    result1 = result2 = undefined;
+    test(function () {
+        assert_true(Element.prototype[Symbol.unscopables][name]);
+        var div = document.querySelector('#testDiv');
+        div.setAttribute(
+            "onclick", "result1 = " + name + "; result2 = this." + name + ";");
+        div.dispatchEvent(new Event("click"));
+        assert_equals(typeof result1, "string");
+        assert_equals(typeof result2, "function");
+    }, name + "() should be unscopable");
+}
 </script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/rootNode.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/rootNode.html
deleted file mode 100644
index ef35410..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/rootNode.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset=utf-8>
-<title>Node.prototype.rootNode</title>
-<link rel="help" href="https://dom.spec.whatwg.org/#dom-node-rootnode">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
-<script>
-
-test(function () {
-    var element = document.createElement('div');
-    assert_equals(element.rootNode, element, 'rootNode on an element without a parent must return the element itself');
-
-    var text = document.createTextNode('');
-    assert_equals(text.rootNode, text, 'rootNode on a text node without a parent must return the text node itself');
-
-    var processingInstruction = document.createProcessingInstruction('target', 'data');
-    assert_equals(processingInstruction.rootNode, processingInstruction, 'rootNode on a processing instruction node without a parent must return the processing instruction node itself');
-
-    assert_equals(document.rootNode, document, 'rootNode on a document node must return the document itself');
-
-}, 'rootNode attribute must return the context object when it does not have any parent');
-
-test(function () {
-    var parent = document.createElement('div');
-
-    var element = document.createElement('div');
-    parent.appendChild(element);
-    assert_equals(element.rootNode, parent, 'rootNode on an element with a single ancestor must return the parent node');
-
-    var text = document.createTextNode('');
-    parent.appendChild(text);
-    assert_equals(text.rootNode, parent, 'rootNode on a text node with a single ancestor must return the parent node');
-
-    var processingInstruction = document.createProcessingInstruction('target', 'data');
-    parent.appendChild(processingInstruction)
-    assert_equals(processingInstruction.rootNode, parent, 'rootNode on a processing instruction node with a single ancestor must return the parent node');
-
-}, 'rootNode attribute must return the parent node of the context object when the context object has a single ancestor not in a document');
-
-test(function () {
-    var parent = document.createElement('div');
-    document.body.appendChild(parent);
-
-    var element = document.createElement('div');
-    parent.appendChild(element);
-    assert_equals(element.rootNode, document, 'rootNode on an element inside a document must return the document');
-
-    var text = document.createTextNode('');
-    parent.appendChild(text);
-    assert_equals(text.rootNode, document, 'rootNode on a text node inside a document must return the document');
-
-    var processingInstruction = document.createProcessingInstruction('target', 'data');
-    parent.appendChild(processingInstruction)
-    assert_equals(processingInstruction.rootNode, document, 'rootNode on a processing instruction node inside a document must return the document');
-}, 'rootNode attribute must return the document when a node is in document');
-
-test(function () {
-    var fragment = document.createDocumentFragment();
-    var parent = document.createElement('div');
-    fragment.appendChild(parent);
-
-    var element = document.createElement('div');
-    parent.appendChild(element);
-    assert_equals(element.rootNode, fragment, 'rootNode on an element inside a document fragment must return the fragment');
-
-    var text = document.createTextNode('');
-    parent.appendChild(text);
-    assert_equals(text.rootNode, fragment, 'rootNode on a text node inside a document fragment must return the fragment');
-
-    var processingInstruction = document.createProcessingInstruction('target', 'data');
-    parent.appendChild(processingInstruction)
-    assert_equals(processingInstruction.rootNode, fragment,
-        'rootNode on a processing instruction node inside a document fragment must return the fragment');
-}, 'rootNode attribute must return a document fragment when a node is in the fragment');
-
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
index caa1859..ef0ad40 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
@@ -45,7 +45,7 @@
 
 badStrings.forEach(function(t) {
     test(function() {
-        var encoded = new TextEncoder('utf-8').encode(t.input);
+        var encoded = new TextEncoder().encode(t.input);
         assert_array_equals([].slice.call(encoded), t.expected);
         assert_equals(new TextDecoder('utf-8').decode(encoded), t.decoded);
     }, 'Invalid surrogates encoded into UTF-8: ' + t.name);
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-streaming.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-streaming.html
index 211b3c00..2b567aa 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-streaming.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-streaming.html
@@ -7,6 +7,9 @@
 
 var string = '\x00123ABCabc\x80\xFF\u0100\u1000\uFFFD\uD800\uDC00\uDBFF\uDFFF';
 var octets = {
+    'utf-8':    [0x00,0x31,0x32,0x33,0x41,0x42,0x43,0x61,0x62,0x63,0xc2,0x80,
+                 0xc3,0xbf,0xc4,0x80,0xe1,0x80,0x80,0xef,0xbf,0xbd,0xf0,0x90,
+                 0x80,0x80,0xf4,0x8f,0xbf,0xbf],
     'utf-16le': [0x00,0x00,0x31,0x00,0x32,0x00,0x33,0x00,0x41,0x00,0x42,0x00,
                  0x43,0x00,0x61,0x00,0x62,0x00,0x63,0x00,0x80,0x00,0xFF,0x00,
                  0x00,0x01,0x00,0x10,0xFD,0xFF,0x00,0xD8,0x00,0xDC,0xFF,0xDB,
@@ -17,11 +20,10 @@
                  0xDF,0xFF]
 };
 
-utf_encodings.forEach(function (encoding) {
+Object.keys(octets).forEach(function(encoding) {
     for (var len = 1; len <= 5; ++len) {
         test(function() {
-            var encoded = octets[encoding] ||
-                          new TextEncoder(encoding).encode(string);
+            var encoded = octets[encoding];
 
             var out = '';
             var decoder = new TextDecoder(encoding);
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
index d1f92ea..4640752 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
@@ -37,18 +37,16 @@
     }
 ];
 
-var encoding = 'utf-8';
-
 bad.forEach(function(t) {
     test(function() {
-        var encoded = new TextEncoder(encoding).encode(t.input);
-        var decoded = new TextDecoder(encoding).decode(encoded);
+        var encoded = new TextEncoder().encode(t.input);
+        var decoded = new TextDecoder().decode(encoded);
         assert_equals(decoded, t.expected);
     }, 'USVString handling: ' + t.name);
 });
 
 test(function() {
-    assert_equals(new TextEncoder(encoding).encode().length, 0, 'Should default to empty string');
+    assert_equals(new TextEncoder().encode().length, 0, 'Should default to empty string');
 }, 'USVString default');
 
 </script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js
deleted file mode 100644
index 1680ab7..0000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// Up-to-date as of 2013-04-19.
-// Things defined in the W3C's microdata draft, not the main HTML5 draft.
-// Note: must be included last so that it hits all elements.
-
-for (var element in elements) {
-  elements[element].itemScope = "boolean";
-  elements[element].itemType = "settable tokenlist";
-  elements[element].itemId = "url";
-  elements[element].itemRef = "settable tokenlist";
-  elements[element].itemProp = "settable tokenlist";
-}
-extraTests.push(function() {
-  // itemValue only reflects in certain circumstances.  The syntax for our big
-  // array thing above doesn't currently support one IDL attribute that reflects
-  // different content attributes, so just do this explicitly until that's fixed.
-  var reflectItemValue = function(data, localName, attribute) {
-    var element = document.createElement(localName);
-    element.setAttribute("itemprop", "");
-    ReflectionTests.reflects(data, "itemValue", element, attribute);
-  }
-  reflectItemValue("string", "meta", "content");
-  reflectItemValue("url", "audio", "src");
-  reflectItemValue("url", "embed", "src");
-  reflectItemValue("url", "iframe", "src");
-  reflectItemValue("url", "img", "src");
-  reflectItemValue("url", "source", "src");
-  reflectItemValue("url", "track", "src");
-  reflectItemValue("url", "video", "src");
-  reflectItemValue("url", "a", "href");
-  reflectItemValue("url", "area", "href");
-  reflectItemValue("url", "link", "href");
-  reflectItemValue("url", "object", "data");
-  reflectItemValue("string", "data", "value");
-  //TODO: time is more complex
-});
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-expected.html
index d739395..3dfe4db8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref-expected.html
index d739395..3dfe4db8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html
index d739395..3dfe4db8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L.html
index 6050743..fa8d793 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-expected.html
index d71ef4b6..f91155bc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref-expected.html
index d71ef4b6..f91155bc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html
index d71ef4b6..f91155bc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R.html
index 9897a78..7165de583 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-EN-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-expected.html
index 1edb613c..2e85732 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref-expected.html
index 1edb613c..2e85732 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref.html
index 1edb613c..2e85732 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L.html
index 12eb913..3896bcb7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-expected.html
index b34b433..818cd74 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref-expected.html
index b34b433..818cd74 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html
index b34b433..818cd74 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L.html
index 8da22d1..21ca033 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-expected.html
index 99ff5bd..2b6b2fd7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref-expected.html
index 99ff5bd..2b6b2fd7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html
index 99ff5bd..2b6b2fd7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
index f582331..b10a52b1a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html
index ca3bf25..154d56a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html
@@ -30,7 +30,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <p dir="ltr">@123!</p>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html
index b34b433..818cd74 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
index ca3bf25..154d56a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
@@ -30,7 +30,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <p dir="ltr">@123!</p>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN.html
index f2a6398..5d948d34 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-EN.html
@@ -30,7 +30,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <p dir="auto">@123!</p>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-expected.html
index fbad3dea..801eb83 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref-expected.html
index fbad3dea..801eb83 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref.html
index fbad3dea..801eb83 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L.html
index 68b769e..945fa06 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-expected.html
index 486b10e..ded5977 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref-expected.html
index 486b10e..ded5977 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref.html
index 486b10e..ded5977 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R.html
index 072d86a..bf27a16 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-N-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-expected.html
index 7689a2e..7b20566 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref-expected.html
index 7689a2e..7b20566 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref.html
index 7689a2e..7b20566 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R.html
index 2f75d86..69a62fc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-expected.html
index 6fe67da..421c107 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref-expected.html
index 6fe67da..421c107 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html
index 6fe67da..421c107 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L.html
index 3d66f99..f71f318 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-expected.html
index 2ab4200..04a286f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref-expected.html
index 2ab4200..04a286f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html
index 2ab4200..04a286f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R.html
index 17db2c5..2ba6342 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-expected.html
index df45371..691e0bf 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref-expected.html
index df45371..691e0bf 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
index df45371..691e0bf 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
index 1747975e..f35abfe 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-expected.html
index e525c92e..ff6532e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref-expected.html
index e525c92e..ff6532e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
index e525c92e..ff6532e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
index 669db9a..8ac3244 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-expected.html
index b10517d..f5a8a8a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref-expected.html
index b10517d..f5a8a8a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html
index b10517d..f5a8a8a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html
index e1056c8..1f42468 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-expected.html
index 145b12f..b34f43f0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref-expected.html
index 145b12f..b34f43f0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html
index 145b12f..b34f43f0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html
index 67ce3f6..daab191 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-expected.html
index c44474f..f04559b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref-expected.html
index c44474f..f04559b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html
index c44474f..f04559b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html
index 5d3e6c7..f491f61 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-expected.html
index f3b1aa6..e4104be 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref-expected.html
index f3b1aa6..e4104be 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html
index f3b1aa6..e4104be 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html
index 1f166039..e3131c8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.html
index 0f0cee8..69d2ef6c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref-expected.html
index 0f0cee8..69d2ef6c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html
index 0f0cee8..69d2ef6c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L.html
index 174a244..59a2e77 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-expected.html
index d29f2bf..ea452c1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref-expected.html
index d29f2bf..ea452c1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html
index d29f2bf..ea452c1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R.html
index a67a8cd..a76515d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-script-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-expected.html
index 092bb8b..d9a7356 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref-expected.html
index 092bb8b..d9a7356 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
index 092bb8b..d9a7356 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
index 8a466b7..cc74d4c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-expected.html
index e68fc18d..32c918f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref-expected.html
index e68fc18d..32c918f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
index e68fc18d..32c918f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
index 3e16ec5f..4aa70cd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-expected.html
index a696eba1..4e0d0e10 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref-expected.html
index a696eba1..4e0d0e10 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html
index a696eba1..4e0d0e10 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html
index 76d350a..0de041f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-expected.html
index 3c049e2..f53d15e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref-expected.html
index 3c049e2..f53d15e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html
index 3c049e2..f53d15e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html
index 4505be9..852de60 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-expected.html
index c5b8aea..5893759 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref-expected.html
index c5b8aea..5893759 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html
index c5b8aea..5893759 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L.html
index c6246c8..d5ade6c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-expected.html
index 747ccac..2a7eb7a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref-expected.html
index 747ccac..2a7eb7a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html
index 747ccac..2a7eb7a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R.html
index ddd330d..08ef3ecd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-EN-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-expected.html
index 0b44c5a..6e86437 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref-expected.html
index 0b44c5a..6e86437 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref.html
index 0b44c5a..6e86437 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L.html
index 78debb86..0a23f2b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-expected.html
index e630ced..5a442cdd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref-expected.html
index e630ced..5a442cdd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html
index e630ced..5a442cdd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html
index b18bf3e..03f8552 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-expected.html
index 7f14515..36cb32f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref-expected.html
index 7f14515..36cb32f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html
index 7f14515..36cb32f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html
index 1370aa8..13193d3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-expected.html
index 3b20643..b1a8a23 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-expected.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref-expected.html
index 3b20643..b1a8a23 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref-expected.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html
index 3b20643..b1a8a23 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN.html
index f643a81..03df3c6d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-EN.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="auto" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-expected.html
index 1e6f00b..fcf594f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref-expected.html
index 1e6f00b..fcf594f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html
index 1e6f00b..fcf594f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L.html
index 49117474..9c1d3bc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-expected.html
index 8da122d..28c0e4d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref-expected.html
index 8da122d..28c0e4d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html
index 8da122d..28c0e4d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R.html
index cec9d81..dbf54f7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-N-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-expected.html
index 75ccd53..65fc8a80 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref-expected.html
index 75ccd53..65fc8a80 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref.html
index 75ccd53..65fc8a80 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R.html
index ff06dc37..6d2612b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-expected.html
index 2a6a551..a60e93ed 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref-expected.html
index 2a6a551..a60e93ed 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html
index 2a6a551..a60e93ed 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
index d90a53c..d0a9e2b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-expected.html
index 6acbd2e..c58523b1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref-expected.html
index 6acbd2e..c58523b1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html
index 6acbd2e..c58523b1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
index 825bf94..e444b90 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-expected.html
index bb1c87c..eec4fb9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref-expected.html
index bb1c87c..eec4fb9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html
index bb1c87c..eec4fb9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L.html
index b0df6cf..e6aa700 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-expected.html
index bb7469a..7859147 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref-expected.html
index bb7469a..7859147 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html
index bb7469a..7859147 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
index 7e58f18..7905cee 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-expected.html
index df77e61..3b3f7b9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref-expected.html
index df77e61..3b3f7b9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html
index df77e61..3b3f7b9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
index c8a401e..95faa72 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-expected.html
index 68747bb..b0ab071 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-expected.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref-expected.html
index 68747bb..b0ab071 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref-expected.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html
index 68747bb..b0ab071 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <input type="text" dir="ltr" value="@123!" />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
index 3641706..2721aff 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
@@ -33,7 +33,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-expected.html
index b226a71..a807b27 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref-expected.html
index b226a71..a807b27 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html
index b226a71..a807b27 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
index c5f4ef3..2ff24db 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-expected.html
index 9a9cc35..c267f28 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref-expected.html
index 9a9cc35..c267f28 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html
index 9a9cc35..c267f28 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
index f285258..0663b28 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-expected.html
index f45080d..1cc14df3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref-expected.html
index f45080d..1cc14df3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref-expected.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html
index f45080d..1cc14df3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R.html
index 76549d2..07becaa 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-input-script-R.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-expected.html
index a092fdb..442a2d3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref-expected.html
index a092fdb..442a2d3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref-expected.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
index a092fdb..442a2d3 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate.html
index 289726b..14272c0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-isolate.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN-expected.html
index 7f661d1..c951c30 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <pre dir="ltr">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html
index 75215df3..cd721d7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-expected.html
index 904536c..2d9caf0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html
index 910e382d..adca24d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed-expected.html
index 8f684f3..10bd024 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <pre dir="ltr">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed.html
index 80a8eda..9063656 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-pre-mixed.html
@@ -28,7 +28,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-expected.html
index e5f097b..253b844 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <textarea rows="2" dir="ltr">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html
index 195f6a4..f0fa216 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-expected.html
index fbe1e9a..afeef08 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-expected.html
@@ -23,7 +23,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html
index f3f3c6f..ddae910 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed-expected.html
index 96ee597..a5a8448 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed-expected.html
@@ -23,7 +23,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <textarea rows="5" dir="rtl">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html
index 54a5ac1..4947124c9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-expected.html
index e5f097b..253b844 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <textarea rows="2" dir="ltr">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
index b98fe378..3c674e2 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html
index 6d8a526..814e7b6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html
@@ -24,7 +24,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html
index fbe1e9a..afeef08 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html
@@ -23,7 +23,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
index 6d8a526..814e7b6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
@@ -24,7 +24,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
index 1083618f..d16837b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
@@ -32,7 +32,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; - The Hebrew letter Alef (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html
index 96ee597..a5a8448 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html
@@ -23,7 +23,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="test">
       <div dir="ltr">
         <textarea rows="5" dir="rtl">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
index 52533c0..f0c6d4f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
@@ -31,7 +31,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a-expected.html
index d2a6d9af..b5882eb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a.html
index 434e2d5..16a308a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">&#x5d0;</span> 3</div>
 <div dir="ltr"><span dir="rtl">a</span> 3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b-expected.html
index d2a6d9af..b5882eb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b.html
index ca4a6af..197f49a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">&#x5d0;</span> 3</div>
 <div dir="ltr"><span dir="auto">a</span> 3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c-expected.html
index d2a6d9af..b5882eb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c.html
index 684fcf65..95ec6c73 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-001c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&#x5d0;</span> 3</div>
 <div dir="ltr"><span dir="ltr">a</span> 3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a-expected.html
index 1480a29..f28559b5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&lt; a &lt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; &#1488; &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; a &gt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&lt; a &lt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; &#1488; &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; a &gt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a.html
index 7724922..7b7029a2 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">> &#x5d0; ></span> > 3 ></div>
 <div dir="ltr"><span dir="rtl">> a ></span> > 3 ></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b-expected.html
index b265384a..d4eda21 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&gt; a &gt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; &#1488; &lt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; a &gt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&gt; a &gt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; &#1488; &lt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &gt; a &gt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b.html
index bf2c0e8..d448de5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">> &#x5d0; ></span> > 3 ></div>
 <div dir="ltr"><span dir="auto">> a ></span> > 3 ></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c-expected.html
index f647577..6c21d014 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&gt; &#1488; &gt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&gt; a &gt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; &#1488; &lt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; a &lt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&gt; &#1488; &gt; &gt; 3 &gt;&#8236;</div><div dir="ltr">&#8237;&gt; a &gt; &gt; 3 &gt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; &#1488; &lt;&#8236;</div><div dir="rtl">&#8237;&lt; 3 &lt; &lt; a &lt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c.html
index aa007c1..e88fb1c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-002c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&gt; &#x5d0; &gt;</span> &gt; 3 &gt;</div>
 <div dir="ltr"><span dir="ltr">&gt; a &gt;</span> &gt; 3 &gt;</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a-expected.html
index d8ad6bf..4c29838e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a.html
index b5d61c8..9cf65c81 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">&#x5d0;</span>3</div>
 <div dir="ltr"><span dir="rtl">a</span>3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b-expected.html
index d8ad6bf..4c29838e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b.html
index edd80230..2c6b553 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">&#x5d0;</span>3</div>
 <div dir="ltr"><span dir="auto">a</span>3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c-expected.html
index d8ad6bf..4c29838e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;3&#8236;</div><div dir="ltr">&#8237;a3&#8236;</div><div dir="rtl">&#8237;3&#1488;&#8236;</div><div dir="rtl">&#8237;3a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c.html
index 73f46dc..ac873512 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-003c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&#x5d0;</span>3</div>
 <div dir="ltr"><span dir="ltr">a</span>3</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a-expected.html
index 936959b..cb83dde 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a.html
index 5ad6beb..27a674c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="rtl">3</span></div>
 <div dir="ltr">a <span dir="rtl">3</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b-expected.html
index 936959b..cb83dde 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b.html
index 62e0b45..6fe74393 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="auto">3</span></div>
 <div dir="ltr">a <span dir="auto">3</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c-expected.html
index 936959b..cb83dde 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; 3&#8236;</div><div dir="ltr">&#8237;a 3&#8236;</div><div dir="rtl">&#8237;3 &#1488;&#8236;</div><div dir="rtl">&#8237;3 a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c.html
index e7c419f..43d994b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-004c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="ltr">3</span></div>
 <div dir="ltr">a <span dir="ltr">3</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a-expected.html
index 30d08af..4a6c301 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a.html
index f4cda0e..2fbddbd 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">&#x5d0;</span> &#x5d1;...</div>
 <div dir="ltr"><span dir="rtl">a</span> b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b-expected.html
index 30d08af..4a6c301 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b.html
index fc49cc9..d61e258f2 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">&#x5d0;</span> &#x5d1;...</div>
 <div dir="ltr"><span dir="auto">a</span> b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c-expected.html
index 30d08af..4a6c301 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;...&#8236;</div><div dir="ltr">&#8237;a b...&#8236;</div><div dir="rtl">&#8237;...b a&#8236;</div><div dir="rtl">&#8237;...&#1489; &#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c.html
index 834b94f..d544275 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-005c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&#x5d0;</span> &#x5d1;...</div>
 <div dir="ltr"><span dir="ltr">a</span> b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a-expected.html
index 9fffe6c..0f6b7bbb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &gt; a &gt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &gt; a &gt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a.html
index 0dcf53d..430df00d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">&gt; &#x5d0; &gt;</span> &gt; &#x5d1; &gt;...</div>
 <div dir="rtl"><span dir="ltr">&gt; a &gt;</span> &gt; b &gt;...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b-expected.html
index 9fffe6c..0f6b7bbb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &gt; a &gt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&lt; &#1488; &lt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &gt; a &gt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b.html
index 0402214..a6da487 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">&gt; &#x5d0; &gt;</span> &gt; &#x5d1; &gt;...</div>
 <div dir="rtl"><span dir="auto">&gt; a &gt;</span> &gt; b &gt;...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c-expected.html
index 187a458..0347c09 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&gt; &#1488; &gt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &lt; a &lt;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&gt; &#1488; &gt; &gt; &#1489; &gt;...&#8236;</div><div dir="rtl">&#8237;...&lt; b &lt; &lt; a &lt;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c.html
index 6f062d0..3407d37 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-006c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&gt; &#x5d0; &gt;</span> &gt; &#x5d1; &gt;...</div>
 <div dir="rtl"><span dir="rtl">&gt; a &gt;</span> &gt; b &gt;...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a-expected.html
index b62ff23..665153d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a.html
index ebeb54b..e8b37b1b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="rtl">&#x5d0;</span>&#x5d1;...</div>
 <div dir="ltr"><span dir="rtl">a</span>b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b-expected.html
index b62ff23..665153d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b.html
index d4a1f9c..c54e63d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="auto">&#x5d0;</span>&#x5d1;...</div>
 <div dir="ltr"><span dir="auto">a</span>b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c-expected.html
index b62ff23..665153d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488;&#1489;...&#8236;</div><div dir="ltr">&#8237;ab...&#8236;</div><div dir="rtl">&#8237;...ba&#8236;</div><div dir="rtl">&#8237;...&#1489;&#1488;&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c.html
index f7f17cd6..b9c5219 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-007c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr"><span dir="ltr">&#x5d0;</span>&#x5d1;...</div>
 <div dir="ltr"><span dir="ltr">a</span>b...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a-expected.html
index 7a7c841..8eb90f8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a.html
index c90dd38..1455fd5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="rtl">&#x5d1;</span></div>
 <div dir="ltr">a <span dir="rtl">b</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b-expected.html
index 7a7c841..8eb90f8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b.html
index e7b91ce0..f12e6d6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="auto">&#x5d1;</span></div>
 <div dir="ltr">a <span dir="auto">b</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c-expected.html
index 7a7c841..8eb90f8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1488; &#1489;&#8236;</div><div dir="ltr">&#8237;a b&#8236;</div><div dir="rtl">&#8237;&#1489; &#1488;&#8236;</div><div dir="rtl">&#8237;b a&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c.html
index 9f7d64e..b1754cf 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-008c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!-- Notes:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!--Notes:
 Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; <span dir="ltr">&#x5d1;</span></div>
 <div dir="ltr">a <span dir="ltr">b</span></div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a-expected.html
index 8c7cd39..1d2f57c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &lt; b &lt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &gt; &#1489; &gt; &gt; c&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &lt; b &lt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &gt; &#1489; &gt; &gt; c&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a.html
index a7e1e75..63a9706 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009a.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!--  Key to entities used below:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!-- Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 If the BDI in the test's first DIV were a SPAN, its b would prevent the &#x5d0; and the &#x5d1;
 from forming a single RTL run and thus keep the &gt;s between from being mirrored into &lt;s.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; &gt; <span dir="rtl">&gt; b &gt;</span> &gt; &#x5d2;...</div>
 <div dir="rtl">a &gt; <span dir="ltr">&gt; &#x5d1; &gt;</span> &gt; c...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b-expected.html
index e8dea25..30ee14c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &gt; b &gt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &lt; &#1489; &lt; &gt; c&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &gt; b &gt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &lt; &#1489; &lt; &gt; c&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b.html
index 90fefff..57098fa 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009b.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!--  Key to entities used below:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!-- Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 If the BDI in the test's first DIV were a SPAN, its b would prevent the &#x5d0; and the &#x5d1;
 from forming a single RTL run and thus keep the &gt;s between from being mirrored into &lt;s.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; &gt; <span dir="auto">&gt; b &gt;</span> &gt; &#x5d2;...</div>
 <div dir="rtl">a &gt; <span dir="auto">&gt; &#x5d1; &gt;</span> &gt; c...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c-expected.html
index e8dea25..30ee14c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c-expected.html
@@ -9,7 +9,7 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &gt; b &gt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &lt; &#1489; &lt; &gt; c&#8236;</div></div>
 <div class="ref"><div dir="ltr">&#8237;&#1490; &lt; &gt; b &gt; &lt; &#1488;...&#8236;</div><div dir="rtl">&#8237;...a &gt; &lt; &#1489; &lt; &gt; c&#8236;</div></div>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c.html
index 4e036c2..4aac3184 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/requirements-relating-to-bidirectional-algorithm-formatting-characters/dir-isolation-009c.html
@@ -13,14 +13,14 @@
 </style>
 </head>
 <body>
-<p class="instructions" dir="ltr" style="display:none">Test passes if the two boxes are identical.</p>
-<!--  Key to entities used below:
+<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
+<!-- Key to entities used below:
 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
 &#x202d; - The LRO (left-to-right-override) formatting character.
 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
 If the BDI in the test's first DIV were a SPAN, its b would prevent the &#x5d0; and the &#x5d1;
 from forming a single RTL run and thus keep the &gt;s between from being mirrored into &lt;s.
- -->
+-->
 <div class="test">
 <div dir="ltr">&#x5d0; &gt; <span dir="ltr">&gt; b &gt;</span> &gt; &#x5d2;...</div>
 <div dir="rtl">a &gt; <span dir="rtl">&gt; &#x5d1; &gt;</span> &gt; c...</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/bindings/the-select-element-0/option-label-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/bindings/the-select-element-0/option-label-expected.html
index c73c14b..e3f73cb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/bindings/the-select-element-0/option-label-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/bindings/the-select-element-0/option-label-expected.html
@@ -1,19 +1,19 @@
 <!doctype html>
 <title>Option labels</title>
 <select size=12>
-  <option><!--  No children, no label -->
-  <option><!--  No children, empty label -->
-  <option>label<!--  No children, label -->
-  <option><!--  No children, namespaced label -->
+  <option><!-- No children, no label-->
+  <option><!-- No children, empty label-->
+  <option>label<!-- No children, label-->
+  <option><!-- No children, namespaced label-->
 
-  <option>child<!--  Single child, no label -->
-  <option>child<!--  Single child, empty label -->
-  <option>label<!--  Single child, label -->
-  <option>child<!--  Single child, namespaced label -->
+  <option>child<!-- Single child, no label-->
+  <option>child<!-- Single child, empty label-->
+  <option>label<!-- Single child, label-->
+  <option>child<!-- Single child, namespaced label-->
 
-  <option>child node<!--  Two children, no label -->
-  <option>child node<!--  Two children, empty label -->
-  <option>label<!--  Two children, label -->
-  <option>child node<!--  Two children, namespaced label -->
+  <option>child node<!-- Two children, no label-->
+  <option>child node<!-- Two children, empty label-->
+  <option>label<!-- Two children, label-->
+  <option>child node<!-- Two children, namespaced label-->
 </select>
 
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align-expected.html
index fc66a0f..da8e4d0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align-expected.html
@@ -17,7 +17,7 @@
 </style>
 </head>
 <body>
-<!--  Centered tests  -->
+<!-- Centered tests -->
 <div class=center>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
@@ -35,7 +35,7 @@
 </div>
 </div>
 
-<!--  Left-aligned tests  -->
+<!-- Left-aligned tests -->
 <div class=left>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
@@ -53,7 +53,7 @@
 <div class="test right">t א</div>
 </div>
 
-<!--  Right-aligned tests  -->
+<!-- Right-aligned tests -->
 <div class=right>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align.html
index 209678f..b96fbae 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/flow-content-0/div-align.html
@@ -12,7 +12,7 @@
 </style>
 </head>
 <body>
-<!--  Centered tests  -->
+<!-- Centered tests -->
 <div align=center>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
@@ -30,7 +30,7 @@
 </div>
 </div>
 
-<!--  Left-aligned tests  -->
+<!-- Left-aligned tests -->
 <div align=left>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
@@ -48,7 +48,7 @@
 <div class=test align=right>t א</div>
 </div>
 
-<!--  Right-aligned tests  -->
+<!-- Right-aligned tests -->
 <div align=right>
 <div class=test>t א</div>
 <div class="test rtl">t א</div>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml
index 5f20823..7a5090c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml
@@ -18,6 +18,6 @@
 <div>Quirks should not apply:</div>
 <div><u>foo <span style="color:fuchsia">span</span> bar</u></div>
 <div><u id="no-namespace">foo <font xmlns="">no-namespace font element</font> bar</u></div>
-<div><u id="uppercase">foo <FONT>uppercase FONT element</font> bar</u></div>
+<div><u id="uppercase">foo <FONT>uppercase FONT element</FONT> bar</u></div>
 </body>
 </html>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width-s.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width-s.html
index 0e070f5d..0fe0e2c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width-s.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width-s.html
@@ -24,7 +24,7 @@
 }
 </style>
 
-<!--  width=0 should be treated as 'auto'  -->
+<!-- width=0 should be treated as 'auto' -->
 <table>
   <tr>
     <th width=0>a</th>
@@ -39,7 +39,7 @@
   </tr>
 </table>
 
-<!--  test valid width attribute value -->
+<!-- test valid width attribute value-->
 <table>
   <tr>
     <th width=100>a</th>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width.html
index fecf081..f66244a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-cell-width.html
@@ -23,7 +23,7 @@
 }
 </style>
 
-<!--  width=0 should be treated as 'auto'  -->
+<!-- width=0 should be treated as 'auto' -->
 <table>
   <tr>
     <th width=0>a</th>
@@ -38,7 +38,7 @@
   </tr>
 </table>
 
-<!--  test valid width attribute value -->
+<!-- test valid width attribute value-->
 <table>
   <tr>
     <th width=100>a</th>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width-s.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width-s.html
index 96336d4..5b987e7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width-s.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width-s.html
@@ -11,7 +11,7 @@
 }
 </style>
 
-<!--  width=0 should be treated as 'auto'  -->
+<!-- width=0 should be treated as 'auto' -->
 <table width=0>
   <tr>
     <td>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width.html b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width.html
index c9081d6f..59c5ca70 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/rendering/non-replaced-elements/tables/table-width.html
@@ -10,7 +10,7 @@
 }
 </style>
 
-<!--  width=0 should be treated as 'auto'  -->
+<!-- width=0 should be treated as 'auto' -->
 <table width=0>
   <tr>
     <td>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback-expected.txt
new file mode 100644
index 0000000..44b0b567
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+PASS We have the right embed element 
+FAIL Check that the right things loaded assert_true: child 1 should load expected true got false
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback.html
new file mode 100644
index 0000000..52fa01b9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Ensure that embed elements inside object elements load when the objects
+  fall back but not otherwise</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script>
+  var child1Loaded = false;
+  var child2Loaded = false;
+  var child3Loaded = false;
+  var parent3Loaded = false;
+</script>
+<object>
+  <embed src="embed-in-object-fallback-subdocument.html?child1Loaded">
+</object>
+<object>
+  <embed id="two" src="embed-in-object-fallback-subdocument.html?child2Loaded">
+  <!-- Something that forces the embed to be in the tree before the <object>
+       is done parsing -->
+  <script>
+    test(function() {
+      assert_equals(document.getElementById("two").localName,
+                    "embed");
+    }, "We have the right embed element");
+  </script>
+</object>
+<object data="embed-in-object-fallback-subdocument.html?parent3Loaded">
+  <embed src="embed-in-object-fallback-subdocument.html?child3Loaded">
+</object>
+<script>
+  var t = async_test("Check that the right things loaded");
+  onload = t.step_func_done(function() {
+    assert_true(child1Loaded, "child 1 should load");
+    assert_true(child2Loaded, "child 2 should load");
+    assert_false(child3Loaded, "child 3 should not load");
+    assert_true(parent3Loaded, "parent 3 should load");
+  });
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage-expected.txt
new file mode 100644
index 0000000..feada31
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL Check the frame heriarchy assert_equals: expected 200 but got 0
+FAIL Check the frame heriarchy 1 assert_equals: expected 200 but got 0
+FAIL Check the frame heriarchy 2 assert_equals: expected 200 but got 0
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage.html
new file mode 100644
index 0000000..cd27b8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Check the frame heriarchy</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="iframe_harness.js"></script>
+<body>
+  <iframe src="http://www1.web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/cross_origin_child.html"></iframe>
+</body>
+<script>
+    get_test_results('bffa23ee-b45a-4e9a-9405-87ab437d5cfa');
+    get_test_results('79a52de8-4222-427e-92db-caec28e75f8e');
+    get_test_results('6c8da65d-2c5e-44ef-bb0b-b8b9849aab19');
+    send_test_results({
+        "id": 'bffa23ee-b45a-4e9a-9405-87ab437d5cfa',
+        "parent": window.parent === window,
+        "top": window.top === window,
+    });
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_harness.js b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_harness.js
new file mode 100644
index 0000000..f4ef511
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_harness.js
@@ -0,0 +1,26 @@
+function get_test_results(id) {
+    async_test(function(test) {
+        var timer = window.setInterval(test.step_func(loop), 100);
+        function loop() {
+            var xhr = new XMLHttpRequest();
+            xhr.open('GET', 'stash.py?id=' + id);
+            xhr.onreadystatechange = test.step_func(function() {
+                assert_equals(xhr.status, 200);
+                if (xhr.responseText) {
+                    assert_equals(xhr.responseText, "OK");
+                    test.done();
+                    window.clearTimeout(timer);
+                }
+            });
+            xhr.send();
+        }
+    });
+}
+
+function send_test_results(results) {
+    var ok = true;
+    for (result in results) { ok = ok && results[result]; }
+    var xhr = new XMLHttpRequest();
+    xhr.open('POST', 'stash.py?id=' + results.id);
+    xhr.send(ok ? "OK" : "FAIL: " + JSON.stringify(results));
+}
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage-expected.txt
new file mode 100644
index 0000000..feada31
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL Check the frame heriarchy assert_equals: expected 200 but got 0
+FAIL Check the frame heriarchy 1 assert_equals: expected 200 but got 0
+FAIL Check the frame heriarchy 2 assert_equals: expected 200 but got 0
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage.html
new file mode 100644
index 0000000..a163eb8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/same_origin_parentage.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Check the frame heriarchy</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="iframe_harness.js"></script>
+<body>
+  <iframe src="same_origin_child.html"></iframe>
+</body>
+<script>
+    get_test_results('17381dae-9c3e-4661-9f2b-28eb07a5f2fc');
+    get_test_results('08782f28-e313-47ae-8cd7-419f3e194b0a');
+    get_test_results('66de8d44-7da7-47c7-9a52-41cba4f22bfe');
+    send_test_results({
+        "id": '17381dae-9c3e-4661-9f2b-28eb07a5f2fc',
+        "parent": window.parent === window,
+        "top": window.top === window,
+    });
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/stash.py b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/stash.py
new file mode 100644
index 0000000..0b8693a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/stash.py
@@ -0,0 +1,10 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+
+def main(request, response):
+    if request.method == 'POST':
+        request.server.stash.put(request.GET["id"], request.body)
+        return ''
+    return request.server.stash.take(request.GET["id"])
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi-expected.html
index d557e00..d69195b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi-expected.html
@@ -8,7 +8,7 @@
     <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-textarea-element"/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       <textarea cols="70" rows="3">
 A Hebrew letter and a full stop: &#x05d0;.&lrm;
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi.html
index 549a19f..ce1ff944 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-textarea-element/textarea-newline-bidi.html
@@ -12,7 +12,7 @@
       content="A newline in a textarea element, and in its raw value, should separate paragraphs for the purposes of the Unicode bidirectional algorithm."/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       <textarea cols="70" rows="3">
 A Hebrew letter and a full stop: &#x05d0;.
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi-expected.html
index 7cb0b2c..0f302b5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi-expected.html
@@ -8,7 +8,7 @@
     <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element"/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       <pre>
 A Hebrew letter and a full stop: &#x05d0;.&lrm;
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi.html
index f2743d3..23d442f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-pre-element/pre-newline-bidi.html
@@ -12,7 +12,7 @@
       content="A newline in a pre element should separate paragraphs for the purposes of the Unicode bidirectional algorithm."/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       <pre>
 A Hebrew letter and a full stop: &#x05d0;.
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default-expected.html
index 6bbd24b..eff61bb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.html
index 9ce4abd..e658500 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.html
@@ -23,7 +23,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf-expected.html
index 89feef4c..b4d44c5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf.html
index a2ea783..1ce9da6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf.html
@@ -26,7 +26,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested-expected.html
index 36f30b8..d5d7674a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested.html
index 05d8c06..1585768 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-nested.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number-expected.html
index b14eeaf9..df7af77 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number.html
index 0cefca0..37e467c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-number.html
@@ -24,7 +24,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate-expected.html
index e81825b1..ec8e346 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate.html
index 488db86..7bb8a2081 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate.html
@@ -26,7 +26,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1-expected.html
index 29b6cf4..c0f323e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none">Test passes if the two boxes below look exactly the same.</div>
+    <div class="instructions">Test passes if the two boxes below look exactly the same.</div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1.html
index bad6faf..8221207 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-1.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none">Test passes if the two boxes below look exactly the same.</div>
+    <div class="instructions">Test passes if the two boxes below look exactly the same.</div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2-expected.html
index f8a09ad..9aef97c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2-expected.html
@@ -20,7 +20,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none">Test passes if the two boxes below look exactly the same.</div>
+    <div class="instructions">Test passes if the two boxes below look exactly the same.</div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2.html
index 43095681..85aec46 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2.html
@@ -30,7 +30,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none">Test passes if the two boxes below look exactly the same.</div>
+    <div class="instructions">Test passes if the two boxes below look exactly the same.</div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1-expected.html
index 26ba7d4..a34d09b 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1.html
index a546aa4..76da57c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-1.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2-expected.html
index a1fa7c1..80f36183 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2.html
index a431606..ce41983 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-following-2.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1-expected.html
index f19a3926..5e39eab 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1.html
index b5ef1b8f94..46772de 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-1.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2-expected.html
index a1fa7c1..80f36183 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2.html
index 8b084d0..1921157 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-letter-preceding-2.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1-expected.html
index cf46b1c..ad15d46 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1.html
index 97bf3701..ff56673 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-1.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2-expected.html
index e5e7b73..d0f1097 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2-expected.html
@@ -18,7 +18,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2.html
index 9a94cd66..62a3b50f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-number-following-2.html
@@ -24,7 +24,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run-expected.html
index c933c17..d7967c7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run.html
index 48ea70e..bff339e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-surrounding-run.html
@@ -27,7 +27,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped-expected.html
index 9c86593..9859de4 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped.html
index aa9fd1a5..3e21fcb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#xA0; - Non-breaking space.
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container-expected.html
index b1c878e..0c74ecf 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container.html
index d886930..f133a95 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-bdi-element/bdi-paragraph-level-container.html
@@ -25,7 +25,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-expected.html
index b15742d..f07c077 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-expected.html
@@ -8,7 +8,7 @@
     <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-br-element"/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       A Hebrew letter and a full stop: &#x05d0;.&lrm;
       <br />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors-expected.html
index ec44826..c2dd4da 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors-expected.html
@@ -17,7 +17,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D8; - The first nine Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors.html
index 9a29454..89e7f2f 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors.html
@@ -29,7 +29,7 @@
     </style>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the two boxes below look exactly the same.</p></div>
+    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     <div class="comments">
       Key to entities used below:
         &#x05D0; ... &#x05D8; - The first nine Hebrew letters (strongly RTL).
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi.html
index 6a19b9e..1dfa683 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/text-level-semantics/the-br-element/br-bidi.html
@@ -12,7 +12,7 @@
       content="A br element should separate paragraphs for the purposes of the Unicode bidirectional algorithm."/>
   </head>
   <body>
-    <div class="instructions" style="display:none"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
+    <div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
     <div class="test">
       A Hebrew letter and a full stop: &#x05d0;.
       <br />
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-api.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-api.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-api.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-api.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-deny.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-deny.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-deny.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-deny.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-empty-option-param.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-empty-option-param.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-empty-option-param.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-empty-option-param.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-optional-constraint.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-optional-constraint.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-optional-constraint.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-optional-constraint.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-trivial-constraint.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-trivial-constraint.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-trivial-constraint.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-trivial-constraint.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-unknownkey-option-param.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-enumerateDevices.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-enumerateDevices.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-enumerateDevices.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-enumerateDevices.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-getUserMedia.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-getUserMedia.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-getUserMedia.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaDevices-getUserMedia.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-preload-none.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-add-audio-track.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-add-audio-track.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-add-audio-track.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-add-audio-track.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-audio-only.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-audio-only.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-audio-only.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-audio-only.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-finished-add.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-finished-add.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-finished-add.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-finished-add.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-gettrackid.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-gettrackid.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-gettrackid.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-gettrackid.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-id-manual.https.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-id-manual.https.html
new file mode 100644
index 0000000..88f0954
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-id-manual.https.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html>
+<head>
+<title>getUserMedia() creates a stream with a proper id</title>
+<link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/>
+<link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-MediaStream-id">
+</head>
+<body>
+<p class="instructions">When prompted, accept to share your video stream.</p>
+<h1 class="instructions">Description</h1>
+<p class="instructions">This test checks that the MediaStream object returned by
+the success callback in getUserMedia has a correct id.</p>
+
+<div id='log'></div>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["navigator"], "name":"getUserMedia"}]'></script>
+<script>
+var t = async_test("Tests that a MediaStream with a correct id is returned");
+var allowedCharacters = /^[\u0021\u0023-\u0027\u002A-\u002B\u002D-\u002E\u0030-\u0039\u0041-\u005A\u005E-\u007E]*$/;
+if (window.navigator.getUserMedia) {
+  navigator.getUserMedia({video:true}, function (stream) {
+  t.step(function () {
+     assert_true(stream.id.length === 36, "the media stream id has 36 characters");
+     assert_regexp_match(stream.id, allowedCharacters, "the media stream id uses the set of allowed characters");
+  });
+  t.done();
+}, function(error) {});
+}
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-removetrack.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-removetrack.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-removetrack.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-removetrack.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-video-only.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-video-only.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-video-only.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-video-only.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-end.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-end.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-end.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-end.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-id.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-id.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-id.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-id.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.https.html
similarity index 100%
rename from third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.html
rename to third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_properties_mouse-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_properties_mouse-manual.html
new file mode 100644
index 0000000..adea65b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_properties_mouse-manual.html
@@ -0,0 +1,76 @@
+<!doctype html>
+<html>
+    <head>
+        <title>Pointer Events properties tests</title>
+        <meta name="viewport" content="width=device-width">
+        <link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+        <!-- Additional helper script for common checks across event types -->
+        <script type="text/javascript" src="pointerevent_support.js"></script>
+        <script>
+            var detected_pointertypes = {};
+            var detected_eventTypes = {};
+            var test_pointerEvent = async_test("pointerdown event received");
+            // showPointerTypes is defined in pointerevent_support.js
+            // Requirements: the callback function will reference the test_pointerEvent object and
+            // will fail unless the async_test is created with the var name "test_pointerEvent".
+            add_completion_callback(showPointerTypes);
+
+            function run() {
+                var square1 = document.getElementById("square1");
+                var rectSquare1 = square1.getBoundingClientRect();
+                var pointerover_event;
+
+                var eventList = ['pointerenter', 'pointerover', 'pointermove', 'pointerdown', 'pointerup', 'pointerout', 'pointerleave'];
+                eventList.forEach(function(eventName) {
+                    on_event(square1, eventName, function (event) {
+                        if (detected_eventTypes[event.type])
+                            return;
+                        detected_pointertypes[event.pointerType] = true;
+                        test(function () {
+                            assert_equals(event.pointerType, 'mouse', 'pointerType should be mouse');
+                        }, event.type + ".pointerType attribute is correct.");
+
+                        if (event.type != 'pointerout' && event.type != 'pointerleave' ) {
+                            test(function () {
+                                assert_true(event.clientX >= rectSquare1.left && event.clientX < rectSquare1.right, "ClientX should be in the boundaries of the black box");
+                            }, event.type + ".clientX attribute is correct.");
+                            test(function () {
+                              assert_true(event.clientY >= rectSquare1.top && event.clientY < rectSquare1.bottom, "ClientY should be in the boundaries of the black box");
+                            }, event.type + ".clientY attribute is correct.");
+                        } else {
+                            test(function () {
+                                assert_true(event.clientX < rectSquare1.left || event.clientX > rectSquare1.right - 1 || event.clientY < rectSquare1.top || event.clientY > rectSquare1.bottom - 1, "ClientX/Y should be out of the boundaries of the black box");
+                            }, event.type + "'s ClientX and ClientY attributes are correct.");
+                        }
+
+                        test(function () {
+                            assert_equals(event.isPrimary, true, "isPrimary should be true");
+                        }, event.type + ".isPrimary attribute is correct.");
+
+                        check_PointerEvent(event);
+                        detected_eventTypes[event.type] = true;
+                        if (Object.keys(detected_eventTypes).length == eventList.length)
+                            test_pointerEvent.done();
+                    });
+                });
+            }
+        </script>
+    </head>
+    <body onload="run()">
+        <h1>Pointer Events pointerdown tests</h1>
+        <h4>
+            Test Description: This test checks the properties of mouse pointer events. Move your mouse over the black square and click on it. Then move it off the black square.
+        </h4>
+        Test passes if the proper behavior of the events is observed.
+        <div id="square1" class="square"></div>
+        <div class="spacer"></div>
+        <div id="complete-notice">
+            <p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
+            <p>Refresh the page to run the tests again with a different pointer type.</p>
+        </div>
+        <div id="log"></div>
+    </body>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_styles.css b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_styles.css
index 55265af..70b037a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_styles.css
+++ b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_styles.css
@@ -1,3 +1,20 @@
+.spacer {
+height: 100px;
+}
+
+#square1 {
+background: black;
+top: 150px;
+left: 100px;
+}
+
+.square {
+height: 20px;
+width: 20px;
+position: absolute;
+padding: 0px;
+}
+
 #target0 {
 background: black;
 color: white;
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size-expected.html
new file mode 100644
index 0000000..f449ce992
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size-expected.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<title>Historical quirk: list item bullet size</title>
+<style>
+p { margin:0 }
+#test { font-size:3em; margin-top:0 }
+</style>
+<p>There should be a normal-size bullet and a big bullet below.</p>
+<ul>
+ <li>&nbsp;
+</ul>
+<ul id=test>
+ <li>&nbsp;
+</ul>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size.html b/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size.html
new file mode 100644
index 0000000..bf996ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/quirks-mode/historical/list-item-bullet-size.html
@@ -0,0 +1,16 @@
+<!--quirks-->
+<title>Historical quirk: list item bullet size</title>
+<link rel=help href=https://quirks.spec.whatwg.org/#goals>
+<meta name=assert content="List item bullet size quirk must not be supported.">
+<link rel=match href=list-item-bullet-size-ref.html>
+<style>
+p { margin:0 }
+#test { font-size:3em; margin-top:0 }
+</style>
+<p>There should be a normal-size bullet and a big bullet below.</p>
+<ul>
+ <li>&nbsp;
+</ul>
+<ul id=test>
+ <li>&nbsp;
+</ul>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
new file mode 100644
index 0000000..5b9932b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
@@ -0,0 +1,256 @@
+<!DOCTYPE html>
+<title>Shadow DOM: Event path and Event.composedPath() (with related target)</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+
+<div id="test1">
+  <div id="target"></div>
+  <div id="related"></div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test1);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related }));
+  let path = ['target', 'test1'];
+  assert_event_path_equals(log, [['target', 'target', 'related', path],
+                                 ['test1', 'target', 'related', path]]);
+}, 'Event path for an event with a relatedTarget. relatedTarget != target.');
+</script>
+
+<script>
+test(() => {
+  let n = createTestTree(test1);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
+  let path = ['target', 'test1'];
+  assert_event_path_equals(log, [['target', 'target', 'target', path],
+                                 ['test1', 'target', 'target', path]]);
+}, 'Event path for an event with a relatedTarget. Event shoul be dispatched if 1) target and relatedTarget are same, and 2) they are not in a shadow tree.');
+</script>
+
+<div id="test2">
+  <div id="host">
+    <template id="sr" data-mode="open">
+      <div id="target"></div>
+      <div id="related"></div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test2);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related }));
+  let path = ['target', 'sr'];
+  assert_event_path_equals(log, [['target', 'target', 'related', path],
+                                 ['sr', 'target', 'related', path]]);
+}, 'Event path for an event with a relatedTarget. Event should stop at the shadow root');
+
+test(() => {
+  let n = createTestTree(test2);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
+  assert_event_path_equals(log, []);
+}, 'Event path for an event with a relatedTarget. Event should not be dispatched if 1) target and relatedTarget are same, and 2) both are in a shadow tree.');
+</script>
+
+<div id="test3_1">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <div id="target1"></div>
+    </template>
+  </div>
+</div>
+
+<div id="test3_2">
+  <div id="host2">
+    <template id="sr2" data-mode="open">
+      <div id="target2"></div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n1 = createTestTree(test3_1);
+  let n2 = createTestTree(test3_2);
+  let log = dispatchEventWithLog(n1, n1.target1, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n2.target2 }));
+  let path = ['target1', 'sr1', 'host1', 'test3_1'];
+  assert_event_path_equals(log, [['target1', 'target1', 'host2', path],
+                                 ['sr1',     'target1', 'host2', path],
+                                 ['host1',   'host1',   'host2', path],
+                                 ['test3_1', 'host1',   'host2', path]]);
+}, 'Event path for an event with a relatedTarget. target and relaterTarget do not share any shadow-including ancestor. target is in a shadow tree.');
+
+test(() => {
+  let n1 = createTestTree(test3_1);
+  let n2 = createTestTree(test3_2);
+  let log = dispatchEventWithLog(n1, n1.host1, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n2.target2 }));
+  let path = ['host1', 'test3_1'];
+  assert_event_path_equals(log, [['host1',   'host1',   'host2', path],
+                                 ['test3_1', 'host1',   'host2', path]]);
+}, 'Event path for an event with a relatedTarget. target and relaterTarget do not share any shadow-including ancestor. target is not in a shadow tree');
+</script>
+
+<div id="test4">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <div id="host2">
+        <template id="sr2" data-mode="open">
+          <div id="target"></div>
+        </template>
+      </div>
+      <div id="host3">
+        <template id="sr3" data-mode="open">
+          <div id="related"></div>
+        </template>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test4);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related }));
+  let path = ['target', 'sr2', 'host2', 'sr1'];
+  assert_event_path_equals(log, [['target', 'target', 'host3', path],
+                                 ['sr2', 'target', 'host3', path],
+                                 ['host2', 'host2', 'host3', path],
+                                 ['sr1', 'host2', 'host3', path]]);
+}, 'Event path for an event with a relatedTarget. target and relaterTarget share the same shadow-including ancestor. Both are in shadow trees.');
+
+test(() => {
+  let n = createTestTree(test4);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.host1 }));
+  let path = ['target', 'sr2', 'host2', 'sr1'];
+  assert_event_path_equals(log, [['target', 'target', 'host1', path],
+                                 ['sr2', 'target', 'host1', path],
+                                 ['host2', 'host2', 'host1', path],
+                                 ['sr1', 'host2', 'host1', path]]);
+}, 'Event path for an event with a relatedTarget. relaterTarget is a shadow-including ancestor of target.');
+
+test(() => {
+  let n = createTestTree(test4);
+  let log = dispatchEventWithLog(n, n.host1, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
+  assert_event_path_equals(log, []);
+}, 'Event path for an event with a relatedTarget. target is a shadow-including ancestor of relatedTarget.');
+</script>
+
+<div id="test5">
+  <div id="host">
+    <template id="sr" data-mode="open">
+      <slot id="slot"></slot>
+      <div id="related"></div>
+    </template>
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test5);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related }));
+  let path = ['target', 'slot', 'sr', 'host', 'test5'];
+  assert_event_path_equals(log, [['target', 'target', 'host', path],
+                                 ['slot', 'target', 'related', path],
+                                 ['sr', 'target', 'related', path],
+                                 ['host', 'target', 'host', path],
+                                 ['test5', 'target', 'host', path]]);
+}, 'Event path for an event with a relatedTarget. target is assigned to a slot.');
+
+test(() => {
+  let n = createTestTree(test5);
+  let log = dispatchEventWithLog(n, n.related, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
+  let path = ['related', 'sr', 'host', 'test5'];
+  assert_event_path_equals(log, [['related', 'related', 'target', path],
+                                 ['sr', 'related', 'target', path],
+                                 ['host', 'host', 'target', path],
+                                 ['test5', 'host', 'target', path]]);
+}, 'Event path for an event with a relatedTarget. relatedTarget is assigned to a slot.');
+</script>
+
+<div id="test6">
+  <div id="host0">
+    <template id="sr0" data-mode="open">
+      <div id="host1">
+        <template id="sr1" data-mode="open">
+          <div id="host2">
+            <template id="sr2" data-mode="open">
+              <slot id="slot2"></slot>
+              <div id="related2"></div>
+            </template>
+            <div id="related1"></div>
+            <div id="d1">
+              <slot id="slot1"></slot>
+            </div>
+          </div>
+        </template>
+        <div id="host3">
+          <template id="sr3" data-mode="open">
+            <div id="host4">
+              <template id="sr4" data-mode="open">
+                <div id="host5">
+                  <template id="sr5" data-mode="open">
+                    <slot id="slot5"></slot>
+                  </template>
+                  <slot id="slot4"></slot>
+                </div>
+              </template>
+              <div id="target"></div>
+            </div>
+          </template>
+        </div>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test6);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related1 }));
+  let path = ['target', 'slot4', 'slot5', 'sr5', 'host5', 'sr4', 'host4', 'sr3', 'host3', 'slot1', 'd1', 'slot2', 'sr2', 'host2', 'sr1', 'host1', 'sr0'];
+  assert_event_path_equals(log, [['target',  'target', 'host1',    path],
+                                 ['slot4',   'target', 'host1',    path],
+                                 ['slot5',   'target', 'host1',    path],
+                                 ['sr5',     'target', 'host1',    path],
+                                 ['host5',   'target', 'host1',    path],
+                                 ['sr4',     'target', 'host1',    path],
+                                 ['host4',   'target', 'host1',    path],
+                                 ['sr3',     'target', 'host1',    path],
+                                 ['host3',   'host3',  'host1',    path],
+                                 ['slot1',   'host3',  'related1', path],
+                                 ['d1'   ,   'host3',  'related1', path],
+                                 ['slot2',   'host3',  'related1', path],
+                                 ['sr2',     'host3',  'related1', path],
+                                 ['host2',   'host3',  'related1', path],
+                                 ['sr1',     'host3',  'related1', path],
+                                 ['host1',   'host3',  'host1',    path],
+                                 ['sr0',     'host3',  'host1'   , path]]);
+}, 'Event path for an event with a relatedTarget. Event should be dispatched at every slots.');
+
+test(() => {
+  let n = createTestTree(test6);
+  let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.related2 }));
+  let path = ['target', 'slot4', 'slot5', 'sr5', 'host5', 'sr4', 'host4', 'sr3', 'host3', 'slot1', 'd1', 'slot2', 'sr2', 'host2', 'sr1', 'host1', 'sr0'];
+  assert_event_path_equals(log, [['target',  'target', 'host1',    path],
+                                 ['slot4',   'target', 'host1',    path],
+                                 ['slot5',   'target', 'host1',    path],
+                                 ['sr5',     'target', 'host1',    path],
+                                 ['host5',   'target', 'host1',    path],
+                                 ['sr4',     'target', 'host1',    path],
+                                 ['host4',   'target', 'host1',    path],
+                                 ['sr3',     'target', 'host1',    path],
+                                 ['host3',   'host3',  'host1',    path],
+                                 ['slot1',   'host3',  'host2',    path],
+                                 ['d1'   ,   'host3',  'host2',    path],
+                                 ['slot2',   'host3',  'related2', path],
+                                 ['sr2',     'host3',  'related2', path],
+                                 ['host2',   'host3',  'host2',    path],
+                                 ['sr1',     'host3',  'host2',    path],
+                                 ['host1',   'host3',  'host1',    path],
+                                 ['sr0',     'host3',  'host1'   , path]]);
+}, 'Event path for an event with a relatedTarget. Event should be dispatched at every slots. relatedTarget should be correctly retargeted.');
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path.html
new file mode 100644
index 0000000..dac9c5b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path.html
@@ -0,0 +1,281 @@
+<!DOCTYPE html>
+<title>Shadow DOM: Event path and Event.composedPath()</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+
+<div id="test1">
+  <div id="d1">
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test1);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'd1', 'test1'];
+  assert_event_path_equals(log,
+                           [['target', 'target', null, path],
+                            ['d1', 'target', null, path],
+                            ['test1', 'target', null, path]]);
+}, 'Event Path without ShadowRoots.');
+</script>
+
+<div id="test2">
+  <div id="host">
+    <template id="sr" data-mode="open">
+      <div id="target"></div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test2);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'sr', 'host', 'test2'];
+  assert_event_path_equals(log,
+                           [['target', 'target', null, path],
+                            ['sr', 'target', null, path],
+                            ['host', 'host', null, path],
+                            ['test2', 'host', null, path]]);
+}, 'Event Path with an open ShadowRoot.');
+</script>
+
+<div id="test3">
+  <div id="host">
+    <template id="sr" data-mode="closed">
+      <div id="target"></div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test3);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target','sr', 'host', 'test3'];
+  let path1 = ['host', 'test3'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['sr', 'target', null, path],
+                                 ['host', 'host', null, path1],
+                                 ['test3', 'host', null, path1]]);
+}, 'Event Path with a closed ShadowRoot.');
+</script>
+
+<div id="test4">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <div id="host2">
+        <template id="sr2" data-mode="open">
+          <div id="target"></div>
+        </template>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test4);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'sr2', 'host2', 'sr1', 'host1', 'test4'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'host2', null, path],
+                                 ['sr1', 'host2', null, path],
+                                 ['host1', 'host1', null, path],
+                                 ['test4', 'host1', null, path]]);
+}, 'Event Path with nested ShadowRoots: open > open.');
+</script>
+
+<div id="test5">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <div id="host2">
+        <template id="sr2" data-mode="closed">
+          <div id="target"></div>
+        </template>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test5);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'sr2', 'host2', 'sr1', 'host1', 'test5'];
+  let path1 = ['host2', 'sr1', 'host1', 'test5'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'host2', null, path1],
+                                 ['sr1', 'host2', null, path1],
+                                 ['host1', 'host1', null, path1],
+                                 ['test5', 'host1', null, path1]]);
+}, 'Event Path with nested ShadowRoots: open > closed.');
+</script>
+
+<div id="test6">
+  <div id="host1">
+    <template id="sr1" data-mode="closed">
+      <div id="host2">
+        <template id="sr2" data-mode="open">
+          <div id="target"></div>
+        </template>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test6);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'sr2', 'host2', 'sr1', 'host1', 'test6'];
+  let path1 = ['host1', 'test6'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'host2', null, path],
+                                 ['sr1', 'host2', null, path],
+                                 ['host1', 'host1', null, path1],
+                                 ['test6', 'host1', null, path1]]);
+}, 'Event Path with nested ShadowRoots: closed > open.');
+</script>
+
+<div id="test7">
+  <div id="host1">
+    <template id="sr1" data-mode="closed">
+      <div id="host2">
+        <template id="sr2" data-mode="closed">
+          <div id="target"></div>
+        </template>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test7);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'sr2', 'host2', 'sr1', 'host1', 'test7'];
+  let path1 = ['host2', 'sr1', 'host1', 'test7'];
+  let path2 = ['host1', 'test7'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'host2', null, path1],
+                                 ['sr1', 'host2', null, path1],
+                                 ['host1', 'host1', null, path2],
+                                 ['test7', 'host1', null, path2]]);
+}, 'Event Path with nested ShadowRoots: closed > closed.');
+</script>
+
+<div id="test8">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <slot id="slot"></slot>
+    </template>
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test8);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target','slot', 'sr1', 'host1', 'test8'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['slot', 'target', null, path],
+                                 ['sr1', 'target', null, path],
+                                 ['host1', 'target', null, path],
+                                 ['test8', 'target', null, path]]);
+}, 'Event Path with a slot in an open Shadow Root.');
+</script>
+
+<div id="test9">
+  <div id="host1">
+    <template id="sr1" data-mode="closed">
+      <slot id="slot"></slot>
+    </template>
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test9);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'slot', 'sr1', 'host1', 'test9'];
+  let path1 = ['target', 'host1', 'test9'];
+  assert_event_path_equals(log, [['target', 'target', null, path1],
+                                 ['slot', 'target', null, path],
+                                 ['sr1', 'target', null, path],
+                                 ['host1', 'target', null, path1],
+                                 ['test9', 'target', null, path1]]);
+}, 'Event Path with a slot in a closed Shadow Root.');
+</script>
+
+<div id="test10">
+  <div id="host1">
+    <template id="sr1" data-mode="open">
+      <div id="host2">
+        <template id="sr2" data-mode="open">
+          <slot id="slot2"></slot>
+        </template>
+        <slot id="slot1"></slot>
+      </div>
+    </template>
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test10);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target','slot1', 'slot2', 'sr2', 'host2', 'sr1', 'host1', 'test10'];
+  assert_event_path_equals(log, [['target', 'target', null, path],
+                                 ['slot1', 'target', null, path],
+                                 ['slot2', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'target', null, path],
+                                 ['sr1', 'target', null, path],
+                                 ['host1', 'target', null, path],
+                                 ['test10', 'target', null, path]]);
+}, 'Event Path with slots in nested ShadowRoots: open > open.');
+</script>
+
+<div id="test11">
+  <div id="host1">
+    <template id="sr1" data-mode="closed">
+      <div id="host2">
+        <template id="sr2" data-mode="closed">
+          <slot id="slot2"></slot>
+        </template>
+        <slot id="slot1"></slot>
+      </div>
+    </template>
+    <div id="target"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test11);
+  let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
+  let path = ['target', 'slot1', 'slot2', 'sr2', 'host2', 'sr1', 'host1', 'test11'];
+  let path1 = ['target', 'slot1', 'host2', 'sr1', 'host1', 'test11'];
+  let path2 = ['target', 'host1', 'test11'];
+  assert_event_path_equals(log, [['target', 'target', null, path2],
+                                 ['slot1', 'target', null, path1],
+                                 ['slot2', 'target', null, path],
+                                 ['sr2', 'target', null, path],
+                                 ['host2', 'target', null, path1],
+                                 ['sr1', 'target', null, path1],
+                                 ['host1', 'target', null, path2],
+                                 ['test11', 'target', null, path2]]);
+}, 'Event Path with slots in nested ShadowRoots: closed > closed.');
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed.html
new file mode 100644
index 0000000..7d3d17b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<title>Shadow DOM: Event composed</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+<div id=host>
+  <template id=shadowRoot data-mode=open>
+    <div id=target></div>
+  </template>
+</div>
+<script>
+test(() => {
+  const e = new Event('test');
+  assert_equals(e.composed, false);
+}, 'A new events composed value should be set to false by default.');
+
+test(() => {
+  const e = new Event('test', { composed: true });
+  assert_equals(e.composed, true);
+}, 'Users should be able to set a composed value.');
+
+function assertScoped(event) {
+  let nodes = createTestTree(host);
+  let log = dispatchEventWithLog(nodes, nodes.target, event);
+  let expectedPath = ['target', 'shadowRoot'];
+  assert_event_path_equals(log,
+                           [['target', 'target', null, expectedPath],
+                            ['shadowRoot', 'target', null, expectedPath]]);
+}
+
+function assertComposed(event) {
+  let nodes = createTestTree(host);
+  let log = dispatchEventWithLog(nodes, nodes.target, event);
+  let expectedPath = ['target', 'shadowRoot', 'host'];
+  assert_event_path_equals(log,
+                           [['target', 'target', null, expectedPath],
+                            ['shadowRoot', 'target', null, expectedPath],
+                            ['host', 'host', null, expectedPath]]);
+}
+
+test(() => {
+  assertScoped(new Event('test', { bubbles: true }));
+}, 'An event should be scoped by default');
+
+test(() => {
+  assertComposed(new Event('test', { bubbles: true, composed: true }));
+}, 'An event should not be scoped if composed is specified');
+
+test(() => {
+  assertScoped(new MouseEvent('click', { bubbles: true }));
+}, 'A synthetic MouseEvent should be scoped by default');
+
+test(() => {
+  assertComposed(new MouseEvent('click', { bubbles: true, composed: true }));
+}, 'A synthetic MouseEvent with composed=true should not be scoped');
+
+test(() => {
+  assertScoped(new FocusEvent('focus', { bubbles: true }));
+}, 'A synthetic FocusEvent should be scoped by default');
+
+test(() => {
+  assertComposed(new FocusEvent('focus', { bubbles: true, composed: true }));
+}, 'A synthetic FocusEvent with composed=true should not be scoped');
+
+function assertUAComposed(eventType, callback) {
+  let nodes = createTestTree(host);
+  let log = dispatchUAEventWithLog(nodes, nodes.target, eventType, callback);
+  let expectedPath = ['target', 'shadowRoot', 'host'];
+  assert_event_path_equals(log,
+                           [['target', 'target', null, expectedPath],
+                            ['shadowRoot', 'target', null, expectedPath],
+                            ['host', 'host', null, expectedPath]]);
+}
+
+test(() => {
+  assertUAComposed('click', (target) => { target.click(); });
+}, 'A UA click event should not be scoped');
+
+// TODO(hayato): Test other UIEvents.
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/resources/shadow-dom.js b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/resources/shadow-dom.js
new file mode 100644
index 0000000..3e55684
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/resources/shadow-dom.js
@@ -0,0 +1,130 @@
+function removeWhiteSpaceOnlyTextNodes(node)
+{
+  for (var i = 0; i < node.childNodes.length; i++) {
+    var child = node.childNodes[i];
+    if (child.nodeType === Node.TEXT_NODE && child.nodeValue.trim().length == 0) {
+      node.removeChild(child);
+      i--;
+    } else if (child.nodeType === Node.ELEMENT_NODE || child.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
+      removeWhiteSpaceOnlyTextNodes(child);
+    }
+  }
+  if (node.shadowRoot) {
+    removeWhiteSpaceOnlyTextNodes(node.shadowRoot);
+  }
+}
+
+function createTestTree(node) {
+
+  let ids = {};
+
+  function attachShadowFromTemplate(template) {
+    let parent = template.parentNode;
+    parent.removeChild(template);
+    let shadowRoot;
+    if (template.getAttribute('data-mode') === 'v0') {
+      // For legacy Shadow DOM
+      shadowRoot = parent.createShadowRoot();
+    } else {
+      shadowRoot = parent.attachShadow({mode: template.getAttribute('data-mode')});
+    }
+    let id = template.id;
+    if (id) {
+      shadowRoot.id = id;
+      ids[id] = shadowRoot;
+    }
+    shadowRoot.appendChild(document.importNode(template.content, true));
+    return shadowRoot;
+  }
+
+  function walk(root) {
+    if (root.id) {
+      ids[root.id] = root;
+    }
+    for (let e of Array.from(root.querySelectorAll('[id]'))) {
+      ids[e.id] = e;
+    }
+    for (let e of Array.from(root.querySelectorAll('template'))) {
+      walk(attachShadowFromTemplate(e));
+    }
+  }
+
+  walk(node.cloneNode(true));
+  return ids;
+}
+
+function dispatchEventWithLog(nodes, target, event) {
+
+  function labelFor(e) {
+    return e.id || e.tagName;
+  }
+
+  let log = [];
+  let attachedNodes = [];
+  for (let label in nodes) {
+    let startingNode = nodes[label];
+    for (let node = startingNode; node; node = node.parentNode) {
+      if (attachedNodes.indexOf(node) >= 0)
+        continue;
+      let id = node.id;
+      if (!id)
+        continue;
+      attachedNodes.push(node);
+      node.addEventListener(event.type, (e) => {
+        // Record [currentTarget, target, relatedTarget, composedPath()]
+        log.push([id,
+                  labelFor(e.target),
+                  e.relatedTarget ? labelFor(e.relatedTarget) : null,
+                  e.composedPath().map((n) => {
+                    return labelFor(n);
+                  })]);
+      });
+    }
+  }
+  target.dispatchEvent(event);
+  return log;
+}
+
+// TODO(hayato): Merge this into dispatchEventWithLog
+function dispatchUAEventWithLog(nodes, target, eventType, callback) {
+
+  function labelFor(e) {
+    return e.id || e.tagName;
+  }
+
+  let log = [];
+  let attachedNodes = [];
+  for (let label in nodes) {
+    let startingNode = nodes[label];
+    for (let node = startingNode; node; node = node.parentNode) {
+      if (attachedNodes.indexOf(node) >= 0)
+        continue;
+      let id = node.id;
+      if (!id)
+        continue;
+      attachedNodes.push(node);
+      node.addEventListener(eventType, (e) => {
+        // Record [currentTarget, target, relatedTarget, composedPath()]
+        log.push([id,
+                  labelFor(e.target),
+                  e.relatedTarget ? labelFor(e.relatedTarget) : null,
+                  e.composedPath().map((n) => {
+                    return labelFor(n);
+                  })]);
+      });
+    }
+  }
+  callback(target);
+  return log;
+}
+
+// This function assumes that testharness.js is available.
+function assert_event_path_equals(actual, expected) {
+  assert_equals(actual.length, expected.length);
+  for (let i = 0; i < actual.length; ++i) {
+    assert_equals(actual[i][0], expected[i][0], 'currentTarget at ' + i + ' should be same');
+    assert_equals(actual[i][1], expected[i][1], 'target at ' + i + ' should be same');
+    assert_equals(actual[i][2], expected[i][2], 'relatedTarget at ' + i + ' should be same');
+    assert_array_equals(actual[i][3], expected[i][3], 'composedPath at ' + i + ' should be same');
+  }
+}
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slotchange.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slotchange.html
new file mode 100644
index 0000000..6c5e932
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slotchange.html
@@ -0,0 +1,270 @@
+<!DOCTYPE html>
+<title>Shadow DOM: slotchange Events</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+
+<div id="test1">
+  <div id="host1">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+function doneIfSlotChange(slots, test) {
+  let fired = new Set();
+  for (let slot of slots) {
+    slot.addEventListener('slotchange', test.step_func((e) => {
+      assert_false(fired.has(slot.id));
+      fired.add(slot.id);
+      if (fired.size == slots.length) {
+        test.done();
+      }
+    }))
+  }
+}
+
+async_test((test) => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  doneIfSlotChange([n.s1], test);
+
+  let d1 = document.createElement('div');
+  d1.setAttribute('slot', 'slot1');
+  n.host1.appendChild(d1);
+}, 'slotchange event: Append a child to a host.');
+
+async_test((test) => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.c1.remove();
+}, 'slotchange event: Remove a child from a host.');
+
+async_test((test) => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  n.c1.remove();
+
+  doneIfSlotChange([n.s1], test);
+}, 'slotchange event: Remove a child before adding an event listener.');
+
+async_test((test) => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.c1.setAttribute('slot', 'slot-none');
+}, 'slotchange event: Change slot= attribute to make it un-assigned.');
+
+async_test((test) => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.s1.setAttribute('name', 'slot-none');
+}, 'slotchange event: Change slot\'s name= attribute so that none is assigned.');
+</script>
+
+<div id="test2">
+  <div id="host1">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+    </template>
+    <div id="c2" slot="slot2"></div>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test2);
+  removeWhiteSpaceOnlyTextNodes(n.test2);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.c2.setAttribute('slot', 'slot1');
+}, 'slotchange event: Change slot= attribute to make it assigned.');
+
+async_test((test) => {
+  let n = createTestTree(test2);
+  removeWhiteSpaceOnlyTextNodes(n.test2);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.s1.setAttribute('name', 'slot2');
+}, 'slotchange event: Change slot\'s name= attribute so that a node is assigned to the slot.');
+</script>
+
+<div id="test_fallback">
+  <div id="host1">
+    <template data-mode="open">
+      <slot id="s1"></slot>
+    </template>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test_fallback);
+  removeWhiteSpaceOnlyTextNodes(n.test_fallback);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.s1.appendChild(document.createElement('div'));
+}, 'slotchange event: Add a fallback content.');
+</script>
+
+<div id="test_fallback2">
+  <div id="host1">
+    <template data-mode="open">
+      <slot id="s1">
+        <div id="f1"></div>
+      </slot>
+    </template>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test_fallback2);
+  removeWhiteSpaceOnlyTextNodes(n.test_fallback2);
+
+  doneIfSlotChange([n.s1], test);
+
+  n.f1.remove();
+}, 'slotchange event: Remove a fallback content.');
+</script>
+
+<div id="test_fallback3">
+  <div id="host1">
+    <template data-mode="open">
+      <slot id="s2">
+        <slot id="s1">
+          <div id="f1"></div>
+        </slot>
+      </slot>
+    </template>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test_fallback3);
+  removeWhiteSpaceOnlyTextNodes(n.test_fallback3);
+
+  doneIfSlotChange([n.s1, n.s2], test);
+
+  n.s1.appendChild(document.createElement('div'));
+}, 'slotchange event: Add a fallback content to nested slots.');
+
+async_test((test) => {
+  let n = createTestTree(test_fallback3);
+  removeWhiteSpaceOnlyTextNodes(n.test_fallback3);
+
+  doneIfSlotChange([n.s1, n.s2], test);
+
+  n.f1.remove();
+}, 'slotchange event: Remove a fallback content from nested slots.');
+</script>
+
+<div id="test3">
+  <div id="host1">
+    <template id="shadowroot" data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test3);
+  removeWhiteSpaceOnlyTextNodes(n.test3);
+
+  doneIfSlotChange([n.s1], test);
+
+  let slot = document.createElement('slot');
+  slot.setAttribute('name', 'slot1');
+  n.shadowroot.insertBefore(slot, n.s1);
+}, "slotchange event: Insert a slot before an existing slot.");
+</script>
+
+<div id="test4">
+  <div id="host1">
+    <template id="shadowroot" data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+      <slot id="s2" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test4);
+  removeWhiteSpaceOnlyTextNodes(n.test4);
+
+  doneIfSlotChange([n.s2], test);
+
+  n.s1.remove();
+}, "slotchange event: Remove a preceding slot.");
+</script>
+
+<div id="test5">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  doneIfSlotChange([n.s1, n.s2], test);
+
+  n.c1.remove();
+}, "slotchange event: A slot is assigned to another slot.");
+</script>
+
+<div id="test6">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+  </div>
+</div>
+
+<script>
+async_test((test) => {
+  let n = createTestTree(test6);
+  removeWhiteSpaceOnlyTextNodes(n.test6);
+
+  doneIfSlotChange([n.s2], test);
+
+  n.s1.remove();
+}, "slotchange event: Even if distributed nodes do not change, slotchange should be fired if assigned nodes are changed.");
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots-fallback.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots-fallback.html
new file mode 100644
index 0000000..5bb6ce81
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots-fallback.html
@@ -0,0 +1,221 @@
+<!DOCTYPE html>
+<title>Shadow DOM: Slots and fallback contents</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+
+<div id="test1">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1">
+        <div id="f1"></div>
+      </slot>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test1);
+  removeWhiteSpaceOnlyTextNodes(n.test1);
+
+  assert_equals(n.f1.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
+}, 'Slots fallback: Basic.');
+</script>
+
+<div id="test2">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1">
+        <slot id="s2" name="slot2">
+          <div id="f1"></div>
+        </slot>
+      </slot>
+    </template>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test2);
+  removeWhiteSpaceOnlyTextNodes(n.test2);
+
+  assert_equals(n.f1.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_array_equals(n.s2.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f1]);
+}, 'Slots fallback: Slots in Slots.');
+</script>
+
+<div id="test3">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1">
+        <slot id="s2" name="slot2">
+          <div id="f1"></div>
+        </slot>
+      </slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test3);
+  removeWhiteSpaceOnlyTextNodes(n.test3);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.f1.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f1]);
+}, 'Slots fallback: Fallback contents should not be used if a node is assigned.');
+</script>
+
+<div id="test4">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1">
+        <slot id="s2" name="slot2">
+          <div id="f1"></div>
+        </slot>
+      </slot>
+    </template>
+    <div id="c1" slot="slot2"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test4);
+  removeWhiteSpaceOnlyTextNodes(n.test4);
+
+  assert_equals(n.c1.assignedSlot, n.s2);
+  assert_equals(n.f1.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_array_equals(n.s2.assignedNodes(), [n.c1]);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+}, 'Slots fallback: Slots in Slots: Assinged nodes should be used as fallback contents of another slot');
+</script>
+
+<div id="test5">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s4" name="slot4">
+            <slot id="s3" name="slot3">
+              <div id="f3"></div>
+            </slot>
+            <div id="f4"></div>
+          </slot>
+        </template>
+        <slot id="s2" name="slot2" slot="slot3">
+          <slot id="s1" name="slot1">
+            <div id="f1"></div>
+          </slot>
+          <div id="f2"></div>
+        </slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), []);
+  assert_array_equals(n.s3.assignedNodes(), [n.s2]);
+  assert_array_equals(n.s4.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1, n.f2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c1, n.f2]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.c1, n.f2, n.f4]);
+}, 'Slots fallback: Complex case.');
+
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  let d1 = document.createElement('div');
+  n.s2.appendChild(d1);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1, n.f2, d1]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c1, n.f2, d1]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.c1, n.f2, d1, n.f4]);
+}, 'Slots fallback: Mutation. Append fallback contents.');
+
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  n.f2.remove();
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.c1, n.f4]);
+}, 'Slots fallback: Mutation. Remove fallback contents.');
+
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  let d2 = document.createElement('div');
+  d2.setAttribute('slot', 'slot2');
+  n.host1.appendChild(d2);
+
+  assert_array_equals(n.s2.assignedNodes(), [d2]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [d2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [d2]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [d2, n.f4]);
+}, 'Slots fallback: Mutation. Assign a node to a slot so that fallback contens are no longer used.');
+
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  n.c1.remove();
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f1, n.f2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.f1, n.f2]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.f1, n.f2, n.f4]);
+}, 'Slots fallback: Mutation. Remove an assigned node from a slot so that fallback contens will be used.');
+
+test(() => {
+  let n = createTestTree(test5);
+  removeWhiteSpaceOnlyTextNodes(n.test5);
+
+  n.s1.remove();
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.f2]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.f2, n.f4]);
+}, 'Slots fallback: Mutation.  Remove a slot which is a fallback content of another slot.');
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots.html
new file mode 100644
index 0000000..b039a56
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots.html
@@ -0,0 +1,508 @@
+<!DOCTYPE html>
+<title>Shadow DOM: Slots and assignments</title>
+<meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/shadow-dom.js"></script>
+
+<div id="test_basic">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_basic);
+  removeWhiteSpaceOnlyTextNodes(n.test_basic);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+}, 'Slots: Basic.');
+</script>
+
+<div id="test_basic_closed">
+  <div id="host">
+    <template data-mode="closed">
+      <slot id="s1" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_basic_closed);
+  removeWhiteSpaceOnlyTextNodes(n.test_basic_closed);
+
+  assert_equals(n.c1.assignedSlot, null);
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+}, 'Slots: Slots in closed.');
+</script>
+
+<div id="test_slot_not_in_shadow">
+  <slot id="s1"></slot>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_slot_not_in_shadow);
+  removeWhiteSpaceOnlyTextNodes(n.test_slot_not_in_shadow);
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+}, 'Slots: Slots not in a shadow tree.');
+</script>
+
+<div id="test_slot_not_in_shadow_2">
+  <slot id="s1">
+    <div id="c1"></div>
+  </slot>
+  <slot id="s2">
+    <div id="c2"></div>
+    <slot id="s3">
+      <div id="c3_1"></div>
+      <div id="c3_2"></div>
+    </slot>
+  </slot>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_slot_not_in_shadow_2);
+  removeWhiteSpaceOnlyTextNodes(n.test_slot_not_in_shadow_2);
+
+  assert_equals(n.c1.assignedSlot, null);
+  assert_equals(n.c2.assignedSlot, null);
+  assert_equals(n.c3_1.assignedSlot, null);
+  assert_equals(n.c3_2.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_array_equals(n.s2.assignedNodes(), []);
+  assert_array_equals(n.s3.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c2, n.c3_1, n.c3_2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c3_1, n.c3_2]);
+}, 'Slots: Distributed nooes for Slots not in a shadow tree.');
+</script>
+
+<div id="test_slot_name_matching">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+      <slot id="s2" name="slot2"></slot>
+      <slot id="s3" name="xxx"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+    <div id="c2" slot="slot2"></div>
+    <div id="c3" slot="yyy"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_slot_name_matching);
+  removeWhiteSpaceOnlyTextNodes(n.test_slot_name_matching);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.c2.assignedSlot, n.s2);
+  assert_equals(n.c3.assignedSlot, null);
+}, 'Slots: Name matching');
+</script>
+
+<div id="test_no_direct_host_child">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+      <slot id="s2" name="slot1"></slot>
+    </template>
+    <div id="c1" slot="slot1"></div>
+    <div id="c2" slot="slot1"></div>
+    <div>
+      <div id="c3" slot="slot1"></div>
+    </div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_no_direct_host_child);
+  removeWhiteSpaceOnlyTextNodes(n.test_no_direct_host_child);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.c2.assignedSlot, n.s1);
+  assert_equals(n.c3.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1, n.c2]);
+}, 'Slots: No direct host child.');
+</script>
+
+<div id="test_default_slot">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1"></slot>
+      <slot id="s2"></slot>
+      <slot id="s3"></slot>
+    </template>
+    <div id="c1"></div>
+    <div id="c2" slot=""></div>
+    <div id="c3" slot="foo"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_default_slot);
+  removeWhiteSpaceOnlyTextNodes(n.test_default_slot);
+
+  assert_equals(n.c1.assignedSlot, n.s2);
+  assert_equals(n.c2.assignedSlot, n.s2);
+  assert_equals(n.c3.assignedSlot, null);
+}, 'Slots: Default Slot.');
+</script>
+
+<div id="test_slot_in_slot">
+  <div id="host">
+    <template data-mode="open">
+      <slot id="s1" name="slot1">
+        <slot id="s2" name="slot2"></slot>
+      </slot>
+    </template>
+    <div id="c1" slot="slot2"></div>
+    <div id="c2" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_slot_in_slot);
+  removeWhiteSpaceOnlyTextNodes(n.test_slot_in_slot);
+
+  assert_equals(n.c1.assignedSlot, n.s2);
+  assert_equals(n.c2.assignedSlot, n.s1);
+}, 'Slots: Slot in Slot does not matter in assignment.');
+</script>
+
+<div id="test_slot_is_assigned_to_slot">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_slot_is_assigned_to_slot);
+  removeWhiteSpaceOnlyTextNodes(n.test_slot_is_assigned_to_slot);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.s1.assignedSlot, n.s2);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), [n.s1]);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+}, 'Slots: Slot is assigned to another slot');
+</script>
+
+<div id="test_open_closed">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="closed">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_open_closed);
+  removeWhiteSpaceOnlyTextNodes(n.test_open_closed);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.s1.assignedSlot, null,
+                'A slot in a closed shadow tree should not be accessed via assignedSlot');
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), [n.s1]);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+}, 'Slots: Open > Closed.');
+</script>
+
+<div id="test_closed_closed">
+  <div id="host1">
+    <template data-mode="closed">
+      <div id="host2">
+        <template data-mode="closed">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_closed_closed);
+  removeWhiteSpaceOnlyTextNodes(n.test_closed_closed);
+
+  assert_equals(n.c1.assignedSlot, null,
+                'A slot in a closed shadow tree should not be accessed via assignedSlot');
+  assert_equals(n.s1.assignedSlot, null,
+                'A slot in a closed shadow tree should not be accessed via assignedSlot');
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), [n.s1]);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+}, 'Slots: Closed > Closed.');
+</script>
+
+<div id="test_closed_open">
+  <div id="host1">
+    <template data-mode="closed">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s2" name="slot2"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot2"></slot>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_closed_open);
+  removeWhiteSpaceOnlyTextNodes(n.test_closed_open);
+
+  assert_equals(n.c1.assignedSlot, null,
+                'A slot in a closed shadow tree should not be accessed via assignedSlot');
+  assert_equals(n.s1.assignedSlot, n.s2);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), [n.s1]);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c1]);
+}, 'Slots: Closed > Open.');
+</script>
+
+<div id="test_complex">
+  <div id="host1">
+    <template data-mode="open">
+      <div id="host2">
+        <template data-mode="open">
+          <slot id="s5" name="slot5"></slot>
+          <slot id="s6" name="slot6"></slot>
+          <slot id="s7"></slot>
+          <slot id="s8" name="slot8"></slot>
+        </template>
+        <slot id="s1" name="slot1" slot="slot5"></slot>
+        <slot id="s2" name="slot2" slot="slot6"></slot>
+        <slot id="s3"></slot>
+        <slot id="s4" name="slot4" slot="slot-none"></slot>
+        <div id="c5" slot="slot5"></div>
+        <div id="c6" slot="slot6"></div>
+        <div id="c7"></div>
+        <div id="c8" slot="slot-none"></div>
+      </div>
+    </template>
+    <div id="c1" slot="slot1"></div>
+    <div id="c2" slot="slot2"></div>
+    <div id="c3"></div>
+    <div id="c4" slot="slot-none"></div>
+  </div>
+</div>
+
+<script>
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  assert_equals(n.c1.assignedSlot, n.s1);
+  assert_equals(n.c2.assignedSlot, n.s2);
+  assert_equals(n.c3.assignedSlot, n.s3);
+  assert_equals(n.c4.assignedSlot, null);
+
+  assert_equals(n.s1.assignedSlot, n.s5);
+  assert_equals(n.s2.assignedSlot, n.s6);
+  assert_equals(n.s3.assignedSlot, n.s7);
+  assert_equals(n.s4.assignedSlot, null);
+
+  assert_equals(n.c5.assignedSlot, n.s5);
+  assert_equals(n.c6.assignedSlot, n.s6);
+  assert_equals(n.c7.assignedSlot, n.s7);
+  assert_equals(n.c8.assignedSlot, null);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes(), [n.c2]);
+  assert_array_equals(n.s3.assignedNodes(), [n.c3]);
+  assert_array_equals(n.s4.assignedNodes(), []);
+  assert_array_equals(n.s5.assignedNodes(), [n.s1, n.c5]);
+  assert_array_equals(n.s6.assignedNodes(), [n.s2, n.c6]);
+  assert_array_equals(n.s7.assignedNodes(), [n.s3, n.c7]);
+  assert_array_equals(n.s8.assignedNodes(), []);
+
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c2]);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c3]);
+  assert_array_equals(n.s4.assignedNodes({ flatten: true }), []);
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c1, n.c5]);
+  assert_array_equals(n.s6.assignedNodes({ flatten: true }), [n.c2, n.c6]);
+  assert_array_equals(n.s7.assignedNodes({ flatten: true }), [n.c3, n.c7]);
+  assert_array_equals(n.s8.assignedNodes({ flatten: true }), []);
+}, 'Slots: Complex case: Basi line.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  let d1 = document.createElement('div');
+  d1.setAttribute('slot', 'slot1');
+  n.host1.appendChild(d1);
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1, d1]);
+  assert_equals(d1.assignedSlot, n.s1);
+
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c1, d1, n.c5]);
+}, 'Slots: Mutation: appendChild.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.c1.setAttribute('slot', 'slot-none');
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_equals(n.c1.assignedSlot, null);
+
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c5]);
+}, 'Slots: Mutation: Change slot= attribute 1.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.c1.setAttribute('slot', 'slot2');
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_array_equals(n.s2.assignedNodes(), [n.c1, n.c2]);
+  assert_equals(n.c1.assignedSlot, n.s2);
+
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c5]);
+  assert_array_equals(n.s6.assignedNodes({ flatten: true }), [n.c1, n.c2, n.c6]);
+}, 'Slots: Mutation: Change slot= attribute 2.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.c4.setAttribute('slot', 'slot1');
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1, n.c4]);
+  assert_equals(n.c4.assignedSlot, n.s1);
+
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c1, n.c4, n.c5]);
+}, 'Slots: Mutation: Change slot= attribute 3.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.c1.remove();
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_equals(n.c1.assignedSlot, null);
+
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c5]);
+}, 'Slots: Mutation: Remove a child.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  let slot = document.createElement('slot');
+  slot.setAttribute('name', 'slot1');
+  n.host2.appendChild(slot);
+
+  assert_array_equals(slot.assignedNodes(), []);
+}, 'Slots: Mutation: Add a slot: after.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  let slot = document.createElement('slot');
+  slot.setAttribute('name', 'slot1');
+  n.host2.insertBefore(slot, n.s1);
+
+  assert_array_equals(slot.assignedNodes(), [n.c1]);
+  assert_equals(n.c1.assignedSlot, slot);
+
+  assert_array_equals(n.s7.assignedNodes(), [slot, n.s3, n.c7]);
+  assert_array_equals(n.s7.assignedNodes({ flatten: true }), [n.c1, n.c3, n.c7]);
+}, 'Slots: Mutation: Add a slot: before.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.s1.remove();
+
+  assert_array_equals(n.s1.assignedNodes(), []);
+  assert_equals(n.c1.assignedSlot, null);
+
+  assert_array_equals(n.s5.assignedNodes(), [n.c5]);
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c5]);
+}, 'Slots: Mutation: Remove a slot.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.s1.setAttribute('name', 'slot2');
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c2]);
+  assert_equals(n.c1.assignedSlot, null);
+  assert_equals(n.c2.assignedSlot, n.s1);
+
+  assert_array_equals(n.s5.assignedNodes(), [n.s1, n.c5]);
+  assert_array_equals(n.s5.assignedNodes({ flatten: true }), [n.c2, n.c5]);
+}, 'Slots: Mutation: Change slot name= attribute.');
+
+test(() => {
+  let n = createTestTree(test_complex);
+  removeWhiteSpaceOnlyTextNodes(n.test_complex);
+
+  n.s1.setAttribute('slot', 'slot6');
+
+  assert_array_equals(n.s1.assignedNodes(), [n.c1]);
+
+  assert_array_equals(n.s5.assignedNodes(), [n.c5]);
+  assert_array_equals(n.s6.assignedNodes(), [n.s1, n.s2, n.c6]);
+  assert_array_equals(n.s6.assignedNodes({ flatten: true }), [n.c1, n.c2, n.c6]);
+}, 'Slots: Mutation: Change slot slot= attribute.');
+</script>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001-expected.html
index 8682966..98c7a60 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001-expected.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <meta charset="utf-8">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
index 53cee0d0..8bd2bb6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <meta charset="utf-8">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001-expected.html
index d2b3169..d80fccc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001-expected.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <title>Shadow DOM Test: Basic shadow root (reference)</title>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001.html
index b93392bc..67843b0 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-001.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <title>Shadow DOM Test: Basic shadow root</title>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002-expected.html
index 8b3a689..77b472d7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002-expected.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <title>Shadow DOM Test: Basic distribution (reference)</title>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
index cce4195..24d5d01 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <meta charset="utf-8">
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001-expected.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001-expected.html
index 2e9c940..fdcc6e5 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001-expected.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001-expected.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <title>Shadow DOM Test</title>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001.html
index a56be977..7c27d98 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/untriaged/styles/not-apply-in-shadow-root-001.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- 
+<!--
 Distributed under both the W3C Test Suite License [1] and the W3C
 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
 policies and contribution forms [3].
@@ -7,7 +7,7 @@
 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
 [3] http://www.w3.org/2004/10/27-testcases
- -->
+-->
 <html>
 <head>
 <title>Shadow DOM Test - Tests CSS rules must not apply in a shadow root</title>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
index 10f99e96..1f75233 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
@@ -19,23 +19,43 @@
   {
     effect: null,
     timeline: null,
+    expectedTimeline: null,
+    expectedTimelineDescription: "null",
     description: "with null effect and null timeline"
   },
   {
     effect: null,
     timeline: document.timeline,
+    expectedTimeline: document.timeline,
+    expectedTimelineDescription: "document.timeline",
     description: "with null effect and non-null timeline"
   },
   {
+    effect: null,
+    expectedTimeline: document.timeline,
+    expectedTimelineDescription: "document.timeline",
+    description: "with null effect and no timeline parameter"
+  },
+  {
     effect: gEffect,
     timeline: null,
+    expectedTimeline: null,
+    expectedTimelineDescription: "null",
     description: "with non-null effect and null timeline"
   },
   {
     effect: gEffect,
     timeline: document.timeline,
+    expectedTimeline: document.timeline,
+    expectedTimelineDescription: "document.timeline",
     description: "with non-null effect and non-null timeline"
   },
+  {
+    effect: gEffect,
+    expectedTimeline: document.timeline,
+    expectedTimelineDescription: "document.timeline",
+    description: "with non-null effect and no timeline parameter"
+  },
 ];
 
 gTestArguments.forEach(function(args) {
@@ -47,9 +67,8 @@
     assert_equals(animation.effect, args.effect,
                   "Animation returns the same effect passed to " +
                   "the Constructor");
-    assert_equals(animation.timeline, args.timeline,
-                  "Animation returns the same timeline passed to " +
-                  "the Constructor");
+    assert_equals(animation.timeline, args.expectedTimeline,
+                  "Animation timeline should be " + args.expectedTimelineDescription);
     assert_equals(animation.playState, "idle",
                   "Animation.playState should be initially 'idle'");
   }, "Animation can be constructed " + args.description);
@@ -69,5 +88,20 @@
   assert_equals(effect.getComputedTiming().progress, 1.0);
 }, "Animation constructed by an effect with null target runs normally");
 
+async_test(function(t) {
+  var iframe = document.createElement('iframe');
+
+  iframe.addEventListener('load', t.step_func(function() {
+    var div = createDiv(t, iframe.contentDocument);
+    var effect = new KeyframeEffectReadOnly(div, null, 10000);
+    var anim = new Animation(effect);
+    assert_equals(anim.timeline, document.timeline);
+    iframe.remove();
+    t.done();
+  }));
+
+  document.body.appendChild(iframe);
+}, "Animation constructed with a keyframe that target element is in iframe");
+
 </script>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse-expected.txt
new file mode 100644
index 0000000..c78b28b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse-expected.txt
@@ -0,0 +1,14 @@
+This is a testharness.js-based test.
+PASS reverse() inverts playbackRate 
+PASS reverse() starts to play when pausing animation 
+PASS reverse() maintains the same currentTime 
+PASS reverse() when playbackRate > 0 and currentTime > effect end 
+PASS reverse() when playbackRate > 0 and currentTime < 0 
+PASS reverse() when playbackRate < 0 and currentTime < 0 
+PASS reverse() when playbackRate < 0 and currentTime > effect end 
+PASS reverse() when playbackRate > 0 and currentTime < 0 and the target effect end is positive infinity 
+PASS reverse() when playbackRate < 0 and currentTime < 0 and the target effect end is positive infinity 
+PASS reverse() when playbackRate == 0 
+FAIL Reversing an animation without an active timeline throws an InvalidStateError Animation is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html
index fd0926c..5ee2713 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html
@@ -146,5 +146,14 @@
   t.done();
 }, 'reverse() when playbackRate == 0');
 
+test(function(t) {
+  var div = createDiv(t);
+  var animation =
+    new Animation(new KeyframeEffect(div, null, 100 * MS_PER_SEC), null);
+
+  assert_throws('InvalidStateError', function() { animation.reverse(); });
+}, 'Reversing an animation without an active timeline throws an ' +
+   'InvalidStateError');
+
 </script>
 </body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time-expected.txt
new file mode 100644
index 0000000..766428b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time-expected.txt
@@ -0,0 +1,7 @@
+This is a testharness.js-based test.
+FAIL The current time returns the hold time when set Animation is not defined
+FAIL The current time is unresolved when there is no associated timeline (and no hold time is set) Animation is not defined
+FAIL The current time is unresolved when the start time is unresolved (and no hold time is set) Animation is not defined
+FAIL The current time is calculated from the timeline time, start time and playback rate Animation is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time.html
new file mode 100644
index 0000000..efc7ba7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/current-time.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Tests for current time</title>
+<link rel="help" href="https://w3c.github.io/web-animations/#current-time">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../testcommon.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+
+  animation.play();
+  assert_equals(animation.currentTime, 0,
+    'Current time returns the hold time set when entering the play-pending ' +
+    'state');
+}, 'The current time returns the hold time when set');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+
+  return animation.ready.then(function() {
+    assert_equals(animation.currentTime, null);
+  });
+}, 'The current time is unresolved when there is no associated timeline ' +
+   '(and no hold time is set)');
+
+// FIXME: Test that the current time is unresolved when we have an inactive
+// timeline if we find a way of creating an inactive timeline!
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+
+  animation.startTime = null;
+  assert_equals(animation.currentTime, null);
+}, 'The current time is unresolved when the start time is unresolved ' +
+   '(and no hold time is set)');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+
+  animation.playbackRate = 2;
+  animation.startTime = document.timeline.currentTime - 25 * MS_PER_SEC;
+
+  var timelineTime = document.timeline.currentTime;
+  var startTime = animation.startTime;
+  var playbackRate = animation.playbackRate;
+  assert_times_equal(animation.currentTime,
+                     (timelineTime - startTime) * playbackRate,
+                     'Animation has a unresolved start time');
+}, 'The current time is calculated from the timeline time, start time and ' +
+   'playback rate');
+</script>
+</body>
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
index 60e70ba..8b74c92 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
@@ -16,10 +16,11 @@
   // time for an animation that does not have an active timeline.
 
   var animation =
-    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC));
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
 
   assert_equals(animation.currentTime, null, 'Intial current time');
-  assert_equals(animation.startTuime, null, 'Intial start time');
+  assert_equals(animation.startTime, null, 'Intial start time');
 
   animation.currentTime = 1000;
   assert_equals(animation.currentTime, 1000,
@@ -46,10 +47,11 @@
   // timeline should not clear the current time.
 
   var animation =
-    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC));
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
 
   assert_equals(animation.currentTime, null, 'Intial current time');
-  assert_equals(animation.startTuime, null, 'Intial start time');
+  assert_equals(animation.startTime, null, 'Intial start time');
 
   animation.currentTime = 1000;
   assert_equals(animation.currentTime, 1000,
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation-expected.txt
new file mode 100644
index 0000000..eb917d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation-expected.txt
@@ -0,0 +1,21 @@
+This is a testharness.js-based test.
+FAIL After setting timeline on paused animation it is still paused Animation is not defined
+FAIL After setting timeline on animation paused outside active interval it is still paused Animation is not defined
+FAIL After setting timeline on an idle animation without a start time it is still idle Animation is not defined
+FAIL After setting timeline on an idle animation with a start time it is running Animation is not defined
+FAIL After setting timeline on an idle animation with a sufficiently ancient start time it is finished Animation is not defined
+FAIL After setting timeline on a play-pending animation it is still pending Animation is not defined
+FAIL After setting timeline on a play-pending animation it begins playing after pending Animation is not defined
+FAIL After setting timeline on a pause-pending animation it is still pending Animation is not defined
+FAIL After setting timeline on a pause-pending animation it becomes paused after pending Animation is not defined
+FAIL After clearing timeline on paused animation it is still paused Animation is not defined
+FAIL After clearing timeline on finished animation it is idle Animation is not defined
+FAIL After clearing timeline on running animation it is idle Animation is not defined
+FAIL After clearing timeline on idle animation it is still idle Animation is not defined
+PASS After clearing timeline on play-pending animation it is still pending 
+PASS After clearing and re-setting timeline on play-pending animation it begins to play 
+FAIL After clearing timeline on a pause-pending animation it is still pending Animation is not defined
+FAIL After clearing and re-setting timeline on a pause-pending animation it becomes paused Animation is not defined
+FAIL After clearing and re-setting timeline on an animation in the middle of an aborted pause, it continues playing using the same start time Animation is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation.html
new file mode 100644
index 0000000..c540fe2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/timing-model/animations/set-the-timeline-of-an-animation.html
@@ -0,0 +1,276 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Setting the timeline tests</title>
+<link rel="help" href="https://w3c.github.io/web-animations/#setting-the-timeline">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../testcommon.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+// ---------------------------------------------------------------------
+//
+// Tests from no timeline to timeline
+//
+// ---------------------------------------------------------------------
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.currentTime = 50 * MS_PER_SEC;
+  assert_equals(animation.playState, 'paused');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'paused');
+  assert_times_equal(animation.currentTime, 50 * MS_PER_SEC);
+}, 'After setting timeline on paused animation it is still paused');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.currentTime = 200 * MS_PER_SEC;
+  assert_equals(animation.playState, 'paused');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'paused');
+  assert_times_equal(animation.currentTime, 200 * MS_PER_SEC);
+}, 'After setting timeline on animation paused outside active interval'
+   + ' it is still paused');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  assert_equals(animation.playState, 'idle');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'idle');
+}, 'After setting timeline on an idle animation without a start time'
+   + ' it is still idle');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.startTime = document.timeline.currentTime;
+  assert_equals(animation.playState, 'idle');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'running');
+}, 'After setting timeline on an idle animation with a start time'
+   + ' it is running');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.startTime = document.timeline.currentTime - 200 * MS_PER_SEC;
+  assert_equals(animation.playState, 'idle');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'finished');
+}, 'After setting timeline on an idle animation with a sufficiently ancient'
+   + ' start time it is finished');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.play();
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'pending');
+}, 'After setting timeline on a play-pending animation it is still pending');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.play();
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = document.timeline;
+
+  return animation.ready.then(function() {
+    assert_equals(animation.playState, 'running');
+  });
+}, 'After setting timeline on a play-pending animation it begins playing'
+   + ' after pending');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.startTime = document.timeline.currentTime;
+  animation.pause();
+  animation.timeline = null;
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'pending');
+}, 'After setting timeline on a pause-pending animation it is still pending');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  null);
+  animation.startTime = document.timeline.currentTime;
+  animation.pause();
+  animation.timeline = null;
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = document.timeline;
+
+  return animation.ready.then(function() {
+    assert_equals(animation.playState, 'paused');
+  });
+}, 'After setting timeline on a pause-pending animation it becomes paused'
+   + ' after pending');
+
+// ---------------------------------------------------------------------
+//
+// Tests from timeline to no timeline
+//
+// ---------------------------------------------------------------------
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  animation.currentTime = 50 * MS_PER_SEC;
+  assert_equals(animation.playState, 'paused');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'paused');
+  assert_times_equal(animation.currentTime, 50 * MS_PER_SEC);
+}, 'After clearing timeline on paused animation it is still paused');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  var initialStartTime = document.timeline.currentTime - 200 * MS_PER_SEC;
+  animation.startTime = initialStartTime;
+  assert_equals(animation.playState, 'finished');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'idle');
+  assert_times_equal(animation.startTime, initialStartTime);
+}, 'After clearing timeline on finished animation it is idle');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  var initialStartTime = document.timeline.currentTime - 50 * MS_PER_SEC;
+  animation.startTime = initialStartTime;
+  assert_equals(animation.playState, 'running');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'idle');
+  assert_times_equal(animation.startTime, initialStartTime);
+}, 'After clearing timeline on running animation it is idle');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  assert_equals(animation.playState, 'idle');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'idle');
+  assert_equals(animation.startTime, null);
+}, 'After clearing timeline on idle animation it is still idle');
+
+test(function(t) {
+  var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'pending');
+}, 'After clearing timeline on play-pending animation it is still pending');
+
+promise_test(function(t) {
+  var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = null;
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'pending');
+  return animation.ready.then(function() {
+    assert_equals(animation.playState, 'running');
+  });
+}, 'After clearing and re-setting timeline on play-pending animation it'
+   + ' begins to play');
+
+test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  animation.startTime = document.timeline.currentTime;
+  animation.pause();
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = null;
+
+  assert_equals(animation.playState, 'pending');
+}, 'After clearing timeline on a pause-pending animation it is still pending');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  animation.startTime = document.timeline.currentTime;
+  animation.pause();
+  assert_equals(animation.playState, 'pending');
+
+  animation.timeline = null;
+  animation.timeline = document.timeline;
+
+  assert_equals(animation.playState, 'pending');
+  return animation.ready.then(function() {
+    assert_equals(animation.playState, 'paused');
+  });
+}, 'After clearing and re-setting timeline on a pause-pending animation it'
+   + ' becomes paused');
+
+promise_test(function(t) {
+  var animation =
+    new Animation(new KeyframeEffect(createDiv(t), null, 100 * MS_PER_SEC),
+                  document.timeline);
+  var initialStartTime = document.timeline.currentTime - 50 * MS_PER_SEC;
+  animation.startTime = initialStartTime;
+  animation.pause();
+  animation.play();
+
+  animation.timeline = null;
+  animation.timeline = document.timeline;
+  assert_equals(animation.playState, 'pending');
+
+  return animation.ready.then(function() {
+    assert_equals(animation.playState, 'running');
+    assert_times_equal(animation.startTime, initialStartTime);
+  });