Bug 859252 - Part b: Import the reftests in the HTML test suite; r=mounir+smontagu
authorMs2ger <ms2ger@gmail.com>
Fri, 10 May 2013 09:12:55 +0200
changeset 131373 92e51876e67d
parent 131372 abe0099bab0e
child 131374 02f7faabdbd9
push id24657
push userMs2ger@gmail.com
push date2013-05-10 07:14 +0000
treeherdermozilla-central@e44c0b1eb2e3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs859252
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 859252 - Part b: Import the reftests in the HTML test suite; r=mounir+smontagu
content/html/content/reftests/hidden-1-ref.html
content/html/content/reftests/hidden-1a.html
content/html/content/reftests/hidden-1b.html
content/html/content/reftests/hidden-1c.html
content/html/content/reftests/hidden-1d.html
content/html/content/reftests/hidden-1e.html
content/html/content/reftests/hidden-1f.html
content/html/content/reftests/hidden-1g.html
content/html/content/reftests/hidden-2-ref.svg
content/html/content/reftests/hidden-2.svg
content/html/content/reftests/reftest.list
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-R.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-mixed-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-mixed.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-mixed-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-ref.html
dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
dom/imptests/html/html/dom/elements/global-attributes/lang-xmllang-01-ref.html
dom/imptests/html/html/dom/elements/global-attributes/lang-xmllang-01.html
dom/imptests/html/html/dom/elements/global-attributes/lang-xyzzy-ref.html
dom/imptests/html/html/dom/elements/global-attributes/lang-xyzzy.html
dom/imptests/html/html/dom/elements/global-attributes/reftest.list
dom/imptests/html/html/dom/elements/global-attributes/style-01-ref.html
dom/imptests/html/html/dom/elements/global-attributes/style-01.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1-ref.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1a.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1b.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1c.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1d.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1e.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1f.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-1g.html
dom/imptests/html/html/editing/the-hidden-attribute/hidden-2-ref.svg
dom/imptests/html/html/editing/the-hidden-attribute/hidden-2.svg
dom/imptests/html/html/editing/the-hidden-attribute/reftest.list
layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-L.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-N-L.html
layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-N-R.html
layout/reftests/bidi/dirAuto/dir_auto-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html
layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html
layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html
layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html
layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html
layout/reftests/bidi/dirAuto/dir_auto-isolate.html
layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html
layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html
layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html
layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html
layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html
layout/reftests/bidi/dirAuto/reftest.list
--- a/content/html/content/reftests/reftest.list
+++ b/content/html/content/reftests/reftest.list
@@ -19,21 +19,13 @@ skip-if(B2G) == 41464-1b.html 41464-1-re
 == 596455-1a.html 596455-ref-1.html
 == 596455-1b.html 596455-ref-1.html
 == 596455-2a.html 596455-ref-2.html
 == 596455-2b.html 596455-ref-2.html
 == 610935.html 610935-ref.html
 == 649134-1.html 649134-ref.html
 skip-if(Android||B2G) == 649134-2.html 649134-2-ref.html
 
-== hidden-1a.html hidden-1-ref.html
-== hidden-1b.html hidden-1-ref.html
-== hidden-1c.html hidden-1-ref.html
-== hidden-1d.html hidden-1-ref.html
-== hidden-1e.html hidden-1-ref.html
-== hidden-1f.html hidden-1-ref.html
-== hidden-1g.html hidden-1-ref.html
-== hidden-2.svg hidden-2-ref.svg
 == href-attr-change-restyles.html href-attr-change-restyles-ref.html
 == figure.html figure-ref.html
 == table-border-1.html table-border-1-ref.html
 == table-border-2.html table-border-2-ref.html
 != table-border-2.html table-border-2-notref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-EN-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-EN.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-N-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-N-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html
@@ -5,22 +5,19 @@
     <title>HTML Test: dir=auto, start with bdi, then L</title>
     <link rel="reference" href="dir_auto-contained-bdi-L-ref.html" />
     <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
     <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
     <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
     <meta name="assert" content="
       When dir='auto', the direction is set according to the first strong character
-      of the text.
+      of the text while ignoring bdi elements.
       In this test, it is the Latin letter A, thus the direction must be
