Bug 1316482 - add reftests part 2. draft
authorJeremy Chen <jeremychen@mozilla.com>
Thu, 12 Jan 2017 00:39:47 +0800
changeset 459264 c3db30c19b5d37e394f3a07aabb8fd8204df72cf
parent 459263 36324d8be0507dac19ecf861bb0cc8ec757d4885
child 459265 ae055d1a7a52efe6a6a85c4dec94f4fc22488472
push id41162
push userjichen@mozilla.com
push dateWed, 11 Jan 2017 16:40:21 +0000
bugs1316482
milestone53.0a1
Bug 1316482 - add reftests part 2. These tests are for testing different combinations of characters at two sides of a segment break. A script, generate-segment-break-rule-tests.py, is used to help generate the tests. MozReview-Commit-ID: Lh1w5ZDQfN1
layout/reftests/w3c-css/submitted/text3/reftest.list
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-001-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-001.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-002-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-002.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-003-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-003.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-004-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-004.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-005-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-005.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-006-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-006.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-007-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-007.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-008-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-008.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-009-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-009.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-010-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-010.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-011-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-011.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-012-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-012.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-013-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-013.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-014-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-014.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-015-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-015.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-016-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-016.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-017-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-017.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-018-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-018.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-019-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-019.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-020-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-020.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-021-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-021.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-022-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-022.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-023-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-023.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-024-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-024.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-025-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-025.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-026-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-026.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-027-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-027.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-028-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-028.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-029-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-029.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-030-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-030.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-031-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-031.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-032-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-032.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-033-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-033.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-034-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-034.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-035-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-035.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-036-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-036.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-037-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-037.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-038-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-038.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-039-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-039.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-040-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-040.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-041-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-041.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-042-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-042.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-043-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-043.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-044-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-044.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-045-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-045.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-046-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-046.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-047-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-047.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-048-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-048.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-049-ref.html
layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-049.html
layout/reftests/w3c-css/submitted/text3/support/generate-segment-break-transformation-rules-tests.py
--- a/layout/reftests/w3c-css/submitted/text3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/text3/reftest.list
@@ -10,8 +10,58 @@
 == segment-break-transformation-removable-1.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-2.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-3.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-4.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-unremovable-1.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-2.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-3.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-4.html segment-break-transformation-unremovable-ref.html
