Bug 1577053 part 2: Re-run scripts to generate text-emphasis-* reftests. r=jfkthame
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sat, 31 Aug 2019 01:11:07 +0000
changeset 554773 45faf9b6d9a109d89628d06b25b15b25711e35fa
parent 554772 9426de4428ca3ea13d1a1cb64e6d90cfb89c11aa
child 554774 84c638a71583e203c5353876c9aca65d8baf8da6
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1577053
milestone70.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 1577053 part 2: Re-run scripts to generate text-emphasis-* reftests. r=jfkthame This patch was generated by running each of the scripts in the folder layout/reftests/w3c-css/submitted/text-decor-3/support/ (This patch also includes a manual edit to reftest.list, to annotate some Win7 fuzziness that was caused by the new choice of font for a set of tests here.) Differential Revision: https://phabricator.services.mozilla.com/D44258
layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003e.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003f.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003g.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004e.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004f.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004g.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005e.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005f.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005g.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006d.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006e.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006f.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006g.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cc.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cf.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zl.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zp.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zs.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012c.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017b.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019a.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020.html
layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020a.html
--- a/layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
@@ -13,19 +13,19 @@ fuzzy-if(gtkWidget,0-3,0-4) fuzzy-if(ski
 == text-emphasis-style-property-010Zs.html text-emphasis-style-property-010-ref.html
 == text-emphasis-style-property-010Zl.html text-emphasis-style-property-010-ref.html
 == text-emphasis-style-property-010Zp.html text-emphasis-style-property-010-ref.html
 == text-emphasis-style-property-010Cc.html text-emphasis-style-property-010-ref.html
 fuzzy-if(skiaContent,0-1,0-336) == text-emphasis-style-property-010Cf.html text-emphasis-style-property-010-ref.html
 # END tests from support/generate-text-emphasis-style-property-010-tests.sh
 == text-emphasis-style-property-010Cn.html text-emphasis-style-property-010-ref.html
 # START tests from support/generate-text-emphasis-style-property-tests.py
-fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-011.html text-emphasis-style-property-011-ref.html
-fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-011a.html text-emphasis-style-property-011-ref.html
-fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-011b.html text-emphasis-style-property-011-ref.html
+fuzzy-if(gtkWidget,0-3,0-4) fuzzy-if(winWidget,0-56,0-50) == text-emphasis-style-property-011.html text-emphasis-style-property-011-ref.html
+fuzzy-if(gtkWidget,0-3,0-4) fuzzy-if(winWidget,0-56,0-50) == text-emphasis-style-property-011a.html text-emphasis-style-property-011-ref.html
+fuzzy-if(gtkWidget,0-3,0-4) fuzzy-if(winWidget,0-56,0-50) == text-emphasis-style-property-011b.html text-emphasis-style-property-011-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-012.html text-emphasis-style-property-012-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-012a.html text-emphasis-style-property-012-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-012b.html text-emphasis-style-property-012-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-012c.html text-emphasis-style-property-012-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-013.html text-emphasis-style-property-013-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-013a.html text-emphasis-style-property-013-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-013b.html text-emphasis-style-property-013-ref.html
 fuzzy-if(gtkWidget,0-3,0-4) == text-emphasis-style-property-014.html text-emphasis-style-property-014-ref.html
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Reference: text-emphasis line height, top</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are below the black line:</p>
-<div style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; ruby-position: over"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
+<div lang="ja" style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; ruby-position: over"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, top, horizontal-tb, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-001-ref.html">
 <p>Pass if the emphasis marks are below the black line:</p>
-<div style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-001b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, top, horizontal-tb, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-001-ref.html">
 <p>Pass if the emphasis marks are below the black line:</p>
-<div style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Reference: text-emphasis line height, bottom</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are over the black line:</p>
-<div style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; ruby-position: under"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
+<div lang="ja" style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; ruby-position: under"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, bottom, horizontal-tb, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-002-ref.html">
 <p>Pass if the emphasis marks are over the black line:</p>
-<div style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: under right;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: under right;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-002b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, bottom, horizontal-tb, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-002-ref.html">
 <p>Pass if the emphasis marks are over the black line:</p>
-<div style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: under right;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-bottom: 1px solid black; writing-mode: horizontal-tb; text-emphasis-position: under right;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Reference: text-emphasis line height, right</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are to the left of the black line:</p>
-<div style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; ruby-position: over"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
+<div lang="ja" style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; ruby-position: over"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, right, vertical-rl, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-003-ref.html">
 <p>Pass if the emphasis marks are to the left of the black line:</p>
-<div style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, right, vertical-rl, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-003-ref.html">
 <p>Pass if the emphasis marks are to the left of the black line:</p>
-<div style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, right, vertical-lr, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-003-ref.html">
 <p>Pass if the emphasis marks are to the left of the black line:</p>
-<div style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over right;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-003d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, right, vertical-lr, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-003-ref.html">
 <p>Pass if the emphasis marks are to the left of the black line:</p>
-<div style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-right: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over right;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Reference: text-emphasis line height, left</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are to the right of the black line:</p>
-<div style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; ruby-position: under"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
+<div lang="ja" style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; ruby-position: under"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, left, vertical-rl, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-004-ref.html">
 <p>Pass if the emphasis marks are to the right of the black line:</p>
-<div style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over left;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over left;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, left, vertical-rl, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-004-ref.html">
 <p>Pass if the emphasis marks are to the right of the black line:</p>
-<div style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over left;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-rl; text-emphasis-position: over left;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, left, vertical-lr, div</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-004-ref.html">
 <p>Pass if the emphasis marks are to the right of the black line:</p>
-<div style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over left;text-emphasis: circle;">試験テスト</div>
+<div lang="ja" style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over left;text-emphasis: circle;">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-line-height-004d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-line-height-tests.py -->
 <title>CSS Test: text-emphasis line height, left, vertical-lr, span</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
 <link rel="match" href="text-emphasis-line-height-004-ref.html">
 <p>Pass if the emphasis marks are to the right of the black line:</p>
-<div style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over left;"><span style="text-emphasis: circle;">試験テスト</span></div>
+<div lang="ja" style="line-height: 1; border-left: 1px solid black; writing-mode: vertical-lr; text-emphasis-position: over left;"><span style="text-emphasis: circle;">試験テスト</span></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over right, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over right' with 'writing-mode: horizontal-tb' puts emphasis marks over the text.">
 <link rel="match" href="text-emphasis-position-property-001-ref.html">
 <p>Pass if the emphasis marks are over the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right over, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right over' with 'writing-mode: horizontal-tb' puts emphasis marks over the text.">
 <link rel="match" href="text-emphasis-position-property-001-ref.html">
 <p>Pass if the emphasis marks are over the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over left, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over left' with 'writing-mode: horizontal-tb' puts emphasis marks over the text.">
 <link rel="match" href="text-emphasis-position-property-001-ref.html">
 <p>Pass if the emphasis marks are over the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-001c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left over, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left over' with 'writing-mode: horizontal-tb' puts emphasis marks over the text.">
 <link rel="match" href="text-emphasis-position-property-001-ref.html">
 <p>Pass if the emphasis marks are over the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under right, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under right' with 'writing-mode: horizontal-tb' puts emphasis marks under the text.">
 <link rel="match" href="text-emphasis-position-property-002-ref.html">
 <p>Pass if the emphasis marks are under the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right under, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right under' with 'writing-mode: horizontal-tb' puts emphasis marks under the text.">
 <link rel="match" href="text-emphasis-position-property-002-ref.html">
 <p>Pass if the emphasis marks are under the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under left, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under left' with 'writing-mode: horizontal-tb' puts emphasis marks under the text.">
 <link rel="match" href="text-emphasis-position-property-002-ref.html">
 <p>Pass if the emphasis marks are under the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-002c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left under, horizontal-tb</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left under' with 'writing-mode: horizontal-tb' puts emphasis marks under the text.">
 <link rel="match" href="text-emphasis-position-property-002-ref.html">
 <p>Pass if the emphasis marks are under the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: horizontal-tb; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right over, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right over' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over right, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over right' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right under, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right under' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under right, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under right' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right over, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right over' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: right over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003e.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003e.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over right, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over right' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: over right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003f.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003f.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right under, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right under' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: right under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003g.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-003g.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under right, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under right' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-003-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: under right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left over, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left over' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over left, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over left' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left under, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left under' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under left, vertical-rl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under left' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left over, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left over' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: left over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004e.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004e.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over left, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over left' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: over left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004f.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004f.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left under, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left under' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: left under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004g.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-004g.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under left, vertical-lr</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under left' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-004-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: mixed; text-emphasis-position: under left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right over, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right over' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: right over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: right over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over right, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over right' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: over right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: over right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right under, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right under' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: right under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: right under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under right, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under right' with 'writing-mode: vertical-rl' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: under right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: under right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right over, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right over' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: right over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: right over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005e.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005e.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over right, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over right' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: over right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: over right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005f.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005f.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: right under, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: right under' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: right under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: right under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005g.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-005g.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under right, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under right' with 'writing-mode: vertical-lr' puts emphasis marks to the right of the text.">
 <link rel="match" href="text-emphasis-position-property-005-ref.html">
 <p>Pass if the emphasis marks are to the right of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: under right">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: under right">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left over, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left over' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: left over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: left over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over left, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over left' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: over left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: over left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left under, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left under' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: left under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: left under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under left, vertical-rl, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under left' with 'writing-mode: vertical-rl' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: under left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-rl; text-orientation: sideways; text-emphasis-position: under left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006d.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006d.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left over, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left over' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: left over">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: left over">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006e.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006e.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: over left, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: over left' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: over left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: over left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006f.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006f.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: left under, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: left under' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: left under">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: left under">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006g.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-position-property-006g.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-position-property-tests.py -->
 <title>CSS Test: text-emphasis-position: under left, vertical-lr, sideways</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="'text-emphasis-position: under left' with 'writing-mode: vertical-lr' puts emphasis marks to the left of the text.">
 <link rel="match" href="text-emphasis-position-property-006-ref.html">
 <p>Pass if the emphasis marks are to the left of the text below:</p>
-<div style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: under left">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis: circle; writing-mode: vertical-lr; text-orientation: sideways; text-emphasis-position: under left">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Reference: text-emphasis and ruby, horizontal-tb, top</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rtc { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: horizontal-tb; ruby-position: over">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: horizontal-tb; ruby-position: over">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-001.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, horizontal-tb, top</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-001-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: horizontal-tb; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: horizontal-tb; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Reference: text-emphasis and ruby, horizontal-tb, bottom</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rtc { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: horizontal-tb; ruby-position: under">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: horizontal-tb; ruby-position: under">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-002.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, horizontal-tb, bottom</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-002-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: horizontal-tb; ruby-position: under; text-emphasis-position: under right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: horizontal-tb; ruby-position: under; text-emphasis-position: under right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Reference: text-emphasis and ruby, vertical-rl, right</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rtc { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-rl; ruby-position: over">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-rl; ruby-position: over">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, vertical-rl, right</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-003-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-rl; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-rl; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-003a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, vertical-lr, right</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-003-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-lr; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-lr; ruby-position: over; text-emphasis-position: over right">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Reference: text-emphasis and ruby, vertical-rl, left</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rtc { font-variant-east-asian: inherit; } </style>
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-rl; ruby-position: under">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-rl; ruby-position: under">ルビ<ruby>と<rtc>&#x25CF;</rtc>圏<rt>けん</rt><rtc>&#x25CF;</rtc>点<rt>てん</rt><rtc>&#x25CF;</rtc>を<rtc>&#x25CF;</rtc></ruby>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, vertical-rl, left</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-004-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-rl; ruby-position: under; text-emphasis-position: over left">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-rl; ruby-position: under; text-emphasis-position: over left">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-ruby-004a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-ruby-tests.py -->
 <title>CSS Test: text-emphasis and ruby, vertical-lr, left</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
 <meta name="assert" content="emphasis marks are drawn outside the ruby">
 <link rel="match" href="text-emphasis-ruby-004-ref.html">
 <p>Pass if the emphasis marks are outside the ruby:</p>
-<div style="line-height: 5; writing-mode: vertical-lr; ruby-position: under; text-emphasis-position: over left">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
+<div lang="ja" style="line-height: 5; writing-mode: vertical-lr; ruby-position: under; text-emphasis-position: over left">ルビ<span style="text-emphasis: circle">と<ruby>圏<rt>けん</rt>点<rt>てん</rt></ruby>を</span>同時</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cc.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cc.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-010-tests.sh -->
 <title>CSS Test: text-emphasis, Cc</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="Emphasis marks should not be rendered for characters in general category Cc">
 <link rel="match" href="text-emphasis-style-property-010-ref.html">
 <p>Pass if there is nothing rendered below:</p>
 <div style="color: white; white-space: pre-wrap; text-emphasis: filled circle red">
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cf.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Cf.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-010-tests.sh -->
 <title>CSS Test: text-emphasis, Cf</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="Emphasis marks should not be rendered for characters in general category Cf">
 <link rel="match" href="text-emphasis-style-property-010-ref.html">
 <p>Pass if there is nothing rendered below:</p>
 <div style="color: white; white-space: pre-wrap; text-emphasis: filled circle red">
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zl.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zl.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-010-tests.sh -->
 <title>CSS Test: text-emphasis, Zl</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="Emphasis marks should not be rendered for characters in general category Zl">
 <link rel="match" href="text-emphasis-style-property-010-ref.html">
 <p>Pass if there is nothing rendered below:</p>
 <div style="color: white; white-space: pre-wrap; text-emphasis: filled circle red">
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zp.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zp.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-010-tests.sh -->
 <title>CSS Test: text-emphasis, Zp</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="Emphasis marks should not be rendered for characters in general category Zp">
 <link rel="match" href="text-emphasis-style-property-010-ref.html">
 <p>Pass if there is nothing rendered below:</p>
 <div style="color: white; white-space: pre-wrap; text-emphasis: filled circle red">
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zs.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-010Zs.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-010-tests.sh -->
 <title>CSS Test: text-emphasis, Zs</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="Emphasis marks should not be rendered for characters in general category Zs">
 <link rel="match" href="text-emphasis-style-property-010-ref.html">
 <p>Pass if there is nothing rendered below:</p>
 <div style="color: white; white-space: pre-wrap; text-emphasis: filled circle red">
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: filled dot</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x2022;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x2022;</rt>験<rt>&#x2022;</rt>テ<rt>&#x2022;</rt>ス<rt>&#x2022;</rt>ト<rt>&#x2022;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x2022;</rt>験<rt>&#x2022;</rt>テ<rt>&#x2022;</rt>ス<rt>&#x2022;</rt>ト<rt>&#x2022;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled dot</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled dot' produces U+2022 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-011-ref.html">
 <p>Pass if there is a '&#x2022;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled dot">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled dot">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: dot filled</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: dot filled' produces U+2022 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-011-ref.html">
 <p>Pass if there is a '&#x2022;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: dot filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: dot filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-011b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: dot</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: dot' produces U+2022 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-011-ref.html">
 <p>Pass if there is a '&#x2022;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: dot">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: dot">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: filled circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25CF;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled circle' produces U+25CF as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-012-ref.html">
 <p>Pass if there is a '&#x25CF;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: circle filled</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: circle filled' produces U+25CF as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-012-ref.html">
 <p>Pass if there is a '&#x25CF;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: circle filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: circle filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: circle' produces U+25CF as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-012-ref.html">
 <p>Pass if there is a '&#x25CF;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012c.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-012c.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled, horizontal</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled' produces U+25CF as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-012-ref.html">
 <p>Pass if there is a '&#x25CF;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: filled double-circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25C9;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25C9;</rt>験<rt>&#x25C9;</rt>テ<rt>&#x25C9;</rt>ス<rt>&#x25C9;</rt>ト<rt>&#x25C9;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25C9;</rt>験<rt>&#x25C9;</rt>テ<rt>&#x25C9;</rt>ス<rt>&#x25C9;</rt>ト<rt>&#x25C9;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled double-circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled double-circle' produces U+25C9 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-013-ref.html">
 <p>Pass if there is a '&#x25C9;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled double-circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled double-circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: double-circle filled</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: double-circle filled' produces U+25C9 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-013-ref.html">
 <p>Pass if there is a '&#x25C9;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: double-circle filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: double-circle filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-013b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: double-circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: double-circle' produces U+25C9 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-013-ref.html">
 <p>Pass if there is a '&#x25C9;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: double-circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: double-circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: filled triangle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25B2;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25B2;</rt>験<rt>&#x25B2;</rt>テ<rt>&#x25B2;</rt>ス<rt>&#x25B2;</rt>ト<rt>&#x25B2;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25B2;</rt>験<rt>&#x25B2;</rt>テ<rt>&#x25B2;</rt>ス<rt>&#x25B2;</rt>ト<rt>&#x25B2;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled triangle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled triangle' produces U+25B2 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-014-ref.html">
 <p>Pass if there is a '&#x25B2;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled triangle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled triangle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: triangle filled</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: triangle filled' produces U+25B2 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-014-ref.html">
 <p>Pass if there is a '&#x25B2;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: triangle filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: triangle filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-014b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: triangle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: triangle' produces U+25B2 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-014-ref.html">
 <p>Pass if there is a '&#x25B2;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: triangle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: triangle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: filled sesame</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#xFE45;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#xFE45;</rt>験<rt>&#xFE45;</rt>テ<rt>&#xFE45;</rt>ス<rt>&#xFE45;</rt>ト<rt>&#xFE45;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#xFE45;</rt>験<rt>&#xFE45;</rt>テ<rt>&#xFE45;</rt>ス<rt>&#xFE45;</rt>ト<rt>&#xFE45;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: filled sesame</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: filled sesame' produces U+FE45 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-015-ref.html">
 <p>Pass if there is a '&#xFE45;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: filled sesame">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: filled sesame">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: sesame filled</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: sesame filled' produces U+FE45 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-015-ref.html">
 <p>Pass if there is a '&#xFE45;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: sesame filled">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: sesame filled">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-015b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: sesame</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: sesame' produces U+FE45 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-015-ref.html">
 <p>Pass if there is a '&#xFE45;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: sesame">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: sesame">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: open dot</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25E6;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25E6;</rt>験<rt>&#x25E6;</rt>テ<rt>&#x25E6;</rt>ス<rt>&#x25E6;</rt>ト<rt>&#x25E6;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25E6;</rt>験<rt>&#x25E6;</rt>テ<rt>&#x25E6;</rt>ス<rt>&#x25E6;</rt>ト<rt>&#x25E6;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open dot</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open dot' produces U+25E6 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-016-ref.html">
 <p>Pass if there is a '&#x25E6;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open dot">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open dot">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-016a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: dot open</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: dot open' produces U+25E6 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-016-ref.html">
 <p>Pass if there is a '&#x25E6;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: dot open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: dot open">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: open circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25CB;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25CB;</rt>験<rt>&#x25CB;</rt>テ<rt>&#x25CB;</rt>ス<rt>&#x25CB;</rt>ト<rt>&#x25CB;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25CB;</rt>験<rt>&#x25CB;</rt>テ<rt>&#x25CB;</rt>ス<rt>&#x25CB;</rt>ト<rt>&#x25CB;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open circle' produces U+25CB as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-017-ref.html">
 <p>Pass if there is a '&#x25CB;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: circle open</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: circle open' produces U+25CB as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-017-ref.html">
 <p>Pass if there is a '&#x25CB;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: circle open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: circle open">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017b.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-017b.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open, horizontal</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open' produces U+25CB as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-017-ref.html">
 <p>Pass if there is a '&#x25CB;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: open double-circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25CE;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25CE;</rt>験<rt>&#x25CE;</rt>テ<rt>&#x25CE;</rt>ス<rt>&#x25CE;</rt>ト<rt>&#x25CE;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25CE;</rt>験<rt>&#x25CE;</rt>テ<rt>&#x25CE;</rt>ス<rt>&#x25CE;</rt>ト<rt>&#x25CE;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open double-circle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open double-circle' produces U+25CE as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-018-ref.html">
 <p>Pass if there is a '&#x25CE;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open double-circle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open double-circle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-018a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: double-circle open</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: double-circle open' produces U+25CE as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-018-ref.html">
 <p>Pass if there is a '&#x25CE;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: double-circle open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: double-circle open">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: open triangle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#x25B3;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#x25B3;</rt>験<rt>&#x25B3;</rt>テ<rt>&#x25B3;</rt>ス<rt>&#x25B3;</rt>ト<rt>&#x25B3;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#x25B3;</rt>験<rt>&#x25B3;</rt>テ<rt>&#x25B3;</rt>ス<rt>&#x25B3;</rt>ト<rt>&#x25B3;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open triangle</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open triangle' produces U+25B3 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-019-ref.html">
 <p>Pass if there is a '&#x25B3;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open triangle">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open triangle">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-019a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: triangle open</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: triangle open' produces U+25B3 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-019-ref.html">
 <p>Pass if there is a '&#x25B3;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: triangle open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: triangle open">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020-ref.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020-ref.html
@@ -1,8 +1,10 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Reference: text-emphasis-style: open sesame</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <style> rt { font-variant-east-asian: inherit; } </style>
 <p>Pass if there is a '&#xFE46;' above every character below:</p>
-<div style="line-height: 5;"><ruby>試<rt>&#xFE46;</rt>験<rt>&#xFE46;</rt>テ<rt>&#xFE46;</rt>ス<rt>&#xFE46;</rt>ト<rt>&#xFE46;</rt></ruby></div>
+<div lang="ja" style="line-height: 5;"><ruby>試<rt>&#xFE46;</rt>験<rt>&#xFE46;</rt>テ<rt>&#xFE46;</rt>ス<rt>&#xFE46;</rt>ト<rt>&#xFE46;</rt></ruby></div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: open sesame</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: open sesame' produces U+FE46 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-020-ref.html">
 <p>Pass if there is a '&#xFE46;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: open sesame">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: open sesame">試験テスト</div>
--- a/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020a.html
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-emphasis-style-property-020a.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
+<!-- This file was generated automatically by the script
+     ./support/generate-text-emphasis-style-property-tests.py -->
 <title>CSS Test: text-emphasis-style: sesame open</title>
 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property">
 <meta name="assert" content="'text-emphasis-style: sesame open' produces U+FE46 as emphasis marks.">
 <link rel="match" href="text-emphasis-style-property-020-ref.html">
 <p>Pass if there is a '&#xFE46;' above every character below:</p>
-<div style="line-height: 5; text-emphasis-style: sesame open">試験テスト</div>
+<div lang="ja" style="line-height: 5; text-emphasis-style: sesame open">試験テスト</div>