-      resolved as LTR.
-      The element with dir='auto' contains a bdi element whose first
-      strong character is RTL. This is ignored by the containing
-      element, but causes the bdi itself to be resolved as RTL" />
+      resolved as LTR." />
     <style>
       input, textarea {
         font-size:1em;
       }
       body {
         font-size:2em;
       }
       .test, .ref {
@@ -41,24 +38,24 @@
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
       &#x05D3; - The Hebrew letter Dalet (strongly RTL).
       &#x05D4; - The Hebrew letter He (strongly RTL).
       &#x05D5; - The Hebrew letter Vav (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-L.html
@@ -5,22 +5,19 @@
     <title>HTML Test: dir=auto, start with bdi, then L</title>
     <link rel="reference" href="dir_auto-contained-bdi-L-ref.html" />
     <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
     <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
     <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
     <meta name="assert" content="
       When dir='auto', the direction is set according to the first strong character
-      of the text.
+      of the text while ignoring bdi elements.
       In this test, it is the Latin letter A, thus the direction must be
-      resolved as LTR. 
-      The element with dir='auto' contains a bdi element whose first
-      strong character is RTL. This is ignored by the containing
-      element, but causes the bdi itself to be resolved as RTL." />
+      resolved as LTR." />
     <style>
       input, textarea {
         font-size:1em;
       }
       body {
         font-size:2em;
       }
       .test, .ref {
@@ -41,24 +38,24 @@
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
       &#x05D3; - The Hebrew letter Dalet (strongly RTL).
       &#x05D4; - The Hebrew letter He (strongly RTL).
       &#x05D5; - The Hebrew letter Vav (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="auto"><bdi>123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="auto"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="auto"><bdi>123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="auto"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><bdi>&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html
@@ -5,22 +5,19 @@
     <title>HTML Test: dir=auto, start with bdi, then R</title>
     <link rel="reference" href="dir_auto-contained-bdi-R-ref.html" />
     <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
     <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
     <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
     <meta name="assert" content="
       When dir='auto', the direction is set according to the first strong character
-      of the text.
+      of the text while ignoring bdi elements.
       In this test, it is the Hebrew letter Alef, thus the direction must be
-      resolved as RTL.   
-      The element with dir='auto' contains a bdi element whose first
-      strong character is LTR. This is ignored by the containing
-      element, but causes the bdi itself to be resolved as LTR." />
+      resolved as RTL." />
     <style>
       input, textarea {
         font-size:1em;
       }
       body {
         font-size:2em;
       }
       .test, .ref {
@@ -38,24 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-bdi-R.html
@@ -5,22 +5,19 @@
     <title>HTML Test: dir=auto, start with bdi, then R</title>
     <link rel="reference" href="dir_auto-contained-bdi-R-ref.html" />
     <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
     <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
     <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
     <meta name="assert" content="
       When dir='auto', the direction is set according to the first strong character
-      of the text.
+      of the text while ignoring bdi elements.
       In this test, it is the Hebrew letter Alef, thus the direction must be
-      resolved as RTL.  
-      The element with dir='auto' contains a bdi element whose first
-      strong character is LTR. This is ignored by the containing
-      element, but causes the bdi itself to be resolved as LTR." />
+      resolved as RTL." />
     <style>
       input, textarea {
         font-size:1em;
       }
       body {
         font-size:2em;
       }
       .test, .ref {
@@ -38,24 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="auto"><bdi>123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="auto"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="auto"><bdi>123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="auto"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><bdi>DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
   </body>
 </html>
copy from layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html
copy to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-L.html
copy from layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html
copy to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-script-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html
@@ -35,36 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-L.html
@@ -35,36 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="auto"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="auto"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="auto"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="auto"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
       <div dir="rtl">
-        <div dir="ltr"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
+        <div dir="ltr"><style>body {color:black;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html
@@ -35,36 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-style-R.html
@@ -35,36 +35,24 @@
     <div class="comments">
       Key to entities used below:
       &#x05D0; - The Hebrew letter Alef (strongly RTL).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
     </div>
     <div class="test">
       <div dir="ltr">
-        <div dir="auto"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="auto"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="auto"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="auto"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
     <div class="ref">
       <div dir="ltr">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
       <div dir="rtl">
-        <div dir="rtl"><style>input, textarea {
-        font-size:1em;
-      }
-      body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
+        <div dir="rtl"><style>body {color:black;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
       </div>
     </div>
   </body>
 </html>
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-contained-textarea-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-EN-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-EN.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-L.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-N-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-R.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-L.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '123ABC\u05D0\u05D1\u05D2.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="&#x05D0;" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-EN-R.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '123\u05D0\u05D1\u05D2ABC.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="a" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-L.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = 'ABC\u05D0\u05D1\u05D2.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="&#x05D0;" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '.-=123ABC\u05D0\u05D1\u05D2.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="&#x05D0;" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '.-=123\u05D0\u05D1\u05D2ABC.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="a" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-EN.html
@@ -29,22 +29,28 @@
       }
       .comments {
         display: none;
       }
     </style>
   </head>
   <body>
     <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).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
+    </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '@123!';
           }
         };
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="&#x05D0;" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-L.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '.-=ABC\u05D0\u05D1\u05D2.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="&#x05D0;" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-N-R.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '.-=\u05D0\u05D1\u05D2ABC.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="a" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-R.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-input-script-R.html
@@ -33,23 +33,25 @@
   </head>
   <body>
     <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).
       &#x05D1; - The Hebrew letter Bet (strongly RTL).
       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
+      This test makes sure that the direction is set correctly for an input whose value is set
+      dynamically by script.
     </div>
       <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var inputs = test.getElementsByTagName('input');
-          for (var i = 0; i < inputs.length; i++) {
+          for (var i = 0; i != inputs.length; i++) {
             inputs[i].value = '\u05D0\u05D1\u05D2ABC.';
           }
         }
       </script>
       <div dir="ltr">
         <input type="text" dir="auto" value="a" />
       </div>
       <div dir="rtl">
rename from layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate-ref.html
@@ -30,16 +30,18 @@
       }
     </style>
   </head>
   <body>
     <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).