+
+== segment-break-transformation-rules-001.html segment-break-transformation-rules-001-ref.html
+== segment-break-transformation-rules-002.html segment-break-transformation-rules-002-ref.html
+== segment-break-transformation-rules-003.html segment-break-transformation-rules-003-ref.html
+== segment-break-transformation-rules-004.html segment-break-transformation-rules-004-ref.html
+== segment-break-transformation-rules-005.html segment-break-transformation-rules-005-ref.html
+== segment-break-transformation-rules-006.html segment-break-transformation-rules-006-ref.html
+== segment-break-transformation-rules-007.html segment-break-transformation-rules-007-ref.html
+== segment-break-transformation-rules-008.html segment-break-transformation-rules-008-ref.html
+== segment-break-transformation-rules-009.html segment-break-transformation-rules-009-ref.html
+== segment-break-transformation-rules-010.html segment-break-transformation-rules-010-ref.html
+== segment-break-transformation-rules-011.html segment-break-transformation-rules-011-ref.html
+== segment-break-transformation-rules-012.html segment-break-transformation-rules-012-ref.html
+== segment-break-transformation-rules-013.html segment-break-transformation-rules-013-ref.html
+== segment-break-transformation-rules-014.html segment-break-transformation-rules-014-ref.html
+== segment-break-transformation-rules-015.html segment-break-transformation-rules-015-ref.html
+== segment-break-transformation-rules-016.html segment-break-transformation-rules-016-ref.html
+== segment-break-transformation-rules-017.html segment-break-transformation-rules-017-ref.html
+== segment-break-transformation-rules-018.html segment-break-transformation-rules-018-ref.html
+== segment-break-transformation-rules-019.html segment-break-transformation-rules-019-ref.html
+== segment-break-transformation-rules-020.html segment-break-transformation-rules-020-ref.html
+== segment-break-transformation-rules-021.html segment-break-transformation-rules-021-ref.html
+== segment-break-transformation-rules-022.html segment-break-transformation-rules-022-ref.html
+== segment-break-transformation-rules-023.html segment-break-transformation-rules-023-ref.html
+== segment-break-transformation-rules-024.html segment-break-transformation-rules-024-ref.html
+== segment-break-transformation-rules-025.html segment-break-transformation-rules-025-ref.html
+== segment-break-transformation-rules-026.html segment-break-transformation-rules-026-ref.html
+== segment-break-transformation-rules-027.html segment-break-transformation-rules-027-ref.html
+== segment-break-transformation-rules-028.html segment-break-transformation-rules-028-ref.html
+== segment-break-transformation-rules-029.html segment-break-transformation-rules-029-ref.html
+== segment-break-transformation-rules-030.html segment-break-transformation-rules-030-ref.html
+== segment-break-transformation-rules-031.html segment-break-transformation-rules-031-ref.html
+== segment-break-transformation-rules-032.html segment-break-transformation-rules-032-ref.html
+== segment-break-transformation-rules-033.html segment-break-transformation-rules-033-ref.html
+== segment-break-transformation-rules-034.html segment-break-transformation-rules-034-ref.html
+== segment-break-transformation-rules-035.html segment-break-transformation-rules-035-ref.html
+== segment-break-transformation-rules-036.html segment-break-transformation-rules-036-ref.html
+== segment-break-transformation-rules-037.html segment-break-transformation-rules-037-ref.html
+== segment-break-transformation-rules-038.html segment-break-transformation-rules-038-ref.html
+== segment-break-transformation-rules-039.html segment-break-transformation-rules-039-ref.html
+== segment-break-transformation-rules-040.html segment-break-transformation-rules-040-ref.html
+== segment-break-transformation-rules-041.html segment-break-transformation-rules-041-ref.html
+== segment-break-transformation-rules-042.html segment-break-transformation-rules-042-ref.html
+== segment-break-transformation-rules-043.html segment-break-transformation-rules-043-ref.html
+== segment-break-transformation-rules-044.html segment-break-transformation-rules-044-ref.html
+== segment-break-transformation-rules-045.html segment-break-transformation-rules-045-ref.html
+== segment-break-transformation-rules-046.html segment-break-transformation-rules-046-ref.html
+== segment-break-transformation-rules-047.html segment-break-transformation-rules-047-ref.html
+== segment-break-transformation-rules-048.html segment-break-transformation-rules-048-ref.html
+== segment-break-transformation-rules-049.html segment-break-transformation-rules-049-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-001-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTHFULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-001.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-001-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTH&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-002-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTHテスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-002.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-002-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTH&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-003-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTH測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-003.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-003-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>FULLWIDTH&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-004-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-004.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-004-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-005-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-005.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-005-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-006-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-006.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-006-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-007-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-007.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Full-width (F)/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-007-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>FULLWIDTH&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-008-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テストFULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-008.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-008-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テスト&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-009-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テストテスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-009.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-009-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テスト&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-010-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テスト測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-010.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-010-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>テスト&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-011-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-011.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-011-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-012-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-012.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-012-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-013-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-013.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-013-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-014-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-014.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Half-width (H)/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-014-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>テスト&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-015-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-015.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-015-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-016-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-016.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-016-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-017-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-017.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-017-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>測試&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-018-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-018.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-018-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-019-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-019.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-019-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-020-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-020.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-020-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-021-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-021.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Wide (W) except Hangul/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-021-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>測試&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-022-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-022.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-022-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-023-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-023.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-023-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-024-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-024.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-024-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-025-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-025.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-025-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-026-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-026.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-026-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-027-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-027.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-027-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-028-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-028.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Narrow (Na)/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-028-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>narrow&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-029-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-029.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-029-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-030-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-030.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-030-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-031-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-031.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-031-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-032-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-032.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-032-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-033-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-033.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-033-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-034-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-034.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-034-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-035-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-035.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with East Asian Ambiguous (A)/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-035-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>■&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-036-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-036.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-036-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-037-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-037.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-037-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-038-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-038.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-038-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-039-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-039.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-039-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-040-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-040.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-040-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-041-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-041.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-041-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-042-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-042.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Not East Asian (Neutral)/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-042-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>آزمون&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-043-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-043.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/East Asian Full-width (F) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-043-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;FULLWIDTH</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-044-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-044.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/East Asian Half-width (H) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-044-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;テスト</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-045-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-045.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/East Asian Wide (W) except Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-045-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;測試</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-046-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-046.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/East Asian Narrow (Na) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-046-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;narrow</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-047-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-047.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/East Asian Ambiguous (A) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-047-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;■</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-048-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-048.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/Not East Asian (Neutral) in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-048-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;آزمون</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-049-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x0020;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/segment-break-transformation-rules-049.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with Hangul/Hangul in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-049-ref.html">
+<style> p { font-family: ahem; } </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>테스트&#x000a;테스트</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/support/generate-segment-break-transformation-rules-tests.py
@@ -0,0 +1,109 @@
+#!/usr/bin/env python
+# - * - coding: UTF-8 - * -
+
+"""
+This script generates tests segment-break-transformation-rules-001 ~ 049 which
+cover all possible combinations of characters at two sides of segment breaks.
+More specifically, there are seven types of characters involve in these rules:
+
+1. East Asian Full-width (F)
+2. East Asian Half-width (H)
+3. East Asian Wide (W) except Hangul
+4. East Asian Narrow (Na)
+5. East Asian Ambiguous (A)
+6. Not East Asian (Neutral)
+7. Hangul
+
+So there are 49 different combinations. It outputs a list of all
+tests it generated in the format of Mozilla reftest.list to the stdout.
+"""
+
+from __future__ import unicode_literals
+
+TEST_FILE = 'segment-break-transformation-rules-{:03}.html'
+TEST_TEMPLATE = '''<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Test: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-transform">
+<meta name="assert" content="'segment-break-transformation-rules: with {prev}/{next} in front/back of the semgment break.">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<link rel="match" href="segment-break-transformation-rules-{index:03}-ref.html">
+<style> p {{ font-family: ahem; }} </style>
+<div>Pass if there is {expect} white space between the two strings below.
+<p>{prevchar}&#x000a;{nextchar}</p>
+</div>
+'''
+
+REF_FILE = 'segment-break-transformation-rules-{:03}-ref.html'
+REF_TEMPLATE_REMOVE = '''<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p {{ font-family: ahem; }} </style>
+<div>Pass if there is NO white space between the two strings below.
+<p>{0}{1}</p>
+</div>
+'''
+REF_TEMPLATE_KEEP = '''<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reftest Reference: Segment Break Transformation Rules</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="stylesheet" type="text/css" href="support/ahem.css" />
+<style> p {{ font-family: ahem; }} </style>
+<div>Pass if there is ONE white space between the two strings below.
+<p>{0}{2}{1}</p>
+</div>
+'''
+
+CHAR_SET = [
+        ('East Asian Full-width (F)',         'FULLWIDTH'),
+        ('East Asian Half-width (H)',         'テスト'),
+        ('East Asian Wide (W) except Hangul', '測試'),
+        ('East Asian Narrow (Na)',            'narrow'),
+        ('East Asian Ambiguous (A)',          '■'),
+        ('Not East Asian (Neutral)',          'آزمون'),
+        ('Hangul',                            '테스트'),
+        ]
+
+def write_file(filename, content):
+    with open(filename, 'wb') as f:
+        f.write(content.encode('UTF-8'))
+
+print("# START tests from {}".format(__file__))
+global idx
+idx = 0
+for i, (prevtype, prevchars) in enumerate(CHAR_SET):
+    for j, (nextype, nextchars) in enumerate(CHAR_SET):
+        idx += 1
+        reffilename = REF_FILE.format(idx)
+        testfilename = TEST_FILE.format(idx)
+        # According to CSS Text 3 - 4.1.2. Segment Break Transformation Rules,
+        # if the East Asian Width property of both the character before and
+        # after the segment break is F, W, or H (not A), and neither side is
+        # Hangul, then the segment break is removed. Otherwise, the segment
+        # break is converted to a space (U+0020).
+        if i < 3 and j < 3:
+            write_file(reffilename,
+                       REF_TEMPLATE_REMOVE.format(prevchars, nextchars))
+            write_file(testfilename,
+                       TEST_TEMPLATE.format(index=idx, prev=prevtype,
+                                            next=nextype,
+                                            prevchar=prevchars,
+                                            nextchar=nextchars,
+                                            expect='NO'))
+        else:
+            write_file(reffilename,
+                       REF_TEMPLATE_KEEP.format(prevchars, nextchars, '&#x0020;'))
+            write_file(testfilename,
+                       TEST_TEMPLATE.format(index=idx, prev=prevtype,
+                                            next=nextype,
+                                            prevchar=prevchars,
+                                            nextchar=nextchars,
+                                            expect='ONE'))
+        print("== {} {}".format(testfilename, reffilename))
+print("# END tests from {}".format(__file__))