+      &#x202D; - The LRO (left-to-right override) formatting character.
+      &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO.
     </div>
     <div class="test">
       <div dir="ltr">
         &#x202D;1 a! &#x05D0;&#x202C;
       </div>
       <div dir="rtl">
         &#x202D;a !&#x05D0; 1&#x202C;
       </div>
rename from layout/reftests/bidi/dirAuto/dir_auto-isolate.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-isolate.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-isolate.html
@@ -30,17 +30,17 @@
       }
     </style>
   </head>
   <body>
     <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).
-      &#x202D; - The LRO (left-to-right-override) formatting character.
+      &#x202D; - The LRO (left-to-right override) formatting character.
       &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO.
     </div>
     <div class="test">
       <div dir="ltr">
         &#x05D0; <span dir="auto">a!</span> 1
       </div>
       <div dir="rtl">
         a <span dir="auto">&#x05D0;!</span> 1
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-EN.html
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs.html
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-mixed-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-pre-mixed.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-EN.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-ref.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-ref.html
@@ -1,13 +1,12 @@
 <!DOCTYPE html>
 <html>
   <head>
     <meta charset="utf-8" />
-    <link rel="reference" href="dir_auto-textarea-N-between-Rs-ref.html" />
     <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
     <style>
       body, textarea {
         font-size:18px;
         text-align:left;
       }
       textarea {
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-mixed-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-mixed.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
@@ -29,26 +29,28 @@
     </style>
   </head>
   <body>
     <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).
         &#x200F; - RLM, the invisible right-to-left mark (strongly RTL).
+      This test makes sure that the direction is set correctly for a textarea whose value is set
+      dynamically by script.
       We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
       specification states whether text-align:start and text-align:end should obey the paragraph
       direction or the direction property in a unicode-bidi:plaintext element.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var textareas = test.getElementsByTagName('textarea');
-          for (var i = 0; i < textareas.length; i++) {
+          for (var i = 0; i != textareas.length; i++) {
             textareas[i].value = '@123!\n';
           }
         }
       </script>
       <div dir="ltr">
         <textarea rows="2" dir="auto">
 &#x200F;
         </textarea>
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
@@ -31,16 +31,18 @@
       }
     </style>
   </head>
   <body>
     <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).
+      This test makes sure that the direction is set correctly for a textarea whose value is set
+      dynamically by script.
       We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
       specification states whether text-align:start and text-align:end should obey the paragraph
       direction or the direction property in a unicode-bidi:plaintext element.
       The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
       despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
       element as a whole RTL.
     </div>
     <div id="test" class="test">
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-ref.html
rename from layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html
rename to dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
--- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html
+++ b/dom/imptests/html/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed.html
@@ -31,26 +31,28 @@
     </style>
   </head>
   <body>
     <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).
         &#x200F; - RLM, the invisible right-to-left mark (strongly RTL).
+      This test makes sure that the direction is set correctly for a textarea whose value is set
+      dynamically by script.
       We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
       specification states whether text-align:start and text-align:end should obey the paragraph
       direction or the direction property in a unicode-bidi:plaintext element.
     </div>
     <div id="test" class="test">
       <script>
         window.onload = function() {
           var test = document.getElementById('test');
           var textareas = test.getElementsByTagName('textarea');
-          for (var i = 0; i < textareas.length; i++) {
+          for (var i = 0; i != textareas.length; i++) {
             var input = textareas[i];
             if (input.parentNode.dir == 'ltr') {
               // Assign a value whose first strong is RTL.
               input.value =
                   '!\u200F123\u200E@\n' +
                   '@\u200E123\u200F!\n' +
                   '!123\u200F\u200E@\n' +
                   '@123\u200E\u200F!\n';
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/lang-xmllang-01-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<title>Languages</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="http://www.whatwg.org/html5/#the-lang-and-xml:lang-attributes">
+<link tel="help" href="http://www.w3.org/TR/CSS2/selector.html#lang">
+<meta name="flags" content="css21">
+<style>
+#test > * { background: limegreen; }
+</style>
+<body>
+<p>All lines below should have a green background.</p>
+<div id="test">
+<div><p>{}{lang}{en}</p></div>
+<div><p>{}{xml:lang}{en}</p></div>
+<div><div><p>Parent: {}{lang}{en}</p></div></div>
+<div><div><p>Parent: {}{xml:lang}{en}</p></div></div>
+<div><p>{xml}{lang}{en}</p></div>
+<div><p>{xml}{lang}{en} - {lang}{de}</p></div>
+<div><p>{xml}{lang}{de} - {lang}{en}</p></div>
+</div>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/lang-xmllang-01.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<title>Languages</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="http://www.whatwg.org/html5/#the-lang-and-xml:lang-attributes">
+<link tel="help" href="http://www.w3.org/TR/CSS2/selector.html#lang">
+<meta name="flags" content="css21">
+<style>
+#test #a :lang(en) { background: limegreen; }
+#test #b :lang(nl) { background: limegreen; }
+#test #c :lang(en) { background: limegreen; }
+#test #d :lang(nl) { background: limegreen; }
+#test #e :lang(en) { background: limegreen; }
+#test #f :lang(en) { background: limegreen; }
+#test #g :lang(de) { background: limegreen; }
+</style>
+<body>
+<p>All lines below should have a green background.</p>
+<div id="test" lang="nl">
+<div id="a"><p lang="en">{}{lang}{en}</p></div>
+<div id="b"><p xml:lang="en">{}{xml:lang}{en}</p></div>
+<div id="c"><div lang="en"><p>Parent: {}{lang}{en}</p></div></div>
+<div id="d"><div xml:lang="en"><p>Parent: {}{xml:lang}{en}</p></div></div>
+</div>
+<script>
+try {
+  var XML = "http://www.w3.org/XML/1998/namespace";
+  var container = document.getElementById("test");
+
+  var div = document.createElement("div");
+  div.id = "e";
+  var testNode = document.createElement("p");
+  testNode.appendChild(document.createTextNode("{xml}{lang}{en}"));
+  testNode.setAttributeNS(XML, "xml:lang", "en");
+  div.appendChild(testNode);
+  container.appendChild(div);
+
+  div = document.createElement("div");
+  div.id = "f";
+  testNode = document.createElement("p");
+  testNode.appendChild(document.createTextNode("{xml}{lang}{en} - {lang}{de}"));
+  testNode.setAttributeNS(XML, "xml:lang", "en");
+  testNode.setAttributeNS(null, "lang", "de");
+  div.appendChild(testNode);
+  container.appendChild(div);
+
+  div = document.createElement("div");
+  div.id = "g";
+  testNode = document.createElement("p");
+  testNode.appendChild(document.createTextNode("{xml}{lang}{de} - {lang}{en}"));
+  testNode.setAttributeNS(XML, "xml:lang", "de");
+  testNode.setAttributeNS(null, "lang", "en");
+  container.appendChild(testNode);
+  div.appendChild(testNode);
+  container.appendChild(div);
+} catch (e) {
+}
+</script>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/lang-xyzzy-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<title>Invalid languages</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<meta name="flags" content="css21">
+<style>#testp { color: green; }</style>
+<body>
+<div id="test">
+<p id="testp" lang="xyzzy">ABC</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/lang-xyzzy.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<title>Invalid languages</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="http://www.whatwg.org/html5/#the-lang-and-xml:lang-attributes">
+<link tel="help" href="http://www.w3.org/TR/CSS2/selector.html#lang">
+<meta name="flags" content="css21">
+<style>:lang(xyzzy) { color: green; }</style>
+<body>
+<div id="test">
+<p id="testp" lang="xyzzy">ABC</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/reftest.list
@@ -0,0 +1,56 @@
+# THIS FILE IS AUTOGENERATED BY importTestsuite.py - DO NOT EDIT
+
+== dir_auto-contained-bdi-L.html dir_auto-contained-bdi-L-ref.html
+== dir_auto-contained-bdi-R.html dir_auto-contained-bdi-R-ref.html
+== dir_auto-contained-dir_auto-L.html dir_auto-contained-dir_auto-L-ref.html
+== dir_auto-contained-dir_auto-R.html dir_auto-contained-dir_auto-R-ref.html
+== dir_auto-contained-dir-L.html dir_auto-contained-dir-L-ref.html
+== dir_auto-contained-dir-R.html dir_auto-contained-dir-R-ref.html
+== dir_auto-contained-L.html dir_auto-contained-L-ref.html
+== dir_auto-contained-R.html dir_auto-contained-R-ref.html
+== dir_auto-contained-script-L.html dir_auto-contained-script-L-ref.html
+== dir_auto-contained-script-R.html dir_auto-contained-script-R-ref.html
+== dir_auto-contained-style-L.html dir_auto-contained-style-L-ref.html
+== dir_auto-contained-style-R.html dir_auto-contained-style-R-ref.html
+== dir_auto-contained-textarea-L.html dir_auto-contained-textarea-L-ref.html
+== dir_auto-contained-textarea-R.html dir_auto-contained-textarea-R-ref.html
+== dir_auto-EN-L.html dir_auto-EN-L-ref.html
+== dir_auto-EN-R.html dir_auto-EN-R-ref.html
+== dir_auto-input-EN-L.html dir_auto-input-EN-L-ref.html
+== dir_auto-input-EN-R.html dir_auto-input-EN-R-ref.html
+== dir_auto-input-L.html dir_auto-input-L-ref.html
+== dir_auto-input-N-EN.html dir_auto-input-N-EN-ref.html
+== dir_auto-input-N-EN-L.html dir_auto-input-N-EN-L-ref.html
+== dir_auto-input-N-EN-R.html dir_auto-input-N-EN-R-ref.html
+== dir_auto-input-N-L.html dir_auto-input-N-L-ref.html
+== dir_auto-input-N-R.html dir_auto-input-N-R-ref.html
+== dir_auto-input-R.html dir_auto-input-R-ref.html
+== dir_auto-input-script-EN-L.html dir_auto-input-script-EN-L-ref.html
+== dir_auto-input-script-EN-R.html dir_auto-input-script-EN-R-ref.html
+== dir_auto-input-script-L.html dir_auto-input-script-L-ref.html
+== dir_auto-input-script-N-EN.html dir_auto-input-script-N-EN-ref.html
+== dir_auto-input-script-N-EN-L.html dir_auto-input-script-N-EN-L-ref.html
+== dir_auto-input-script-N-EN-R.html dir_auto-input-script-N-EN-R-ref.html
+== dir_auto-input-script-N-L.html dir_auto-input-script-N-L-ref.html
+== dir_auto-input-script-N-R.html dir_auto-input-script-N-R-ref.html
+== dir_auto-input-script-R.html dir_auto-input-script-R-ref.html
+== dir_auto-isolate.html dir_auto-isolate-ref.html
+== dir_auto-L.html dir_auto-L-ref.html
+== dir_auto-N-EN.html dir_auto-N-EN-ref.html
+== dir_auto-N-EN-L.html dir_auto-N-EN-L-ref.html
+== dir_auto-N-EN-R.html dir_auto-N-EN-R-ref.html
+== dir_auto-N-L.html dir_auto-N-L-ref.html
+== dir_auto-N-R.html dir_auto-N-R-ref.html
+== dir_auto-pre-mixed.html dir_auto-pre-mixed-ref.html
+== dir_auto-pre-N-between-Rs.html dir_auto-pre-N-between-Rs-ref.html
+== dir_auto-pre-N-EN.html dir_auto-pre-N-EN-ref.html
+== dir_auto-R.html dir_auto-R-ref.html
+== dir_auto-textarea-mixed.html dir_auto-textarea-mixed-ref.html
+== dir_auto-textarea-N-between-Rs.html dir_auto-textarea-N-between-Rs-ref.html
+== dir_auto-textarea-N-EN.html dir_auto-textarea-N-EN-ref.html
+== dir_auto-textarea-script-mixed.html dir_auto-textarea-script-mixed-ref.html
+== dir_auto-textarea-script-N-between-Rs.html dir_auto-textarea-script-N-between-Rs-ref.html
+== dir_auto-textarea-script-N-EN.html dir_auto-textarea-script-N-EN-ref.html
+== lang-xyzzy.html lang-xyzzy-ref.html
+== lang-xmllang-01.html lang-xmllang-01-ref.html
+== style-01.html style-01-ref.html
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/style-01-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<title>The style attribute</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="http://www.whatwg.org/html5/#the-style-attribute">
+<link rel="help" href="http://www.w3.org/TR/css-style-attr/#syntax">
+<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order">
+<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity">
+<style>
+#test p { background: limegreen; }
+</style>
+<div id="test">
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+<p>This line should have a green background.
+</div>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/dom/elements/global-attributes/style-01.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<title>The style attribute</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="http://www.whatwg.org/html5/#the-style-attribute">
+<link rel="help" href="http://www.w3.org/TR/css-style-attr/#syntax">
+<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order">
+<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity">
+<style>
+#idsel { background: red; }
+#idsel2 { background: limegreen !important; }
+</style>
+<div id="test">
+<p style="background:limegreen">This line should have a green background.
+<p style="/**/background:limegreen">This line should have a green background.
+<p style="background/**/:limegreen">This line should have a green background.
+<p style="background:/**/limegreen">This line should have a green background.
+<p style="background:limegreen/**/">This line should have a green background.
+<p id="idsel1" style="background:limegreen">This line should have a green background.
+<p id="idsel2" style="background:red">This line should have a green background.
+<p style="background:limegreen; background:r/**/ed">This line should have a green background.
+<p style="background:limegreen;}">This line should have a green background.
+<p style="};background:limegreen">This line should have a green background.
+<p style="background:red;};background:limegreen">This line should have a green background.
+<p style="background:limegreen;{background:red}">This line should have a green background.
+</div>
rename from content/html/content/reftests/hidden-1-ref.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1-ref.html
--- a/content/html/content/reftests/hidden-1-ref.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1-ref.html
@@ -1,5 +1,4 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
 <p>This line should be visible.
rename from content/html/content/reftests/hidden-1a.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1a.html
--- a/content/html/content/reftests/hidden-1a.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1a.html
@@ -1,6 +1,7 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <p>This line should be visible.
 <p hidden>This line should not be visible.
rename from content/html/content/reftests/hidden-1b.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1b.html
--- a/content/html/content/reftests/hidden-1b.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1b.html
@@ -1,9 +1,10 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <style>
 p { display: none; }
 [hidden] { display: block; }
 </style>
 <p hidden>This line should be visible.
rename from content/html/content/reftests/hidden-1c.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1c.html
--- a/content/html/content/reftests/hidden-1c.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1c.html
@@ -1,10 +1,11 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <p hidden>This line should be visible.
 <p>This line should not be visible.
 <script>
 document.getElementsByTagName("p")[0].hidden = false;
 document.getElementsByTagName("p")[1].hidden = true;
 </script>
rename from content/html/content/reftests/hidden-1d.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1d.html
--- a/content/html/content/reftests/hidden-1d.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1d.html
@@ -1,10 +1,11 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <p hidden>This line should be visible.
 <p>This line should not be visible.
 <script>
 document.getElementsByTagName("p")[0].removeAttribute("hidden");
 document.getElementsByTagName("p")[1].setAttribute("hidden", "");
 </script>
rename from content/html/content/reftests/hidden-1e.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1e.html
--- a/content/html/content/reftests/hidden-1e.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1e.html
@@ -1,8 +1,9 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <style>
 p { display: block; }
 </style>
 <p hidden>This line should be visible.
rename from content/html/content/reftests/hidden-1f.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1f.html
--- a/content/html/content/reftests/hidden-1f.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1f.html
@@ -1,8 +1,9 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <style>
 p { display: block !important; }
 </style>
 <p hidden>This line should be visible.
rename from content/html/content/reftests/hidden-1g.html
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-1g.html
--- a/content/html/content/reftests/hidden-1g.html
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-1g.html
@@ -1,9 +1,10 @@
 <!doctype html>
 <title>The hidden attribute</title>
-<link rel=author title=Ms2ger href=ms2ger@gmail.com>
-<link rel=help href=http://www.whatwg.org/html5/#the-hidden-attribute>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
 <p>This line should be visible.
 <p hidden=hidden>This line should not be visible.
 <p hidden=blue>This line should not be visible.
 <p hidden=true>This line should not be visible.
 <p hidden=false>This line should not be visible.
rename from content/html/content/reftests/hidden-2-ref.svg
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-2-ref.svg
--- a/content/html/content/reftests/hidden-2-ref.svg
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-2-ref.svg
@@ -1,9 +1,7 @@
 <svg xmlns="http://www.w3.org/2000/svg" height="20" width="20">
 <metadata>
   <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Ms2ger"
-        href="ms2ger@gmail.com"/>
-  <link xmlns="http://www.w3.org/1999/xhtml" rel="help"
-        href="http://www.whatwg.org/html5/#the-hidden-attribute"/>
+        href="mailto:Ms2ger@gmail.com"/>
 </metadata>
 <rect height="20" width="20"/>
 </svg>
rename from content/html/content/reftests/hidden-2.svg
rename to dom/imptests/html/html/editing/the-hidden-attribute/hidden-2.svg
--- a/content/html/content/reftests/hidden-2.svg
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/hidden-2.svg
@@ -1,9 +1,11 @@
 <svg xmlns="http://www.w3.org/2000/svg" height="20" width="20">
 <metadata>
   <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Ms2ger"
-        href="ms2ger@gmail.com"/>
+        href="mailto:Ms2ger@gmail.com"/>
   <link xmlns="http://www.w3.org/1999/xhtml" rel="help"
-        href="http://www.whatwg.org/html5/#the-hidden-attribute"/>
+        href="http://www.whatwg.org/html/#the-hidden-attribute"/>
+  <link xmlns="http://www.w3.org/1999/xhtml" rel="help"
+        href="http://www.whatwg.org/html/#hidden-elements"/>
 </metadata>
 <rect hidden="" height="20" width="20"/>
 </svg>
new file mode 100644
--- /dev/null
+++ b/dom/imptests/html/html/editing/the-hidden-attribute/reftest.list
@@ -0,0 +1,10 @@
+# THIS FILE IS AUTOGENERATED BY importTestsuite.py - DO NOT EDIT
+
+== hidden-1a.html hidden-1-ref.html
+== hidden-1b.html hidden-1-ref.html
+== hidden-1c.html hidden-1-ref.html
+== hidden-1d.html hidden-1-ref.html
+== hidden-1e.html hidden-1-ref.html
+== hidden-1f.html hidden-1-ref.html
+== hidden-1g.html hidden-1-ref.html
+== hidden-2.svg hidden-2-ref.svg
--- a/layout/reftests/bidi/dirAuto/reftest.list
+++ b/layout/reftests/bidi/dirAuto/reftest.list
@@ -1,66 +1,15 @@
 == bdi-auto-dir-default.html bdi-auto-dir-default-ref.html
-== dir_auto-contained-bdi-L.html dir_auto-contained-bdi-L-ref.html
-== dir_auto-contained-bdi-R.html dir_auto-contained-bdi-R-ref.html
-== dir_auto-contained-dir-L.html dir_auto-contained-dir-L-ref.html
-== dir_auto-contained-dir-R.html dir_auto-contained-dir-R-ref.html
 == dir_auto-set-contained-dir-L.html dir_auto-contained-dir-L-ref.html
 == dir_auto-set-contained-dir-R.html dir_auto-contained-dir-R-ref.html
 == dir_auto-set-contained-invalid-dir-L.html dir_auto-contained-dir-L-ref.html
 == dir_auto-set-contained-invalid-dir-R.html dir_auto-contained-dir-R-ref.html
 == dir_auto-unset-contained-dir-L.html dir_auto-unset-contained-dir-L-ref.html
 == dir_auto-unset-contained-dir-R.html dir_auto-unset-contained-dir-R-ref.html
-== dir_auto-contained-dir_auto-L.html dir_auto-contained-dir_auto-L-ref.html
-== dir_auto-contained-dir_auto-R.html dir_auto-contained-dir_auto-R-ref.html
-== dir_auto-contained-L.html dir_auto-contained-L-ref.html
-== dir_auto-contained-R.html dir_auto-contained-R-ref.html
-== dir_auto-contained-script-L.html dir_auto-contained-script-L-ref.html
-== dir_auto-contained-script-R.html dir_auto-contained-script-R-ref.html
-== dir_auto-contained-style-L.html dir_auto-contained-style-L-ref.html
-== dir_auto-contained-style-R.html dir_auto-contained-style-R-ref.html
-== dir_auto-contained-textarea-L.html dir_auto-contained-textarea-L-ref.html
-== dir_auto-contained-textarea-R.html dir_auto-contained-textarea-R-ref.html
-== dir_auto-EN-L.html dir_auto-EN-L-ref.html
-== dir_auto-EN-R.html dir_auto-EN-R-ref.html
-== dir_auto-input-EN-L.html dir_auto-input-EN-L-ref.html
-== dir_auto-input-EN-R.html dir_auto-input-EN-R-ref.html
-== dir_auto-input-L.html dir_auto-input-L-ref.html
-== dir_auto-input-N-EN-L.html dir_auto-input-N-EN-L-ref.html
-== dir_auto-input-N-EN-R.html dir_auto-input-N-EN-R-ref.html
-== dir_auto-input-N-EN.html dir_auto-input-N-EN-ref.html
-== dir_auto-input-N-L.html dir_auto-input-N-L-ref.html
-== dir_auto-input-N-R.html dir_auto-input-N-R-ref.html
-== dir_auto-input-R.html dir_auto-input-R-ref.html
-== dir_auto-input-script-EN-L.html dir_auto-input-script-EN-L-ref.html
-== dir_auto-input-script-EN-R.html dir_auto-input-script-EN-R-ref.html
-== dir_auto-input-script-L.html dir_auto-input-script-L-ref.html
-== dir_auto-input-script-N-EN-L.html dir_auto-input-script-N-EN-L-ref.html
-== dir_auto-input-script-N-EN-R.html dir_auto-input-script-N-EN-R-ref.html
-== dir_auto-input-script-N-EN.html dir_auto-input-script-N-EN-ref.html
-== dir_auto-input-script-N-L.html dir_auto-input-script-N-L-ref.html
-== dir_auto-input-script-N-R.html dir_auto-input-script-N-R-ref.html
-== dir_auto-input-script-R.html dir_auto-input-script-R-ref.html
-== dir_auto-isolate.html dir_auto-isolate-ref.html
-== dir_auto-L.html dir_auto-L-ref.html
-== dir_auto-N-EN-L.html dir_auto-N-EN-L-ref.html
-== dir_auto-N-EN-R.html dir_auto-N-EN-R-ref.html
-== dir_auto-N-EN.html dir_auto-N-EN-ref.html
-== dir_auto-N-L.html dir_auto-N-L-ref.html
-== dir_auto-N-R.html dir_auto-N-R-ref.html
-== dir_auto-pre-mixed.html dir_auto-pre-mixed-ref.html
-== dir_auto-pre-N-between-Rs.html dir_auto-pre-N-between-Rs-ref.html
-== dir_auto-pre-N-EN.html dir_auto-pre-N-EN-ref.html
-== dir_auto-R.html dir_auto-R-ref.html
-== dir_auto-textarea-mixed.html dir_auto-textarea-mixed-ref.html
-== dir_auto-textarea-N-between-Rs.html dir_auto-textarea-N-between-Rs-ref.html
-== dir_auto-textarea-N-EN.html dir_auto-textarea-N-EN-ref.html
-== dir_auto-textarea-script-mixed.html dir_auto-textarea-script-mixed-ref.html
-== dir_auto-textarea-script-N-between-Rs.html dir_auto-textarea-script-N-between-Rs-ref.html
-== dir_auto-textarea-script-N-EN.html dir_auto-textarea-script-N-EN-ref.html
 == dynamicDirAuto-setLTR-Auto1.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-Auto2.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-Auto3.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-Auto4.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-Auto5.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-Auto6.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-LTR1.html dynamicDirAuto-refLTR-LTR.html
 == dynamicDirAuto-setLTR-LTR2.html dynamicDirAuto-refLTR-LTR.html