diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/text | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/text')
421 files changed, 8661 insertions, 0 deletions
diff --git a/layout/reftests/text/1170688-ref.html b/layout/reftests/text/1170688-ref.html new file mode 100644 index 000000000..0fe16cc25 --- /dev/null +++ b/layout/reftests/text/1170688-ref.html @@ -0,0 +1,21 @@ +<!doctype html> +<html> +<head> +<meta charset=utf-8> +<style type="text/css"> +@font-face { + font-family: local-gentium; + src: url(../fonts/sil/GenR102.ttf); +} +p { + font: 300% local-gentium, serif; + font-weight: bold; + color: rgb(100,255,100); + margin: 0; +} +</style> +</head> +<body> +<p>Test</p> +</body> +</html> diff --git a/layout/reftests/text/1170688.html b/layout/reftests/text/1170688.html new file mode 100644 index 000000000..d83d81b3c --- /dev/null +++ b/layout/reftests/text/1170688.html @@ -0,0 +1,21 @@ +<!doctype html> +<html> +<head> +<meta charset=utf-8> +<style type="text/css"> +@font-face { + font-family: local-gentium; + src: url(../fonts/sil/GenR102.ttf); +} +p { + font: 300% local-gentium, serif; + font-weight: bold; + color: rgba(100,255,100, 0.2); + margin: 0; +} +</style> +</head> +<body> +<p>Test</p> +</body> +</html> diff --git a/layout/reftests/text/444656-ref.html b/layout/reftests/text/444656-ref.html new file mode 100644 index 000000000..9b6e4534b --- /dev/null +++ b/layout/reftests/text/444656-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test soft hyphen in rtl text</title> + </head> + <body dir="rtl"> + <p>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכל</p> + <p>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשת-<br>אבגדהוזחטיכלמנסעפצקרשת</p> + </p> + </body> +</html> diff --git a/layout/reftests/text/444656.html b/layout/reftests/text/444656.html new file mode 100644 index 000000000..ad1ff62aa --- /dev/null +++ b/layout/reftests/text/444656.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test soft hyphen in rtl text</title> + <style> + div { width: -moz-min-content; position: relative; } + + /*prevent the soft hyphens from contributing to the minimum content width*/ + div > p:nth-child(2) { + position: absolute; + top: auto; + right: 0; + margin-top: 0; + width: 100%; + } + </style> + </head> + <body dir="rtl"> + <div> + <!-- add a first paragraph with no soft hyphens to set minimum content width --> + <p>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכל</p> + <p>אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת</p> + </p> + </div> + </body> +</html> diff --git a/layout/reftests/text/449555-1-ref.html b/layout/reftests/text/449555-1-ref.html new file mode 100644 index 000000000..4ca2caa54 --- /dev/null +++ b/layout/reftests/text/449555-1-ref.html @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh" xml:lang="zh"> +<head> +<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<style type="text/css"> + * { word-wrap: normal;} +</style> +<title>Test Wordwrap</title> +</head> +<body> + <p>Test Text Input:<input type="text" id="username" name="username" size="25" value="this is a very loooooooooooooooooooooooooooooooooog text."/></p> + <p>Test Password Input:<input type="password" id="password" name="password" size="25" /></p> + +<p> +<select name="num" style="width: 8em"> +<option value="1">1111111111111111111111111111111111111111</option> +<option value="2">2222222222222222222222222222222222222222</option> +<option value="3">3333333333333333333333333333333333333333</option> +<option value="4">4444444444444444444444444444444444444444</option> +</select> +</p> + +<p> +<select name="num2" size="6" style="width: 8em"> +<option value="1">1111111111111111111111111111111111111111</option> +<option value="2">2222222222222222222222222222222222222222</option> +<option value="3">3333333333333333333333333333333333333333</option> +<option value="4">4444444444444444444444444444444444444444</option> +</select> +</p> + +</body> +</html> diff --git a/layout/reftests/text/449555-1.html b/layout/reftests/text/449555-1.html new file mode 100644 index 000000000..7df5d33ba --- /dev/null +++ b/layout/reftests/text/449555-1.html @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh" xml:lang="zh"> +<head> +<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<style type="text/css"> + * { word-wrap: break-word;} +</style> +<title>Test Wordwrap</title> +</head> +<body> + <p>Test Text Input:<input type="text" id="username" name="username" size="25" value="this is a very loooooooooooooooooooooooooooooooooog text."/></p> + <p>Test Password Input:<input type="password" id="password" name="password" size="25" /></p> + +<p> +<select name="num" style="width: 8em"> +<option value="1">1111111111111111111111111111111111111111</option> +<option value="2">2222222222222222222222222222222222222222</option> +<option value="3">3333333333333333333333333333333333333333</option> +<option value="4">4444444444444444444444444444444444444444</option> +</select> +</p> + +<p> +<select name="num2" size="6" style="width: 8em"> +<option value="1">1111111111111111111111111111111111111111</option> +<option value="2">2222222222222222222222222222222222222222</option> +<option value="3">3333333333333333333333333333333333333333</option> +<option value="4">4444444444444444444444444444444444444444</option> +</select> +</p> + +</body> +</html> diff --git a/layout/reftests/text/467722-ref.html b/layout/reftests/text/467722-ref.html new file mode 100644 index 000000000..28777a1cb --- /dev/null +++ b/layout/reftests/text/467722-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<head> +</head> +<body style="font-size: 150px;"> + +‍鮸酃 + +</body> +</html> diff --git a/layout/reftests/text/467722.html b/layout/reftests/text/467722.html new file mode 100644 index 000000000..5c7ae3835 --- /dev/null +++ b/layout/reftests/text/467722.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<head> +</head> +<body style="font-size: 150px;" onload="document.documentElement.appendChild(document.body);"> + +‍鮸酃 + +</body> +</html> diff --git a/layout/reftests/text/475092-pos.html b/layout/reftests/text/475092-pos.html new file mode 100644 index 000000000..9c907d08f --- /dev/null +++ b/layout/reftests/text/475092-pos.html @@ -0,0 +1,19 @@ +<html>
+<head>
+ <style type="text/css">
+ @font-face {
+ font-family: Pos;
+ src: url(../fonts/PositioningTest1.ttf);
+ }
+ p {
+ font-family: Pos;
+ font-size: 50px;
+ opacity: 0.5;
+ }
+ </style>
+</head>
+<body>
+ <!-- The PositioningTest2 font uses a GPOS positioning lookup
+ to replace the 'o' with a raised version of the glyph -->
+ <p>Hello World!</p>
+</body>
diff --git a/layout/reftests/text/475092-ref.html b/layout/reftests/text/475092-ref.html new file mode 100644 index 000000000..5e9509783 --- /dev/null +++ b/layout/reftests/text/475092-ref.html @@ -0,0 +1,19 @@ +<html>
+<head>
+ <style type="text/css">
+ @font-face {
+ font-family: Pos;
+ src: url(../fonts/PositioningTest1.ttf);
+ }
+ p {
+ font-family: Pos;
+ font-size: 50px;
+ opacity: 0.5;
+ }
+ </style>
+</head>
+<body>
+ <!-- The capital O character in the PositioningTest font
+ is actually a raised lowercase o glyph -->
+ <p>HellO WOrld!</p>
+</body>
diff --git a/layout/reftests/text/475092-sub.html b/layout/reftests/text/475092-sub.html new file mode 100644 index 000000000..84b675726 --- /dev/null +++ b/layout/reftests/text/475092-sub.html @@ -0,0 +1,19 @@ +<html>
+<head>
+ <style type="text/css">
+ @font-face {
+ font-family: Pos;
+ src: url(../fonts/PositioningTest2.ttf);
+ }
+ p {
+ font-family: Pos;
+ font-size: 50px;
+ opacity: 0.5;
+ }
+ </style>
+</head>
+<body>
+ <!-- The PositioningTest2 font uses a GSUB substitution lookup
+ to replace the 'o' with a raised version of the glyph -->
+ <p>Hello World!</p>
+</body>
diff --git a/layout/reftests/text/476378-soft-hyphen-fallback-ref.html b/layout/reftests/text/476378-soft-hyphen-fallback-ref.html new file mode 100644 index 000000000..30bf4040d --- /dev/null +++ b/layout/reftests/text/476378-soft-hyphen-fallback-ref.html @@ -0,0 +1,19 @@ +<html> +<head> +<title>Soft hyphen font fallback (for bug 476378)</title> +</head> +<body> + +<!-- On OS X, Hoefler Text has a distinctive hyphen; on Windows, Segoe UI does. + In each case U+2010 will fall back to a font with a very different glyph. --> +<div style="width: 50pt; + font-family: Hoefler Text, Segoe UI, Trebuchet MS, Lucida Grande; + font-size: 24pt;"> + +<!-- reference text uses an explicit ASCII hyphen at the expected break point --> +<p>aaa-<br>aa</p> + +</div> + +</body> +</html> diff --git a/layout/reftests/text/476378-soft-hyphen-fallback.html b/layout/reftests/text/476378-soft-hyphen-fallback.html new file mode 100644 index 000000000..f5aaec8ba --- /dev/null +++ b/layout/reftests/text/476378-soft-hyphen-fallback.html @@ -0,0 +1,19 @@ +<html> +<head> +<title>Soft hyphen font fallback (for bug 476378)</title> +</head> +<body> + +<!-- On OS X, Hoefler Text has a distinctive hyphen; on Windows, Segoe UI does. + In each case U+2010 will fall back to a font with a very different glyph. --> +<div style="width: 50pt; + font-family: Hoefler Text, Segoe UI, Trebuchet MS, Lucida Grande; + font-size: 24pt;"> + +<!-- test whether soft-hyphen gets rendered from the primary font --> +<p>aaa­aa</p> + +</div> + +</body> +</html> diff --git a/layout/reftests/text/577380-ref.html b/layout/reftests/text/577380-ref.html new file mode 100644 index 000000000..ebc48f146 --- /dev/null +++ b/layout/reftests/text/577380-ref.html @@ -0,0 +1,13 @@ +<html> +<head> +<style type="text/css"> +body { + font-family: Times; /* this test is only for OS X, we know Times will be there */ + font-size: 40px; +} +</style> +</head> +<body> +fi +</body> +</html> diff --git a/layout/reftests/text/577380.html b/layout/reftests/text/577380.html new file mode 100644 index 000000000..b4368c865 --- /dev/null +++ b/layout/reftests/text/577380.html @@ -0,0 +1,13 @@ +<html> +<head> +<style type="text/css"> +body { + font-family: Times; /* this test is only for OS X, we know Times will be there */ + font-size: 40px; +} +</style> +</head> +<body> +fi +</body> +</html> diff --git a/layout/reftests/text/726392-1-ref.html b/layout/reftests/text/726392-1-ref.html new file mode 100644 index 000000000..bf19e00f5 --- /dev/null +++ b/layout/reftests/text/726392-1-ref.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; letter-spacing: 10px} + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body> + <p class="alignLeft alignLastAuto">test</p> + <p class="alignLeft alignLastLeft">test</p> + <p class="alignLeft alignLastRight">test</p> + <p class="alignLeft alignLastCenter">test</p> + <p class="alignLeft alignLastJustify">test</p> + <p class="alignLeft alignLastStart">test</p> + <p class="alignLeft alignLastEnd">test</p> + <p class="alignJustify alignLastAuto">test</p> + <p class="alignJustify alignLastLeft">test</p> + <p class="alignJustify alignLastRight">test</p> + <p class="alignJustify alignLastCenter">test</p> + <p class="alignJustify alignLastJustify">test</p> + <p class="alignJustify alignLastStart">test</p> + <p class="alignJustify alignLastEnd">test</p> + <p class="alignStart alignLastAuto">test</p> + <p class="alignStart alignLastLeft">test</p> + <p class="alignStart alignLastRight">test</p> + <p class="alignStart alignLastCenter">test</p> + <p class="alignStart alignLastJustify">test</p> + <p class="alignStart alignLastStart">test</p> + <p class="alignStart alignLastEnd">test</p> + <p class="alignEnd alignLastAuto">test</p> + <p class="alignEnd alignLastLeft">test</p> + <p class="alignEnd alignLastRight">test</p> + <p class="alignEnd alignLastCenter">test</p> + <p class="alignEnd alignLastJustify">test</p> + <p class="alignEnd alignLastStart">test</p> + <p class="alignEnd alignLastEnd">test</p> + </body> +</html> diff --git a/layout/reftests/text/726392-1.html b/layout/reftests/text/726392-1.html new file mode 100644 index 000000000..a0357d31e --- /dev/null +++ b/layout/reftests/text/726392-1.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; letter-spacing: 10px} + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body> + <div id="e" style="width:50%"> + <p class="alignLeft alignLastAuto">test</p> + <p class="alignLeft alignLastLeft">test</p> + <p class="alignLeft alignLastRight">test</p> + <p class="alignLeft alignLastCenter">test</p> + <p class="alignLeft alignLastJustify">test</p> + <p class="alignLeft alignLastStart">test</p> + <p class="alignLeft alignLastEnd">test</p> + <p class="alignJustify alignLastAuto">test</p> + <p class="alignJustify alignLastLeft">test</p> + <p class="alignJustify alignLastRight">test</p> + <p class="alignJustify alignLastCenter">test</p> + <p class="alignJustify alignLastJustify">test</p> + <p class="alignJustify alignLastStart">test</p> + <p class="alignJustify alignLastEnd">test</p> + <p class="alignStart alignLastAuto">test</p> + <p class="alignStart alignLastLeft">test</p> + <p class="alignStart alignLastRight">test</p> + <p class="alignStart alignLastCenter">test</p> + <p class="alignStart alignLastJustify">test</p> + <p class="alignStart alignLastStart">test</p> + <p class="alignStart alignLastEnd">test</p> + <p class="alignEnd alignLastAuto">test</p> + <p class="alignEnd alignLastLeft">test</p> + <p class="alignEnd alignLastRight">test</p> + <p class="alignEnd alignLastCenter">test</p> + <p class="alignEnd alignLastJustify">test</p> + <p class="alignEnd alignLastStart">test</p> + <p class="alignEnd alignLastEnd">test</p> + +<script type="text/javascript"> +function resizeElements() +{ + var enclosingDiv = document.getElementById("e"); + enclosingDiv.style.width = "100%"; + document.documentElement.removeAttribute("class"); +} + +document.addEventListener("MozReftestInvalidate", resizeElements, false); +</script> + +</body> +</html> diff --git a/layout/reftests/text/726392-2-ref.html b/layout/reftests/text/726392-2-ref.html new file mode 100644 index 000000000..645c49b03 --- /dev/null +++ b/layout/reftests/text/726392-2-ref.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; } + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body dir="rtl"> + <p dir="rtl" class="alignLeft alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastRight">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastStart">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastRight">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastStart">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignStart alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignStart alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignStart alignLastRight">בדיקה</p> + <p dir="rtl" class="alignStart alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignStart alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignStart alignLastStart">בדיקה</p> + <p dir="rtl" class="alignStart alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastRight">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastStart">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastEnd">בדיקה</p> + </body> +</html> diff --git a/layout/reftests/text/726392-2.html b/layout/reftests/text/726392-2.html new file mode 100644 index 000000000..e63b910e8 --- /dev/null +++ b/layout/reftests/text/726392-2.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; } + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body> + <div id="e" style="width:50%"> + <p dir="rtl" class="alignLeft alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastRight">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastStart">בדיקה</p> + <p dir="rtl" class="alignLeft alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastRight">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastStart">בדיקה</p> + <p dir="rtl" class="alignJustify alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignStart alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignStart alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignStart alignLastRight">בדיקה</p> + <p dir="rtl" class="alignStart alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignStart alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignStart alignLastStart">בדיקה</p> + <p dir="rtl" class="alignStart alignLastEnd">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastAuto">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastLeft">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastRight">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastCenter">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastJustify">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastStart">בדיקה</p> + <p dir="rtl" class="alignEnd alignLastEnd">בדיקה</p> + </div> +<script type="text/javascript"> +function resizeElements() +{ + var enclosingDiv = document.getElementById("e"); + enclosingDiv.style.width = "100%"; + document.documentElement.removeAttribute("class"); +} + +document.addEventListener("MozReftestInvalidate", resizeElements, false); +</script> + +</body> +</html> diff --git a/layout/reftests/text/726392-3-ref.html b/layout/reftests/text/726392-3-ref.html new file mode 100644 index 000000000..338e7ba85 --- /dev/null +++ b/layout/reftests/text/726392-3-ref.html @@ -0,0 +1,83 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; white-space: pre-line; letter-spacing: 10px; font-size:6px;} + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body style="width:590px; height:590px;"> + <div> + <p class="alignLeft alignLastAuto">test +test</p> + <p class="alignLeft alignLastLeft">test +test</p> + <p class="alignLeft alignLastRight">test +test</p> + <p class="alignLeft alignLastCenter">test +test</p> + <p class="alignLeft alignLastJustify">test +test</p> + <p class="alignLeft alignLastStart">test +test</p> + <p class="alignLeft alignLastEnd">test +test</p> + <p class="alignJustify alignLastAuto">test +test</p> + <p class="alignJustify alignLastLeft">test +test</p> + <p class="alignJustify alignLastRight">test +test</p> + <p class="alignJustify alignLastCenter">test +test</p> + <p class="alignJustify alignLastJustify">test +test</p> + <p class="alignJustify alignLastStart">test +test</p> + <p class="alignJustify alignLastEnd">test +test</p> + <p class="alignStart alignLastAuto">test +test</p> + <p class="alignStart alignLastLeft">test +test</p> + <p class="alignStart alignLastRight">test +test</p> + <p class="alignStart alignLastCenter">test +test</p> + <p class="alignStart alignLastJustify">test +test</p> + <p class="alignStart alignLastStart">test +test</p> + <p class="alignStart alignLastEnd">test +test</p> + <p class="alignEnd alignLastAuto">test +test</p> + <p class="alignEnd alignLastLeft">test +test</p> + <p class="alignEnd alignLastRight">test +test</p> + <p class="alignEnd alignLastCenter">test +test</p> + <p class="alignEnd alignLastJustify">test +test</p> + <p class="alignEnd alignLastStart">test +test</p> + <p class="alignEnd alignLastEnd">test +test</p> + </div> + </body> +</html> diff --git a/layout/reftests/text/726392-3.html b/layout/reftests/text/726392-3.html new file mode 100644 index 000000000..549479b42 --- /dev/null +++ b/layout/reftests/text/726392-3.html @@ -0,0 +1,94 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"> + <title>Bug 726392</title> + <style type="text/css"> + p { margin: 0; white-space: pre-line; letter-spacing: 10px; font-size:6px;} + .alignLeft { text-align: left; } + .alignRight { text-align: right; } + .alignCenter { text-align: center; } + .alignJustify { text-align: justify; } + .alignStart { text-align: start; } + .alignEnd { text-align: end; } + .alignLastAuto { text-align-last: auto; } + .alignLastLeft { text-align-last: left; } + .alignLastRight { text-align-last: right; } + .alignLastCenter { text-align-last: center; } + .alignLastJustify { text-align-last: justify; } + .alignLastStart { text-align-last: start; } + .alignLastEnd { text-align-last: end; } + </style> +</head> + <body style="width:590px; height:590px;"> + <div id="e" style="width:50%"> + <p class="alignLeft alignLastAuto">test +test</p> + <p class="alignLeft alignLastLeft">test +test</p> + <p class="alignLeft alignLastRight">test +test</p> + <p class="alignLeft alignLastCenter">test +test</p> + <p class="alignLeft alignLastJustify">test +test</p> + <p class="alignLeft alignLastStart">test +test</p> + <p class="alignLeft alignLastEnd">test +test</p> + <p class="alignJustify alignLastAuto">test +test</p> + <p class="alignJustify alignLastLeft">test +test</p> + <p class="alignJustify alignLastRight">test +test</p> + <p class="alignJustify alignLastCenter">test +test</p> + <p class="alignJustify alignLastJustify">test +test</p> + <p class="alignJustify alignLastStart">test +test</p> + <p class="alignJustify alignLastEnd">test +test</p> + <p class="alignStart alignLastAuto">test +test</p> + <p class="alignStart alignLastLeft">test +test</p> + <p class="alignStart alignLastRight">test +test</p> + <p class="alignStart alignLastCenter">test +test</p> + <p class="alignStart alignLastJustify">test +test</p> + <p class="alignStart alignLastStart">test +test</p> + <p class="alignStart alignLastEnd">test +test</p> + <p class="alignEnd alignLastAuto">test +test</p> + <p class="alignEnd alignLastLeft">test +test</p> + <p class="alignEnd alignLastRight">test +test</p> + <p class="alignEnd alignLastCenter">test +test</p> + <p class="alignEnd alignLastJustify">test +test</p> + <p class="alignEnd alignLastStart">test +test</p> + <p class="alignEnd alignLastEnd">test +test</p> + </div> +<script type="text/javascript"> +function resizeElements() +{ + var enclosingDiv = document.getElementById("e"); + enclosingDiv.style.width = "100%"; + document.documentElement.removeAttribute("class"); +} + +document.addEventListener("MozReftestInvalidate", resizeElements, false); +</script> + +</body> +</html> diff --git a/layout/reftests/text/745555-1-ref.html b/layout/reftests/text/745555-1-ref.html new file mode 100644 index 000000000..5a411b9bc --- /dev/null +++ b/layout/reftests/text/745555-1-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html;charset=utf-8"> +<title>Bug 745555 - line-wrapping with uppercased es-zet</title> +<style type="text/css"> +div { + font-family: monospace; + display: inline-block; + border: 1px solid red; + vertical-align: top; +} +</style> +</head> +<body> +<div style="width:3.0em">SS SS SS SS SS</div> +<div style="width:3.2em">SS SS SS SS SS</div> +<div style="width:3.4em">SS SS SS SS SS</div> +<div style="width:3.6em">SS SS SS SS SS</div> +<div style="width:3.8em">SS SS SS SS SS</div> +<div style="width:4.0em">SS SS SS SS SS</div> +<div style="width:4.2em">SS SS SS SS SS</div> +<div style="width:4.4em">SS SS SS SS SS</div> +<div style="width:4.6em">SS SS SS SS SS</div> +<div style="width:4.8em">SS SS SS SS SS</div> +<div style="width:5.0em">SS SS SS SS SS</div> +</body> +</html> diff --git a/layout/reftests/text/745555-1.html b/layout/reftests/text/745555-1.html new file mode 100644 index 000000000..09b2448f5 --- /dev/null +++ b/layout/reftests/text/745555-1.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html;charset=utf-8"> +<title>Bug 745555 - line-wrapping with uppercased es-zet</title> +<style type="text/css"> +div { + font-family: monospace; + text-transform: uppercase; + display: inline-block; + border: 1px solid red; + vertical-align: top; +} +</style> +</head> +<body> +<div style="width:3.0em">ß ß ß ß ß</div> +<div style="width:3.2em">ß ß ß ß ß</div> +<div style="width:3.4em">ß ß ß ß ß</div> +<div style="width:3.6em">ß ß ß ß ß</div> +<div style="width:3.8em">ß ß ß ß ß</div> +<div style="width:4.0em">ß ß ß ß ß</div> +<div style="width:4.2em">ß ß ß ß ß</div> +<div style="width:4.4em">ß ß ß ß ß</div> +<div style="width:4.6em">ß ß ß ß ß</div> +<div style="width:4.8em">ß ß ß ß ß</div> +<div style="width:5.0em">ß ß ß ß ß</div> +</body> +</html> diff --git a/layout/reftests/text/745555-2-ref.html b/layout/reftests/text/745555-2-ref.html new file mode 100644 index 000000000..5bafb6b05 --- /dev/null +++ b/layout/reftests/text/745555-2-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html;charset=utf-8"> +<title>Bug 745555 - preformatted tabs/newlines with uppercased es-zet</title> +</head> +<body> +<pre> +FOO SSAR BASS + FOOBAR +THE QUICK BROWN FOX JUMPSS +</pre> +</body> +</html> diff --git a/layout/reftests/text/745555-2.html b/layout/reftests/text/745555-2.html new file mode 100644 index 000000000..243f0f860 --- /dev/null +++ b/layout/reftests/text/745555-2.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html;charset=utf-8"> +<title>Bug 745555 - preformatted tabs/newlines with uppercased es-zet</title> +<style type="text/css"> +pre { + text-transform: uppercase; +} +</style> +</head> +<body> +<pre> +foo ßar baß + foobar +the quick brown fox jumpß +</pre> +</body> +</html> diff --git a/layout/reftests/text/820255-ref.html b/layout/reftests/text/820255-ref.html new file mode 100644 index 000000000..5a872b491 --- /dev/null +++ b/layout/reftests/text/820255-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Test - Bug 820255</title> + </head> + <body> + <div>A <br>B</div> + <div>A <br>B</div> + </body> +</html> diff --git a/layout/reftests/text/820255.html b/layout/reftests/text/820255.html new file mode 100644 index 000000000..5f7afe7a9 --- /dev/null +++ b/layout/reftests/text/820255.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div { width: 0px; } + </style> + <title>Test - Bug 820255</title> + </head> + <body> + <div>A B</div> + <div>A B</div> + </body> +</html> diff --git a/layout/reftests/text/arabic-fallback-1-ref.html b/layout/reftests/text/arabic-fallback-1-ref.html new file mode 100644 index 000000000..15ab67df0 --- /dev/null +++ b/layout/reftests/text/arabic-fallback-1-ref.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Arabic: ﺍﻟﻌﺮﺑﻲ</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-1.html b/layout/reftests/text/arabic-fallback-1.html new file mode 100644 index 000000000..091f3e48e --- /dev/null +++ b/layout/reftests/text/arabic-fallback-1.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Arabic: العربي</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-2-ref.html b/layout/reftests/text/arabic-fallback-2-ref.html new file mode 100644 index 000000000..5f2ade336 --- /dev/null +++ b/layout/reftests/text/arabic-fallback-2-ref.html @@ -0,0 +1,20 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>With vowels: +ﺃَﺑْﺠَﺪِﻳَّﺔ +ﻋَﺮَﺑِﻴَّﺔ +</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-2.html b/layout/reftests/text/arabic-fallback-2.html new file mode 100644 index 000000000..5ad2e46cc --- /dev/null +++ b/layout/reftests/text/arabic-fallback-2.html @@ -0,0 +1,20 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>With vowels: +أَبْجَدِيَّة +عَرَبِيَّة +</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-3-ref.html b/layout/reftests/text/arabic-fallback-3-ref.html new file mode 100644 index 000000000..b7fb15922 --- /dev/null +++ b/layout/reftests/text/arabic-fallback-3-ref.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Ligatures: ﻻ ﻟﻼ</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-3.html b/layout/reftests/text/arabic-fallback-3.html new file mode 100644 index 000000000..ed05df74b --- /dev/null +++ b/layout/reftests/text/arabic-fallback-3.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Ligatures: لا للا</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-4-notref.html b/layout/reftests/text/arabic-fallback-4-notref.html new file mode 100644 index 000000000..3a1f3b743 --- /dev/null +++ b/layout/reftests/text/arabic-fallback-4-notref.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Ligature with vowel: ﻟَﺎ</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-fallback-4.html b/layout/reftests/text/arabic-fallback-4.html new file mode 100644 index 000000000..6a18456f6 --- /dev/null +++ b/layout/reftests/text/arabic-fallback-4.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DroidSansArabic-noGSUB.ttf); +} +body { + font-family: test; + font-size: 36px; +} +</style> +</head> +<body> +<p>Ligature with vowel: لَا</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-final-ligature-spacing-ref.html b/layout/reftests/text/arabic-final-ligature-spacing-ref.html new file mode 100644 index 000000000..5f25cbbe9 --- /dev/null +++ b/layout/reftests/text/arabic-final-ligature-spacing-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<style> +p { font: 36px Geeza Pro, serif; } +</style> + +<p>سلام</p> diff --git a/layout/reftests/text/arabic-final-ligature-spacing.html b/layout/reftests/text/arabic-final-ligature-spacing.html new file mode 100644 index 000000000..f1019ba9b --- /dev/null +++ b/layout/reftests/text/arabic-final-ligature-spacing.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<style> +p { font: 36px Geeza Pro, serif; } +span { font-variant: small-caps; } +</style> + +<!-- bug 739117: breaking the run after the lam-alef ligature + should NOT cause extra space to appear --> +<p>سلا<span>م</span></p> diff --git a/layout/reftests/text/arabic-marks-1-ref.html b/layout/reftests/text/arabic-marks-1-ref.html new file mode 100644 index 000000000..78c86992a --- /dev/null +++ b/layout/reftests/text/arabic-marks-1-ref.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>bug 873902 - marks should not affect width of Arabic text</title> +<style> +body { + background-color: white; + font-size: 50px; + margin: 20px; +} + +/* Try several fonts that should be available on Windows; at least Courier New is also on OS X. + Elsewhere, we may fall back to default, which may or may not be "interesting" to test, + but should pass harmlessly unless there's actually a broken font that shapes badly. */ +#a { + font-family: Andalus; +} +#b { + font-family: Courier New; +} +#c { + font-family: Simplified Arabic; +} + +.test { + color: white; +} +</style> +</head> +<body> +<div id="a"> +foo<span class="test">الرحمن الرحيم</span>bar +</div> +<div id="b"> +foo<span class="test">الرحمن الرحيم</span>bar +</div> +<div id="c"> +foo<span class="test">الرحمن الرحيم</span>bar +</div> +</body> +</html> diff --git a/layout/reftests/text/arabic-marks-1.html b/layout/reftests/text/arabic-marks-1.html new file mode 100644 index 000000000..442de13ab --- /dev/null +++ b/layout/reftests/text/arabic-marks-1.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>bug 873902 - marks should not affect width of Arabic text</title> +<style> +body { + background-color: white; + font-size: 50px; + margin: 20px; +} + +/* Try several fonts that should be available on Windows; at least Courier New is also on OS X. + Elsewhere, we may fall back to default, which may or may not be "interesting" to test, + but should pass harmlessly unless there's actually a broken font that shapes badly. */ +#a { + font-family: Andalus; +} +#b { + font-family: Courier New; +} +#c { + font-family: Simplified Arabic; +} + +.test { + color: white; +} +</style> +</head> +<body> +<div id="a"> +foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar +</div> +<div id="b"> +foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar +</div> +<div id="c"> +foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar +</div> +</body> +</html> diff --git a/layout/reftests/text/arabic-shaping-1-ref.html b/layout/reftests/text/arabic-shaping-1-ref.html new file mode 100644 index 000000000..eed7babab --- /dev/null +++ b/layout/reftests/text/arabic-shaping-1-ref.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DejaVuSansMono.woff); +} +body { + font-family: test; + font-size: 60pt; +} +</style> +</head> +<body> +<p>Arabic: ﺍﻟﻌﺮﺑﻲ</p> +</body> +</html> diff --git a/layout/reftests/text/arabic-shaping-1.html b/layout/reftests/text/arabic-shaping-1.html new file mode 100644 index 000000000..e75e674ca --- /dev/null +++ b/layout/reftests/text/arabic-shaping-1.html @@ -0,0 +1,17 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/DejaVuSansMono.woff); +} +body { + font-family: test; + font-size: 60pt; +} +</style> +</head> +<body> +<p>Arabic: العربي</p> +</body> +</html> diff --git a/layout/reftests/text/arial-bold-lam-alef-1-ref.html b/layout/reftests/text/arial-bold-lam-alef-1-ref.html new file mode 100644 index 000000000..91a944524 --- /dev/null +++ b/layout/reftests/text/arial-bold-lam-alef-1-ref.html @@ -0,0 +1,5 @@ +<html> +<body style="font-family: arial; font-size: 36px; font-weight: bold;"> +ﻻ ﻟﻼ +</body> +</html> diff --git a/layout/reftests/text/arial-bold-lam-alef-1.html b/layout/reftests/text/arial-bold-lam-alef-1.html new file mode 100644 index 000000000..2772932d7 --- /dev/null +++ b/layout/reftests/text/arial-bold-lam-alef-1.html @@ -0,0 +1,5 @@ +<html> +<body style="font-family: arial; font-size: 36px; font-weight: bold;"> +لا للا +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-1-notref.html b/layout/reftests/text/auto-hyphenation-1-notref.html new file mode 100644 index 000000000..890024431 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-1-notref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 5em; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-1-ref.html b/layout/reftests/text/auto-hyphenation-1-ref.html new file mode 100644 index 000000000..98a59945d --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-1-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 5em; hyphens: manual; font-family:sans-serif;"> +su­per­cal­ifrag­ilis­tic­ex­pi­ali­do­cious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-1.html b/layout/reftests/text/auto-hyphenation-1.html new file mode 100644 index 000000000..5822adbef --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-1.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- simple test for automatic hyphenation --> +<body lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-10-ref.html b/layout/reftests/text/auto-hyphenation-10-ref.html new file mode 100644 index 000000000..8914ccbfe --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-10-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<meta charset="UTF-8"> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: none;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-10.html b/layout/reftests/text/auto-hyphenation-10.html new file mode 100644 index 000000000..3411208b5 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-10.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<meta charset="UTF-8"> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-1a.html b/layout/reftests/text/auto-hyphenation-1a.html new file mode 100644 index 000000000..2e82f9218 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-1a.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- adding random <span>s should not affect hyphenation --> +<body lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +super<span>cali</span>frag<span>ili</span>sti<span>cex</span>pialidoc<span>i</span>ous +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-2-ref.html b/layout/reftests/text/auto-hyphenation-2-ref.html new file mode 100644 index 000000000..bfb1a4c3b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-2-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +<span style="hyphens:none">super<span lang="foo">cali</span>fragilisticexpialidocious</span> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-2.html b/layout/reftests/text/auto-hyphenation-2.html new file mode 100644 index 000000000..45f5aaa99 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-2.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> +<!-- mixed languages in a word should inhibit automatic hyphenation --> +<body lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +super<span lang="foo">cali</span>fragilisticexpialidocious +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-3-ref.html b/layout/reftests/text/auto-hyphenation-3-ref.html new file mode 100644 index 000000000..99c4fb38b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-3-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 5em;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-3.html b/layout/reftests/text/auto-hyphenation-3.html new file mode 100644 index 000000000..5ebb1a12b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-3.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- check that hyphens:none prevents break at ­ --> +<body lang="en-us"> +<div style="width: 5em; hyphens: none;"> +su­per­cal­ifrag­ilis­tic­ex­pi­ali­do­cious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-4-ref.html b/layout/reftests/text/auto-hyphenation-4-ref.html new file mode 100644 index 000000000..68cfcf600 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-4-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="x-unknown-language"> +<div style="width: 5em; hyphens: none;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-4.html b/layout/reftests/text/auto-hyphenation-4.html new file mode 100644 index 000000000..82d187e25 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-4.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- check that hyphenation is not applied to unknown language --> +<body lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-5-ref.html b/layout/reftests/text/auto-hyphenation-5-ref.html new file mode 100644 index 000000000..a390ad72a --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-5-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> +<style type="text/css"> +div { + margin: 10px; + width: 10px; + font-family: monospace; + hyphens: manual; +} +</style> +</head> +<!-- test some hyphenations that involve overlapping patterns --> +<body lang="en-us"> +<div> +photo +</div> +<div> +pho­to­graph +</div> +<div> +pho­tog­ra­pher +</div> +<div> +pho­to­graph­i­cal +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-5.html b/layout/reftests/text/auto-hyphenation-5.html new file mode 100644 index 000000000..507561239 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-5.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> +<style type="text/css"> +div { + margin: 10px; + width: 10px; + font-family: monospace; + hyphens: auto; +} +</style> +</head> +<!-- test some hyphenations that involve overlapping patterns --> +<body lang="en-us"> +<div> +photo +</div> +<div> +photograph +</div> +<div> +photographer +</div> +<div> +photographical +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-6-ref.html b/layout/reftests/text/auto-hyphenation-6-ref.html new file mode 100644 index 000000000..3ec974024 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-6-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 0; hyphens: manual;"> +hy­<span style="color:red">phen­</span>ation +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-6.html b/layout/reftests/text/auto-hyphenation-6.html new file mode 100644 index 000000000..5f66d64e2 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-6.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- style changes don't break hyphenation --> +<body lang="en-us"> +<div style="width: 0; hyphens: auto;"> +hy<span style="color:red">phen</span>ation +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-7-ref.html b/layout/reftests/text/auto-hyphenation-7-ref.html new file mode 100644 index 000000000..5ac5916ce --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-7-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<body lang="en-us"> +<div style="width: 0; hyphens: manual;"> +h<span style="color:red">y­phen­a</span>tion +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-7.html b/layout/reftests/text/auto-hyphenation-7.html new file mode 100644 index 000000000..9b95cc194 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-7.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- style changes don't break hyphenation --> +<body lang="en-us"> +<div style="width: 0; hyphens: auto;"> +h<span style="color:red">yphena</span>tion +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-8-ref.html b/layout/reftests/text/auto-hyphenation-8-ref.html new file mode 100644 index 000000000..7854c5d2f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-8-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: none;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-8.html b/layout/reftests/text/auto-hyphenation-8.html new file mode 100644 index 000000000..7dd93503d --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-8.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-9-ref.html b/layout/reftests/text/auto-hyphenation-9-ref.html new file mode 100644 index 000000000..54c200669 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-9-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<meta charset="iso-8859-1"> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: none;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-9.html b/layout/reftests/text/auto-hyphenation-9.html new file mode 100644 index 000000000..6eae8d4e9 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-9.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<meta charset="iso-8859-1"> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-af-1-ref.html b/layout/reftests/text/auto-hyphenation-af-1-ref.html new file mode 100644 index 000000000..f8e27c167 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-af-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="af"> +Al­le mens­li­ke we­sens word vry, met ge­ly­ke waar­dig­heid en reg­te, ge­bo­re. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-af-1.html b/layout/reftests/text/auto-hyphenation-af-1.html new file mode 100644 index 000000000..5803ed2e1 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-af-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="af"> +Alle menslike wesens word vry, met gelyke waardigheid en regte, gebore. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-bg-1-ref.html b/layout/reftests/text/auto-hyphenation-bg-1-ref.html new file mode 100644 index 000000000..604678e8f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-bg-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="bg"> +Всич­ки хо­ра се раж­дат сво­бод­ни и рав­ни по дос­тойн­с­т­во и пра­ва. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-bg-1.html b/layout/reftests/text/auto-hyphenation-bg-1.html new file mode 100644 index 000000000..c1fb848f6 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-bg-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="bg"> +Всички хора се раждат свободни и равни по достойнство и права. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ca-1-ref.html b/layout/reftests/text/auto-hyphenation-ca-1-ref.html new file mode 100644 index 000000000..bf029b595 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ca-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="ca"> +Tots els és­sers hu­mans nei­xen lliu­res i iguals en dig­ni­tat i en drets. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ca-1.html b/layout/reftests/text/auto-hyphenation-ca-1.html new file mode 100644 index 000000000..1e8c9f23b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ca-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="ca"> +Tots els éssers humans neixen lliures i iguals en dignitat i en drets. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-cy-1-ref.html b/layout/reftests/text/auto-hyphenation-cy-1-ref.html new file mode 100644 index 000000000..eb864b929 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-cy-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="cy"> +Gen­ir pawb yn rhydd ac yn gyd­radd â'i gil­ydd mewn urdd­as a hawl­iau. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-cy-1.html b/layout/reftests/text/auto-hyphenation-cy-1.html new file mode 100644 index 000000000..43876c2ff --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-cy-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="cy"> +Genir pawb yn rhydd ac yn gydradd â'i gilydd mewn urddas a hawliau. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-da-1-ref.html b/layout/reftests/text/auto-hyphenation-da-1-ref.html new file mode 100644 index 000000000..fa9378e19 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-da-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="da"> +Al­le men­ne­sker er født frie og li­ge i vær­dig­hed og ret­tig­he­der. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-da-1.html b/layout/reftests/text/auto-hyphenation-da-1.html new file mode 100644 index 000000000..3a2349403 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-da-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="da"> +Alle mennesker er født frie og lige i værdighed og rettigheder. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-1901-1-ref.html b/layout/reftests/text/auto-hyphenation-de-1901-1-ref.html new file mode 100644 index 000000000..9c1faeb49 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-1901-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="de-1901"> +Al­le Men­schen sind frei und gleich an Wür­de und Rech­ten ge­bo­ren. +<p> +bu­sser <!-- example word that is hyphenated differently by de-1901 and de-1996 --> +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-1901-1.html b/layout/reftests/text/auto-hyphenation-de-1901-1.html new file mode 100644 index 000000000..e795181f7 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-1901-1.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="de-1901"> +Alle Menschen sind frei und gleich an Würde und Rechten geboren. +<p> +busser <!-- example word that is hyphenated differently by de-1901 and de-1996 --> +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-1996-1-ref.html b/layout/reftests/text/auto-hyphenation-de-1996-1-ref.html new file mode 100644 index 000000000..429462553 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-1996-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="de-1996"> +Al­le Men­schen sind frei und gleich an Wür­de und Rech­ten ge­bo­ren. +<p> +bus­ser <!-- example word that is hyphenated differently by de-1901 and de-1996 --> +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-1996-1.html b/layout/reftests/text/auto-hyphenation-de-1996-1.html new file mode 100644 index 000000000..fb542c475 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-1996-1.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="de-1996"> +Alle Menschen sind frei und gleich an Würde und Rechten geboren. +<p> +busser <!-- example word that is hyphenated differently by de-1901 and de-1996 --> +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-ch-1-ref.html b/layout/reftests/text/auto-hyphenation-de-ch-1-ref.html new file mode 100644 index 000000000..f5b9e90a7 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-ch-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="de-CH"> +Al­le Men­schen sind frei und gleich an Wür­de und Rech­ten ge­bo­ren. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-de-ch-1.html b/layout/reftests/text/auto-hyphenation-de-ch-1.html new file mode 100644 index 000000000..7b4117541 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-de-ch-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="de-CH"> +Alle Menschen sind frei und gleich an Würde und Rechten geboren. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-eo-1-ref.html b/layout/reftests/text/auto-hyphenation-eo-1-ref.html new file mode 100644 index 000000000..f456c1594 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-eo-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="eo"> +Ĉiuj ho­moj es­tas de­na­s­ke li­be­raj kaj ega­laj laŭ di­g­no kaj raj­toj. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-eo-1.html b/layout/reftests/text/auto-hyphenation-eo-1.html new file mode 100644 index 000000000..423ca95ae --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-eo-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="eo"> +Ĉiuj homoj estas denaske liberaj kaj egalaj laŭ digno kaj rajtoj. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-es-1-ref.html b/layout/reftests/text/auto-hyphenation-es-1-ref.html new file mode 100644 index 000000000..a9b76a118 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-es-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="es"> +To­dos los se­res hu­ma­nos na­cen li­bres e igua­les en dig­ni­dad y de­re­chos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-es-1.html b/layout/reftests/text/auto-hyphenation-es-1.html new file mode 100644 index 000000000..fa2c68851 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-es-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="es"> +Todos los seres humanos nacen libres e iguales en dignidad y derechos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-et-1-ref.html b/layout/reftests/text/auto-hyphenation-et-1-ref.html new file mode 100644 index 000000000..0758d6c58 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-et-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="et"> +Kõik ini­me­sed sün­nivad va­ba­de­na ja võrds­ete­na oma vää­ri­ku­selt ja õi­gus­telt +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-et-1.html b/layout/reftests/text/auto-hyphenation-et-1.html new file mode 100644 index 000000000..7009aa7ab --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-et-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="et"> +Kõik inimesed sünnivad vabadena ja võrdsetena oma väärikuselt ja õigustelt +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-fi-1-ref.html b/layout/reftests/text/auto-hyphenation-fi-1-ref.html new file mode 100644 index 000000000..1bb845a40 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-fi-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="fi"> +Kaik­ki ih­mi­set syn­ty­vät va­pai­na ja ta­sa­ver­tai­si­na ar­vol­taan ja oi­keuk­sil­taan. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-fi-1.html b/layout/reftests/text/auto-hyphenation-fi-1.html new file mode 100644 index 000000000..fcf377fbb --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-fi-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="fi"> +Kaikki ihmiset syntyvät vapaina ja tasavertaisina arvoltaan ja oikeuksiltaan. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-fr-1-ref.html b/layout/reftests/text/auto-hyphenation-fr-1-ref.html new file mode 100644 index 000000000..696ebc45b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-fr-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="fr"> +Tout in­di­vi­du a droit à la vie, à la li­ber­té et à la sû­re­té de sa per­sonne. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-fr-1.html b/layout/reftests/text/auto-hyphenation-fr-1.html new file mode 100644 index 000000000..edc5b47b5 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-fr-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="fr"> +Tout individu a droit à la vie, à la liberté et à la sûreté de sa personne. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-gl-1-ref.html b/layout/reftests/text/auto-hyphenation-gl-1-ref.html new file mode 100644 index 000000000..7bee0cff5 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-gl-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="gl"> +Tó­do­los se­res hu­ma­nos na­cen li­bres e iguais en dig­ni­da­de e de­rei­tos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-gl-1.html b/layout/reftests/text/auto-hyphenation-gl-1.html new file mode 100644 index 000000000..55627cc1c --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-gl-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="gl"> +Tódolos seres humanos nacen libres e iguais en dignidade e dereitos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hr-1-ref.html b/layout/reftests/text/auto-hyphenation-hr-1-ref.html new file mode 100644 index 000000000..4911fffaa --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hr-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="hr"> +Sva ljud­ska bi­ća ra­ća­ju se slo­bod­na i jed­na­ka u dos­to­jans­tvu i pra­vi­ma +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hr-1.html b/layout/reftests/text/auto-hyphenation-hr-1.html new file mode 100644 index 000000000..02d902d71 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hr-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="hr"> +Sva ljudska bića raćaju se slobodna i jednaka u dostojanstvu i pravima +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hsb-1-ref.html b/layout/reftests/text/auto-hyphenation-hsb-1-ref.html new file mode 100644 index 000000000..e99979205 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hsb-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="hsb"> +Wšitcy čło­wje­ko­jo su wot na­ro­da swo­bod­ni a su je­na­cy po do­stoj­nos­ći a pra­wach +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hsb-1.html b/layout/reftests/text/auto-hyphenation-hsb-1.html new file mode 100644 index 000000000..45d921f8b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hsb-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="hsb"> +Wšitcy čłowjekojo su wot naroda swobodni a su jenacy po dostojnosći a prawach +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hu-1-ref.html b/layout/reftests/text/auto-hyphenation-hu-1-ref.html new file mode 100644 index 000000000..b723773a9 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hu-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="hu"> +Min­den em­be­ri lény sza­ba­don szü­le­tik és egyen­lő mél­tó­sá­ga és jo­ga van. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-hu-1.html b/layout/reftests/text/auto-hyphenation-hu-1.html new file mode 100644 index 000000000..c74f6d725 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-hu-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="hu"> +Minden emberi lény szabadon születik és egyenlő méltósága és joga van. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ia-1-ref.html b/layout/reftests/text/auto-hyphenation-ia-1-ref.html new file mode 100644 index 000000000..03f896470 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ia-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="ia"> +To­te le es­se­res hu­man na­sce li­be­re e equal in dig­ni­ta­te e in de­rec­tos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ia-1.html b/layout/reftests/text/auto-hyphenation-ia-1.html new file mode 100644 index 000000000..dc5972cc0 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ia-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="ia"> +Tote le esseres human nasce libere e equal in dignitate e in derectos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-is-1-ref.html b/layout/reftests/text/auto-hyphenation-is-1-ref.html new file mode 100644 index 000000000..76b6d43dc --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-is-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="is"> +Hver mað­ur er bor­inn frjáls og jafn öðr­um að virð­ingu og rétt­ind­um +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-is-1.html b/layout/reftests/text/auto-hyphenation-is-1.html new file mode 100644 index 000000000..3efac1056 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-is-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="is"> +Hver maður er borinn frjáls og jafn öðrum að virðingu og réttindum +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-it-1-ref.html b/layout/reftests/text/auto-hyphenation-it-1-ref.html new file mode 100644 index 000000000..4f851043a --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-it-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="it"> +Tut­ti gli es­se­ri uma­ni na­sco­no li­be­ri ed egua­li in di­gni­tà e di­rit­ti. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-it-1.html b/layout/reftests/text/auto-hyphenation-it-1.html new file mode 100644 index 000000000..963c10898 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-it-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="it"> +Tutti gli esseri umani nascono liberi ed eguali in dignità e diritti. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-kmr-1-ref.html b/layout/reftests/text/auto-hyphenation-kmr-1-ref.html new file mode 100644 index 000000000..634c29813 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-kmr-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="kmr"> +He­mû mi­rov azad û di we­qar û ma­fan de we­k­hev tên din­ya­yê +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-kmr-1.html b/layout/reftests/text/auto-hyphenation-kmr-1.html new file mode 100644 index 000000000..43887b80f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-kmr-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="kmr"> +Hemû mirov azad û di weqar û mafan de wekhev tên dinyayê +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-la-1-ref.html b/layout/reftests/text/auto-hyphenation-la-1-ref.html new file mode 100644 index 000000000..0123f7b8b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-la-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="la"> +Om­nes ho­mi­nes di­gni­ta­te et iu­re li­be­ri et pa­res na­scun­tur +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-la-1.html b/layout/reftests/text/auto-hyphenation-la-1.html new file mode 100644 index 000000000..bb76d0d42 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-la-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="la"> +Omnes homines dignitate et iure liberi et pares nascuntur +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-lt-1-ref.html b/layout/reftests/text/auto-hyphenation-lt-1-ref.html new file mode 100644 index 000000000..6231f81c8 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-lt-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="lt"> +Vi­si žmo­nės gims­ta lais­vi ir ly­gūs sa­vo oru­mu ir tei­sė­mis. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-lt-1.html b/layout/reftests/text/auto-hyphenation-lt-1.html new file mode 100644 index 000000000..3c896a565 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-lt-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="lt"> +Visi žmonės gimsta laisvi ir lygūs savo orumu ir teisėmis. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-mn-1-ref.html b/layout/reftests/text/auto-hyphenation-mn-1-ref.html new file mode 100644 index 000000000..d2a3db12b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-mn-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="mn"> +Хүн бүр төрж мэнд­лэ­хэд эрх чө­лөө­тэй, адил­хан нэр төр­тэй, ижил эрх­тэй бай­даг +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-mn-1.html b/layout/reftests/text/auto-hyphenation-mn-1.html new file mode 100644 index 000000000..e00d43c25 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-mn-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="mn"> +Хүн бүр төрж мэндлэхэд эрх чөлөөтэй, адилхан нэр төртэй, ижил эрхтэй байдаг +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nb-1-ref.html b/layout/reftests/text/auto-hyphenation-nb-1-ref.html new file mode 100644 index 000000000..660465549 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nb-1-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="nb"> +Alle men­nes­ker er født frie og med sam­me men­neske­verd og men­neske­ret­tig­he­ter. +<p> +<!-- words that differ in nb/nn locales --> +at­ten­de +be­tre +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nb-1.html b/layout/reftests/text/auto-hyphenation-nb-1.html new file mode 100644 index 000000000..e64396a67 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nb-1.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="nb"> +Alle mennesker er født frie og med samme menneskeverd og menneskerettigheter. +<p> +<!-- words that differ in nb/nn locales --> +attende +betre +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nl-1-ref.html b/layout/reftests/text/auto-hyphenation-nl-1-ref.html new file mode 100644 index 000000000..a3120f6bd --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nl-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="nl"> +Al­le men­sen wor­den vrij en ge­lijk in waar­dig­heid en rech­ten ge­bo­ren +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nl-1.html b/layout/reftests/text/auto-hyphenation-nl-1.html new file mode 100644 index 000000000..e7cb9ab9e --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nl-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="nl"> +Alle mensen worden vrij en gelijk in waardigheid en rechten geboren +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nn-1-ref.html b/layout/reftests/text/auto-hyphenation-nn-1-ref.html new file mode 100644 index 000000000..d20acf9e2 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nn-1-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="nn"> +Alle men­nes­ke er fød­de til fri­dom og med same men­neske­verd og men­neske­ret­tar. +<p> +<!-- words that differ in nb/nn locales --> +att­en­de +bet­re +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-nn-1.html b/layout/reftests/text/auto-hyphenation-nn-1.html new file mode 100644 index 000000000..405966c9c --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-nn-1.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="nn"> +Alle menneske er fødde til fridom og med same menneskeverd og menneskerettar. +<p> +<!-- words that differ in nb/nn locales --> +attende +betre +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-pl-1-ref.html b/layout/reftests/text/auto-hyphenation-pl-1-ref.html new file mode 100644 index 000000000..0c571f148 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-pl-1-ref.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html lang="pl"> +<head> +<meta charset="utf-8"> +<title>Polish hyphenation test</title> +<style> +body { + font-family: "Times New Roman", serif; /* prefer TNR to Times (default) on OS X... */ + font-feature-settings: 'kern' off; +} +</style> +</head> +<body> +<div style="white-space:pre-wrap;">Uni- +kod +przy- +pi- +su- +je +uni- +kal- +ny +nu- +mer +każ- +de- +mu +zna- +ko- +wi, +nie- +za- +leż- +ny +od +uży- +wa- +nej +plat- +for- +my, +pro- +gra- +mu +czy +ję- +zy- +ka. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-pl-1.html b/layout/reftests/text/auto-hyphenation-pl-1.html new file mode 100644 index 000000000..55fddc07b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-pl-1.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="pl"> +<head> +<meta charset="utf-8"> +<title>Polish hyphenation test</title> +<style> +body { + font-family: "Times New Roman", serif; /* prefer TNR to Times (default) on OS X... */ + font-feature-settings: 'kern' off; +} +</style> +</head> +<body> +<div style="width:0pt; hyphens:auto"> +Unikod przypisuje unikalny numer każdemu znakowi, +niezależny od używanej platformy, +programu czy języka. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-pt-1-ref.html b/layout/reftests/text/auto-hyphenation-pt-1-ref.html new file mode 100644 index 000000000..35a99da9a --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-pt-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="pt"> +To­dos os se­res hu­ma­nos nas­cem li­vres e iguais em dig­ni­da­de e em di­rei­tos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-pt-1.html b/layout/reftests/text/auto-hyphenation-pt-1.html new file mode 100644 index 000000000..d2b3a1c64 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-pt-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="pt"> +Todos os seres humanos nascem livres e iguais em dignidade e em direitos +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ru-1-ref.html b/layout/reftests/text/auto-hyphenation-ru-1-ref.html new file mode 100644 index 000000000..6686b2c1a --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ru-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="ru"> +Все лю­ди рож­да­ют­ся сво­бод­ны­ми и рав­ны­ми в сво­ем до­сто­ин­стве и пра­вах. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-ru-1.html b/layout/reftests/text/auto-hyphenation-ru-1.html new file mode 100644 index 000000000..859acd523 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-ru-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="ru"> +Все люди рождаются свободными и равными в своем достоинстве и правах. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sh-1-ref.html b/layout/reftests/text/auto-hyphenation-sh-1-ref.html new file mode 100644 index 000000000..dd183b26b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sh-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual; font-size:5px" lang="sh"> +Сва људ­ска би­ћа ра­ђа­ју се сло­бод­на и јед­на­ка у до­сто­јан­ству и пра­ви­ма. +<p> +Sva ljud­ska bi­ća ra­đa­ju se slo­bod­na i jed­na­ka u do­sto­jan­stvu i pra­vi­ma. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sh-1.html b/layout/reftests/text/auto-hyphenation-sh-1.html new file mode 100644 index 000000000..4b1c83541 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sh-1.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto; font-size:5px" lang="sh"> +Сва људска бића рађају се слободна и једнака у достојанству и правима. +<p> +Sva ljudska bića rađaju se slobodna i jednaka u dostojanstvu i pravima. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sl-1-ref.html b/layout/reftests/text/auto-hyphenation-sl-1-ref.html new file mode 100644 index 000000000..760b51ec7 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sl-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="sl"> +Vsi lju­dje se ro­di­jo svo­bo­dni in ima­jo ena­ko do­sto­jan­stvo in ena­ke pra­vi­ce +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sl-1.html b/layout/reftests/text/auto-hyphenation-sl-1.html new file mode 100644 index 000000000..e59192aaa --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sl-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="sl"> +Vsi ljudje se rodijo svobodni in imajo enako dostojanstvo in enake pravice +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sr-1-ref.html b/layout/reftests/text/auto-hyphenation-sr-1-ref.html new file mode 100644 index 000000000..a23fb56f0 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sr-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual; font-size:5px" lang="sr"> +Сва људ­ска би­ћа ра­ђа­ју се сло­бод­на и јед­на­ка у до­сто­јан­ству и пра­ви­ма. +<p> +Sva ljud­ska bi­ća ra­đa­ju se slo­bod­na i jed­na­ka u do­sto­jan­stvu i pra­vi­ma. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sr-1.html b/layout/reftests/text/auto-hyphenation-sr-1.html new file mode 100644 index 000000000..1560fe9d3 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sr-1.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto; font-size:5px" lang="sr"> +Сва људска бића рађају се слободна и једнака у достојанству и правима. +<p> +Sva ljudska bića rađaju se slobodna i jednaka u dostojanstvu i pravima. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sv-1-notref.html b/layout/reftests/text/auto-hyphenation-sv-1-notref.html new file mode 100644 index 000000000..02986a88d --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sv-1-notref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="en-US"> +Alla människor äro födda fria och lika i värde och rättigheter +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sv-1-ref.html b/layout/reftests/text/auto-hyphenation-sv-1-ref.html new file mode 100644 index 000000000..2dd3dc070 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sv-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="sv"> +Al­la män­ni­skor äro föd­da fria och li­ka i vär­de och rät­tig­he­ter +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-sv-1.html b/layout/reftests/text/auto-hyphenation-sv-1.html new file mode 100644 index 000000000..a2096ee6f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-sv-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="sv"> +Alla människor äro födda fria och lika i värde och rättigheter +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-tr-1-ref.html b/layout/reftests/text/auto-hyphenation-tr-1-ref.html new file mode 100644 index 000000000..47f985165 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-tr-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="tr"> +Bü­tün in­san­lar hür, hay­si­yet ve hak­lar ba­kı­mın­dan eşit do­ğar­lar. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-tr-1.html b/layout/reftests/text/auto-hyphenation-tr-1.html new file mode 100644 index 000000000..fc6437182 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-tr-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="tr"> +Bütün insanlar hür, haysiyet ve haklar bakımından eşit doğarlar. +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-transformed-1-ref.html b/layout/reftests/text/auto-hyphenation-transformed-1-ref.html new file mode 100644 index 000000000..dc1335507 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-transformed-1-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="de"> +<head> +<meta charset="utf-8"> +<title>Test for auto hyphenation with text-transform</title> +</head> +<body> +<div style="width:0px;"> +mas­se<br>ma­ße +</div> +<div style="width:0px;"> +MAS­SE<br>MA­SSE +</div> +<div style="width:0px;"> +Mas­se<br>Ma­ße +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-transformed-1.html b/layout/reftests/text/auto-hyphenation-transformed-1.html new file mode 100644 index 000000000..181c33b1d --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-transformed-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="de"> +<head> +<meta charset="utf-8"> +<title>Test for auto hyphenation with text-transform</title> +</head> +<body> +<div style="width:0px; hyphens:auto"> +masse<br>maße +</div> +<div style="width:0px; hyphens:auto; text-transform:uppercase"> +masse<br>maße +</div> +<div style="width:0px; hyphens:auto; text-transform:capitalize"> +masse<br>maße +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-uk-1-ref.html b/layout/reftests/text/auto-hyphenation-uk-1-ref.html new file mode 100644 index 000000000..7c99e28d0 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-uk-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:manual;" lang="uk"> +Всі лю­ди на­ро­джу­ю­ться віль­ни­ми і рів­ни­ми у сво­їй гі­дно­сті та пра­вах +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-uk-1.html b/layout/reftests/text/auto-hyphenation-uk-1.html new file mode 100644 index 000000000..0f3c72ce1 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-uk-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +</head> +<body> +<div style="width:1em; hyphens:auto;" lang="uk"> +Всі люди народжуються вільними і рівними у своїй гідності та правах +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-xmllang-1.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-1.xhtml new file mode 100644 index 000000000..b102f6315 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-1.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- simple test for automatic hyphenation --> +<body xml:lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-10.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-10.xhtml new file mode 100644 index 000000000..9ae2f056f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-10.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml new file mode 100644 index 000000000..eab1a7011 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that xml:lang beats lang --> +<body xml:lang="en-us" lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml new file mode 100644 index 000000000..e243bc2c4 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that xml:lang beats lang --> +<body lang="x-unknown-language" xml:lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml new file mode 100644 index 000000000..18c884647 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that xml:lang beats lang --> +<!-- check that hyphenation is not applied to unknown language --> +<body xml:lang="x-unknown-language" lang="en-us"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml new file mode 100644 index 000000000..602e59b27 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that xml:lang beats lang --> +<!-- check that hyphenation is not applied to unknown language --> +<body lang="en-us" xml:lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml new file mode 100644 index 000000000..10488ad8f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that innermost beats xml:lang vs. lang difference --> +<body lang="x-unknown-language"> +<div xml:lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml new file mode 100644 index 000000000..ef231cf85 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that innermost beats xml:lang vs. lang difference --> +<body xml:lang="x-unknown-language"> +<div lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +</div> +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml new file mode 100644 index 000000000..124a6e127 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that innermost beats xml:lang vs. lang difference --> +<!-- check that hyphenation is not applied to unknown language --> +<body lang="en-us"> +<div xml:lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml new file mode 100644 index 000000000..a4fd52b70 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that innermost beats xml:lang vs. lang difference --> +<!-- check that hyphenation is not applied to unknown language --> +<body xml:lang="en-us"> +<div lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml new file mode 100644 index 000000000..77a3c3b56 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- adding random <span>s should not affect hyphenation --> +<body xml:lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +super<span>cali</span>frag<span>ili</span>sti<span>cex</span>pialidoc<span>i</span>ous +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-2.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-2.xhtml new file mode 100644 index 000000000..382deafe4 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-2.xhtml @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- mixed languages in a word should inhibit automatic hyphenation --> +<body xml:lang="en-us"> +<div style="width: 5em; hyphens: auto; font-family:sans-serif;"> +supercalifragilisticexpialidocious +super<span xml:lang="foo">cali</span>fragilisticexpialidocious +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-3.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-3.xhtml new file mode 100644 index 000000000..1560f9e6b --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-3.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that hyphens:none prevents break at ­ --> +<body xml:lang="en-us"> +<div style="width: 5em; hyphens: none;"> +su­per­cal­ifrag­ilis­tic­ex­pi­ali­do­cious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-4.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-4.xhtml new file mode 100644 index 000000000..4a453f628 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-4.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that hyphenation is not applied to unknown language --> +<body xml:lang="x-unknown-language"> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-5.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-5.xhtml new file mode 100644 index 000000000..dce0ee03f --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-5.xhtml @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<style type="text/css"> +div { + margin: 10px; + width: 10px; + font-family: monospace; + hyphens: auto; +} +</style> +</head> +<!-- test some hyphenations that involve overlapping patterns --> +<body xml:lang="en-us"> +<div> +photo +</div> +<div> +photograph +</div> +<div> +photographer +</div> +<div> +photographical +</div> +</body> +</html> diff --git a/layout/reftests/text/auto-hyphenation-xmllang-6.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-6.xhtml new file mode 100644 index 000000000..6a9bf1bd9 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-6.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- style changes don't break hyphenation --> +<body xml:lang="en-us"> +<div style="width: 0; hyphens: auto;"> +hy<span style="color:red">phen</span>ation +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-7.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-7.xhtml new file mode 100644 index 000000000..81333df42 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-7.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- style changes don't break hyphenation --> +<body xml:lang="en-us"> +<div style="width: 0; hyphens: auto;"> +h<span style="color:red">yphena</span>tion +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-8.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-8.xhtml new file mode 100644 index 000000000..97ce7fcd9 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-8.xhtml @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/auto-hyphenation-xmllang-9.xhtml b/layout/reftests/text/auto-hyphenation-xmllang-9.xhtml new file mode 100644 index 000000000..18a8bc862 --- /dev/null +++ b/layout/reftests/text/auto-hyphenation-xmllang-9.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="iso-8859-1" ?> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>Hyphenation test</title></head> +<!-- check that hyphenation is not applied when language is not specified --> +<body> +<div style="width: 5em; hyphens: auto;"> +supercalifragilisticexpialidocious +</div> +</body> +</html> + diff --git a/layout/reftests/text/cgj-01-ref.html b/layout/reftests/text/cgj-01-ref.html new file mode 100644 index 000000000..20c211bda --- /dev/null +++ b/layout/reftests/text/cgj-01-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- U+034F Combining Grapheme Joiner test #1. + The CGJ should not be visible, + nor affect the width of the first cluster. --> +<html> + <head> + <title>CGJ test</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <style type="text/css"> + body { + font-size: 35px; + line-height: 100px; + /* prefer Calibri on Win7 to avoid visible CGJ glyph */ + font-family: Calibri, sans-serif; + } + </style> + </head> + <body lang="fr"> + <p>àb</p> + </body> +</html> diff --git a/layout/reftests/text/cgj-01.html b/layout/reftests/text/cgj-01.html new file mode 100644 index 000000000..bea39f570 --- /dev/null +++ b/layout/reftests/text/cgj-01.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- U+034F Combining Grapheme Joiner test #1. + The CGJ should not be visible, + nor affect the width of the first cluster. --> +<html> + <head> + <title>CGJ test</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <style type="text/css"> + body { + font-size: 35px; + line-height: 100px; + /* prefer Calibri on Win7 to avoid visible CGJ glyph */ + font-family: Calibri, sans-serif; + } + </style> + </head> + <body lang="fr"> + <p>à͏b</p> + </body> +</html> diff --git a/layout/reftests/text/control-chars-01-notref.html b/layout/reftests/text/control-chars-01-notref.html new file mode 100644 index 000000000..3b7735d33 --- /dev/null +++ b/layout/reftests/text/control-chars-01-notref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<textarea style="-moz-appearance:none; width:300px; height:300px;"> +foobar +</textarea> +</body> +</html> diff --git a/layout/reftests/text/control-chars-01a.html b/layout/reftests/text/control-chars-01a.html new file mode 100644 index 000000000..1dbd34ba6 --- /dev/null +++ b/layout/reftests/text/control-chars-01a.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<textarea style="-moz-appearance:none; width:300px; height:300px;"> +foobar +</textarea> +</body> +</html> diff --git a/layout/reftests/text/control-chars-01b.html b/layout/reftests/text/control-chars-01b.html new file mode 100644 index 000000000..19e08552d --- /dev/null +++ b/layout/reftests/text/control-chars-01b.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<textarea style="-moz-appearance:none; width:300px; height:300px;"> +foobar +</textarea> +</body> +</html> diff --git a/layout/reftests/text/control-chars-01c.html b/layout/reftests/text/control-chars-01c.html new file mode 100644 index 000000000..28504d4f4 --- /dev/null +++ b/layout/reftests/text/control-chars-01c.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<textarea style="-moz-appearance:none; width:300px; height:300px;"> +foobar +</textarea> +</body> +</html> diff --git a/layout/reftests/text/control-chars-01d.html b/layout/reftests/text/control-chars-01d.html new file mode 100644 index 000000000..561489b25 --- /dev/null +++ b/layout/reftests/text/control-chars-01d.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<textarea style="-moz-appearance:none; width:300px; height:300px;"> +foobar +</textarea> +</body> +</html> diff --git a/layout/reftests/text/control-chars-02-notref.html b/layout/reftests/text/control-chars-02-notref.html new file mode 100644 index 000000000..fe88d751b --- /dev/null +++ b/layout/reftests/text/control-chars-02-notref.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML> +<html> +<body style="-moz-control-character-visibility:visible"> +foobar +</body> +</html> diff --git a/layout/reftests/text/control-chars-02.html b/layout/reftests/text/control-chars-02.html new file mode 100644 index 000000000..63210d20e --- /dev/null +++ b/layout/reftests/text/control-chars-02.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML> +<html> +<body style="-moz-control-character-visibility:visible"> +foobar +</body> +</html> diff --git a/layout/reftests/text/control-chars-03-ref.html b/layout/reftests/text/control-chars-03-ref.html new file mode 100644 index 000000000..2fecd054f --- /dev/null +++ b/layout/reftests/text/control-chars-03-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML> +<html> +<body> +foobar +</body> +</html> diff --git a/layout/reftests/text/control-chars-03a.html b/layout/reftests/text/control-chars-03a.html new file mode 100644 index 000000000..27fa168f1 --- /dev/null +++ b/layout/reftests/text/control-chars-03a.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML> +<html> +<body style="-moz-control-character-visibility:hidden"> +foobar +</body> +</html> diff --git a/layout/reftests/text/control-chars-03b.html b/layout/reftests/text/control-chars-03b.html new file mode 100644 index 000000000..488e5e751 --- /dev/null +++ b/layout/reftests/text/control-chars-03b.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML> +<html> +<body style="-moz-control-character-visibility:visible"> +<span id="s">foobar</span> +<script> +var x = s.getBoundingClientRect().width; +document.body.setAttribute("style", "-moz-control-character-visibility:hidden"); +</script> +</body> +</html> diff --git a/layout/reftests/text/control-chars-04-notref.html b/layout/reftests/text/control-chars-04-notref.html new file mode 100644 index 000000000..97509ce96 --- /dev/null +++ b/layout/reftests/text/control-chars-04-notref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<div> +foobar +</div> +</body> +</html> diff --git a/layout/reftests/text/control-chars-04a.html b/layout/reftests/text/control-chars-04a.html new file mode 100644 index 000000000..9a8e3332d --- /dev/null +++ b/layout/reftests/text/control-chars-04a.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<div> +foobar +</div> +</body> +</html> diff --git a/layout/reftests/text/control-chars-04b.html b/layout/reftests/text/control-chars-04b.html new file mode 100644 index 000000000..48e24b038 --- /dev/null +++ b/layout/reftests/text/control-chars-04b.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<div> +foobar +</div> +</body> +</html> diff --git a/layout/reftests/text/control-chars-04c.html b/layout/reftests/text/control-chars-04c.html new file mode 100644 index 000000000..fd5f892c9 --- /dev/null +++ b/layout/reftests/text/control-chars-04c.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<div> +foobar +</div> +</body> +</html> diff --git a/layout/reftests/text/control-chars-04d.html b/layout/reftests/text/control-chars-04d.html new file mode 100644 index 000000000..94623baeb --- /dev/null +++ b/layout/reftests/text/control-chars-04d.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +</head> +<body> +<div> +foobar +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-01-notref.html b/layout/reftests/text/emoji-01-notref.html new file mode 100644 index 000000000..8c5c47970 --- /dev/null +++ b/layout/reftests/text/emoji-01-notref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Check that emoji char renders something visible (bug 715798, bug 779042)</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; +} +</style> +</head> +<body> +<div> +U+1F603: +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-01.html b/layout/reftests/text/emoji-01.html new file mode 100644 index 000000000..53082b913 --- /dev/null +++ b/layout/reftests/text/emoji-01.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Check that emoji char renders something visible (bug 715798, bug 779042)</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; +} +</style> +</head> +<body> +<div> +U+1F603: 😃 +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-02-notref.html b/layout/reftests/text/emoji-02-notref.html new file mode 100644 index 000000000..e9fc9fe6b --- /dev/null +++ b/layout/reftests/text/emoji-02-notref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Check that HUGE emoji char renders something visible (bug 715798, bug 779042)</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 600px; +} +</style> +</head> +<body> +<div> +U+1F633: <span style="font-size:400px"> </span> +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-02.html b/layout/reftests/text/emoji-02.html new file mode 100644 index 000000000..099b18471 --- /dev/null +++ b/layout/reftests/text/emoji-02.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Check that HUGE emoji char renders something visible (bug 715798, bug 779042)</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 600px; +} +</style> +</head> +<body> +<div> +<!-- If the emoji size is too big, skia will fail to render it. 250 seems to be the max --> +U+1F633: <span style="font-size:250px">😳</span> +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-03-notref.html b/layout/reftests/text/emoji-03-notref.html new file mode 100644 index 000000000..56a521afa --- /dev/null +++ b/layout/reftests/text/emoji-03-notref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Emoji rendering should be affected by VS15/VS16</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; +} +</style> +</head> +<body> +<div> +❤️ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-03-ref.html b/layout/reftests/text/emoji-03-ref.html new file mode 100644 index 000000000..b82fbe9f8 --- /dev/null +++ b/layout/reftests/text/emoji-03-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Emoji rendering should be affected by VS15/VS16</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; +} +</style> +</head> +<body> +<div> +❤︎ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-03.html b/layout/reftests/text/emoji-03.html new file mode 100644 index 000000000..7c2d71de4 --- /dev/null +++ b/layout/reftests/text/emoji-03.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Emoji rendering should be affected by VS15/VS16</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; +} +</style> +</head> +<body> +<div> +❤ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-04-ref.html b/layout/reftests/text/emoji-04-ref.html new file mode 100644 index 000000000..354df991e --- /dev/null +++ b/layout/reftests/text/emoji-04-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Emoji-style glyph should ignore color</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; + color: blue; +} +</style> +</head> +<body> +<div> +❤️ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-04.html b/layout/reftests/text/emoji-04.html new file mode 100644 index 000000000..87a02555a --- /dev/null +++ b/layout/reftests/text/emoji-04.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Emoji-style glyph should ignore color</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; + color: green; +} +</style> +</head> +<body> +<div> +❤️ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-05-notref.html b/layout/reftests/text/emoji-05-notref.html new file mode 100644 index 000000000..574d30a6b --- /dev/null +++ b/layout/reftests/text/emoji-05-notref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Text-style glyph should respect color</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; + color: blue; +} +</style> +</head> +<body> +<div> +❤︎ +</div> +</body> +</html> diff --git a/layout/reftests/text/emoji-05.html b/layout/reftests/text/emoji-05.html new file mode 100644 index 000000000..7401d1c1b --- /dev/null +++ b/layout/reftests/text/emoji-05.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Text-style glyph should respect color</title> +<style type="text/css"> +body { + margin: 10px; + font-size: 40px; + line-height: 2em; + color: green; +} +</style> +</head> +<body> +<div> +❤︎ +</div> +</body> +</html> diff --git a/layout/reftests/text/fallback-01-ref.xhtml b/layout/reftests/text/fallback-01-ref.xhtml new file mode 100644 index 000000000..4894469eb --- /dev/null +++ b/layout/reftests/text/fallback-01-ref.xhtml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + [<!ENTITY first "!"><!ENTITY fallback "æ">]> +<html xmlns="http://www.w3.org/1999/xhtml"> +<!-- U+00E6 is expected to be found in Arial and DejaVu Sans, but not + Devanagari MT, FrankRuehl, nor Standard Symbols L. + "!" is chosen as it is expected to be found in the first font found. --> + <head> + <style> + p { font-size: 16.6px; + font-family: Devanagari MT, FrankRuehl, Standard Symbols L, Arial, DejaVu Sans; serif } + .fallback { font-family: Arial, DejaVu Sans, serif; } + </style> + </head> + <body> + <p><span class="fallback">&fallback;&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span></p> + </body> +</html> diff --git a/layout/reftests/text/fallback-01.xhtml b/layout/reftests/text/fallback-01.xhtml new file mode 100644 index 000000000..804fb0473 --- /dev/null +++ b/layout/reftests/text/fallback-01.xhtml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + [<!ENTITY first "!"><!ENTITY fallback "æ">]> +<html xmlns="http://www.w3.org/1999/xhtml"> +<!-- U+00E6 is expected to be found in Arial and DejaVu Sans, but not + Devanagari MT, FrankRuehl, nor Standard Symbols L. + "!" is chosen as it is expected to be found in the first font found. --> + <head> + <style> + p { font-size: 16.6px; + font-family: Devanagari MT, FrankRuehl, Standard Symbols L, Arial, DejaVu Sans; serif } + .fallback { font-family: Arial, DejaVu Sans, serif; } + </style> + </head> + <body> + <p>&fallback;&fallback;&first;&fallback;&first;&fallback;&first;<span class="fallback">&fallback;</span></p> + </body> +</html> diff --git a/layout/reftests/text/fallback-mark-stacking-1-notref.html b/layout/reftests/text/fallback-mark-stacking-1-notref.html new file mode 100644 index 000000000..85df2ebd1 --- /dev/null +++ b/layout/reftests/text/fallback-mark-stacking-1-notref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<style> +@font-face { + font-family: test; + /* Note that this font has no OpenType layout tables: */ + src: url(../fonts/sil/GenR102.ttf); +} +body { + font-family: test; +} +.test { + font-size: 100px; + line-height: 2; +} +</style> +</head> +<body> +These examples should NOT look the same: +<div class=test>x̃̂ x̂̃</div> +</body> diff --git a/layout/reftests/text/fallback-mark-stacking-1.html b/layout/reftests/text/fallback-mark-stacking-1.html new file mode 100644 index 000000000..2a6138f8f --- /dev/null +++ b/layout/reftests/text/fallback-mark-stacking-1.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<style> +@font-face { + font-family: test; + /* Note that this font has no OpenType layout tables: */ + src: url(../fonts/sil/GenR102.ttf); +} +body { + font-family: test; +} +.test { + font-size: 100px; + line-height: 2; +} +</style> +</head> +<body> +These examples should NOT look the same: +<div class=test>x̂̃ x̃̂</div> +</body> diff --git a/layout/reftests/text/font-selection-by-lang-01-ref.html b/layout/reftests/text/font-selection-by-lang-01-ref.html new file mode 100644 index 000000000..6e962fb5a --- /dev/null +++ b/layout/reftests/text/font-selection-by-lang-01-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <title>test for font selection by language reference</title> + <!-- A unique name is included in font-family + to force a new cache entry for each element. + --> + <style type="text/css"> + p.a { + font-family: sans-serif, font-selection-by-lang-1; + } + p.b { + font-family: sans-serif, font-selection-by-lang-2; + } + </style> +</head> +<body> + <p class="a" lang="ja">0123456789<p> + <p class="b" lang="en">0123456789<p> +</body> +</html> diff --git a/layout/reftests/text/font-selection-by-lang-01.html b/layout/reftests/text/font-selection-by-lang-01.html new file mode 100644 index 000000000..a88310d3d --- /dev/null +++ b/layout/reftests/text/font-selection-by-lang-01.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <title>test for font selection by language</title> + <!-- Checks that caches do not cause the lang="ja" font to be used for + the lang="en" element. + --> + <style type="text/css"> + p { + font-family: sans-serif; + } + </style> +</head> +<body> + <p lang="ja">0123456789<p> + <p lang="en">0123456789<p> +</body> +</html> diff --git a/layout/reftests/text/font-selection-fallback-1-ref.html b/layout/reftests/text/font-selection-fallback-1-ref.html new file mode 100644 index 000000000..5e0fb1163 --- /dev/null +++ b/layout/reftests/text/font-selection-fallback-1-ref.html @@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en"> +<head> + <title>Reference for test that language support doesn't override + specified family - Bug 678561</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.ttf); + } + @font-face { + font-family: "MarkB"; + src: url(../fonts/markB.ttf); + } + @font-face { + font-family: "DejaVu Sans Mono"; + src: url(../fonts/DejaVuSansMono.otf); + } + + .c1 { font-family: MarkA; } + .c2 { font-family: MarkB; } + .c3 { font-family: DejaVu Sans Mono; } + + /* to ensure the same vertical positioning of the text */ + .spacer { line-height: 3em } + </style> +</head> +<body> + +<p><span class="c1">A</span></p> +<p><span class="c2">B</span><span class="spacer"></span></p> +<p><span class="c3">C</span><span class="spacer"></span></p> + +<p class="c3">A</p> +<p class="c3">B</p> +<p class="c3">C</p> + +</body> +</html> diff --git a/layout/reftests/text/font-selection-fallback-1.html b/layout/reftests/text/font-selection-fallback-1.html new file mode 100644 index 000000000..0f6700ec1 --- /dev/null +++ b/layout/reftests/text/font-selection-fallback-1.html @@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en"> +<head> + <title>Test that language support doesn't override specified family - Bug 678561</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.ttf); + } + @font-face { + font-family: "MarkB"; + src: url(../fonts/markB.ttf); + } + @font-face { + font-family: "DejaVu Sans Mono"; + src: url(../fonts/DejaVuSansMono.otf); + } + + .c1 { font-family: MarkA, MarkB, DejaVu Sans Mono; } + + .c2 { font-family: DejaVu Sans Mono, MarkA, MarkB; } + + /* to ensure the same vertical positioning of the text */ + .spacer { line-height: 3em } + </style> +</head> +<body> + +<p><span class="c1">A</span></p> +<p><span class="c1">B</span><span class="spacer"></span></p> +<p><span class="c1">C</span><span class="spacer"></span></p> + +<p class="c2">A</p> +<p class="c2">B</p> +<p class="c2">C</p> + +</body> +</html> diff --git a/layout/reftests/text/font-selection-generic-1-ref.html b/layout/reftests/text/font-selection-generic-1-ref.html new file mode 100644 index 000000000..dfb7645a9 --- /dev/null +++ b/layout/reftests/text/font-selection-generic-1-ref.html @@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.ttf); + } + + .c1 { font-family: sans-serif; } + .c2 { font-family: serif; } + .c3 { font-family: monospace, fantasy; } + .c4 { font-family: fantasy; } + .c5 { font-family: cursive; } + + .c11 { font-family: MarkA, serif; } + .c12 { font-family: MarkA, monospace; } + .c13 { font-family: MarkA, sans-serif; } + .c14 { font-family: MarkA, cursive; } + .c15 { font-family: MarkA, fantasy; } + + /* to ensure the same vertical positioning of the text */ + .spacer { line-height: 3em } + </style> +</head> +<body> + +<p class="c1">AB</p> +<p class="c2">AB</p> +<p class="c3">AB</p> +<!-- Rev3 Fedora 12 test machines don't have fantasy or cursive, + and WINNT 5.2 machines don't have fantasy. +<p class="c4">AB</p> +<p class="c5">AB</p> +--> + +<p class="c11">A</p> +<p><span class="c1">B</span><span class="spacer"></span></p> +<p class="c12">A</p> +<p><span class="c2">B</span><span class="spacer"></span></p> +<p class="c13">A</p> +<p><span class="c3">B</span><span class="spacer"></span></p> +<!-- +<p class="c14">A</p> +<p class="c4">B</p> +<p class="c15">A</p> +<p class="c5">B</p> +--> + +</body> +</html> diff --git a/layout/reftests/text/font-selection-generic-1.html b/layout/reftests/text/font-selection-generic-1.html new file mode 100644 index 000000000..fc08ebd98 --- /dev/null +++ b/layout/reftests/text/font-selection-generic-1.html @@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.ttf); + } + + .c1 { font-family: sans-serif, MarkA; } + .c2 { font-family: serif, MarkA; } + .c3 { font-family: monospace, MarkA; } + .c4 { font-family: fantasy, MarkA; } + .c5 { font-family: cursive, MarkA; } + + .c11 { font-family: MarkA, sans-serif; } + .c12 { font-family: MarkA, serif; } + .c13 { font-family: MarkA, monospace; } + .c14 { font-family: MarkA, fantasy; } + .c15 { font-family: MarkA, cursive; } + + /* to ensure the same vertical positioning of the text */ + .spacer { line-height: 3em } + </style> +</head> +<body> + +<p class="c1">AB</p> +<p class="c2">AB</p> +<p class="c3">AB</p> +<!-- Rev3 Fedora 12 test machines don't have fantasy or cursive, + and WINNT 5.2 machines don't have fantasy. +<p class="c4">AB</p> +<p class="c5">AB</p> +--> + +<p class="c11">A</p> +<p><span class="c11">B</span><span class="spacer"></span></p> +<p class="c12">A</p> +<p><span class="c12">B</span><span class="spacer"></span></p> +<p class="c13">A</p> +<p><span class="c13">B</span><span class="spacer"></span></p> +<!-- +<p class="c14">A</p> +<p class="c14">B</p> +<p class="c15">A</p> +<p class="c15">B</p> +--> + +</body> +</html> diff --git a/layout/reftests/text/font-size-adjust-01-ref.html b/layout/reftests/text/font-size-adjust-01-ref.html new file mode 100644 index 000000000..2e198fe6c --- /dev/null +++ b/layout/reftests/text/font-size-adjust-01-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + p { font-family: sans-serif; font-size: 24pt; } + </style> + <body> + <p>hello</p> + <p>small</p> + <p>world</p> + </body> +</html> diff --git a/layout/reftests/text/font-size-adjust-01.html b/layout/reftests/text/font-size-adjust-01.html new file mode 100644 index 000000000..4da5d882a --- /dev/null +++ b/layout/reftests/text/font-size-adjust-01.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + p { font-family: sans-serif; font-size: 24pt; } + .small { font-size-adjust: 0.25; } + .large { font-size-adjust: 0.9; } + </style> + <body> + <p>hello</p> + <p class="small">small</p> + <p class="large">world</p> + </body> +</html> diff --git a/layout/reftests/text/font-size-adjust-02-ref.html b/layout/reftests/text/font-size-adjust-02-ref.html new file mode 100644 index 000000000..340e3fd82 --- /dev/null +++ b/layout/reftests/text/font-size-adjust-02-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + .big { font-family: sans-serif; font-size: 40pt; } + .a { font-family: sans-serif; font-size: 15pt; font-size-adjust: 0.8; } + .b { font-family: sans-serif; font-size: 30pt; font-size-adjust: 0.4; } + </style> + <body> + <p class="big">1. <span class="a">lines should be the same size</span></p> + <p class="big">2. <span class="b">lines should be the same size</span></p> + </body> +</html> diff --git a/layout/reftests/text/font-size-adjust-02.html b/layout/reftests/text/font-size-adjust-02.html new file mode 100644 index 000000000..23e9c5f12 --- /dev/null +++ b/layout/reftests/text/font-size-adjust-02.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + .big { font-family: sans-serif; font-size: 40pt; } + .a { font-family: sans-serif; font-size: 15pt; font-size-adjust: 0.8; } + .b { font-family: sans-serif; font-size: 30pt; font-size-adjust: 0.4; } + </style> + <body> + <p class="big">1. <span class="b">lines should be the same size</span></p> + <p class="big">2. <span class="a">lines should be the same size</span></p> + </body> +</html> diff --git a/layout/reftests/text/font-size-adjust-03-ref.html b/layout/reftests/text/font-size-adjust-03-ref.html new file mode 100644 index 000000000..1958f7d7d --- /dev/null +++ b/layout/reftests/text/font-size-adjust-03-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + .a { font-family: sans-serif; font-size: 15pt; font-size-adjust: 0.8; } + .b { font-family: sans-serif; font-size: 30pt; font-size-adjust: 0.4; } + </style> + <body> + <p class="b">lines should be the same size</p> + <p class="a">lines should be the same size</p> + </body> +</html> diff --git a/layout/reftests/text/font-size-adjust-03.html b/layout/reftests/text/font-size-adjust-03.html new file mode 100644 index 000000000..5188b4874 --- /dev/null +++ b/layout/reftests/text/font-size-adjust-03.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + </head> + <style> + .a { font-family: sans-serif; font-size: 15pt; font-size-adjust: 0.8; } + .b { font-family: sans-serif; font-size: 30pt; font-size-adjust: 0.4; } + </style> + <body> + <p class="a">lines should be the same size</p> + <p class="b">lines should be the same size</p> + </body> +</html> diff --git a/layout/reftests/text/glyph-decomposition-graphite-ref.html b/layout/reftests/text/glyph-decomposition-graphite-ref.html new file mode 100644 index 000000000..0ffe73917 --- /dev/null +++ b/layout/reftests/text/glyph-decomposition-graphite-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>test rendering with decomposition (bug 772640)</title> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: test; + font-size: 40px; + text-align: left; +} +</style> +</head> +<body> +<div> +<!-- with graphite enabled, this will display ThisIsGraphite to confirm it's working --> +ThisIsNotGraphite:<br> +<!-- U+0622 should render identically to U+0627,U+0653 --> +RTL: <span dir="rtl">aآz</span><br> +LTR: <span dir="ltr" style="unicode-bidi: bidi-override">aآz</span> +</div> +</body> +</html> diff --git a/layout/reftests/text/glyph-decomposition-graphite.html b/layout/reftests/text/glyph-decomposition-graphite.html new file mode 100644 index 000000000..365923c4f --- /dev/null +++ b/layout/reftests/text/glyph-decomposition-graphite.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>test rendering with decomposition (bug 772640)</title> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: test; + font-size: 40px; + text-align: left; +} +</style> +</head> +<body> +<div> +<!-- with graphite enabled, this will display ThisIsGraphite to confirm it's working --> +ThisIsNotGraphite:<br> +<!-- U+0622 should render identically to U+0627,U+0653 --> +RTL: <span dir="rtl">aآz</span><br> +LTR: <span dir="ltr" style="unicode-bidi: bidi-override">aآz</span> +</div> +</body> +</html> diff --git a/layout/reftests/text/glyph-decomposition-opentype-ref.html b/layout/reftests/text/glyph-decomposition-opentype-ref.html new file mode 100644 index 000000000..0ffe73917 --- /dev/null +++ b/layout/reftests/text/glyph-decomposition-opentype-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>test rendering with decomposition (bug 772640)</title> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: test; + font-size: 40px; + text-align: left; +} +</style> +</head> +<body> +<div> +<!-- with graphite enabled, this will display ThisIsGraphite to confirm it's working --> +ThisIsNotGraphite:<br> +<!-- U+0622 should render identically to U+0627,U+0653 --> +RTL: <span dir="rtl">aآz</span><br> +LTR: <span dir="ltr" style="unicode-bidi: bidi-override">aآz</span> +</div> +</body> +</html> diff --git a/layout/reftests/text/glyph-decomposition-opentype.html b/layout/reftests/text/glyph-decomposition-opentype.html new file mode 100644 index 000000000..365923c4f --- /dev/null +++ b/layout/reftests/text/glyph-decomposition-opentype.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>test rendering with decomposition (bug 772640)</title> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: test; + font-size: 40px; + text-align: left; +} +</style> +</head> +<body> +<div> +<!-- with graphite enabled, this will display ThisIsGraphite to confirm it's working --> +ThisIsNotGraphite:<br> +<!-- U+0622 should render identically to U+0627,U+0653 --> +RTL: <span dir="rtl">aآz</span><br> +LTR: <span dir="ltr" style="unicode-bidi: bidi-override">aآz</span> +</div> +</body> +</html> diff --git a/layout/reftests/text/graphite-01-ref.html b/layout/reftests/text/graphite-01-ref.html new file mode 100644 index 000000000..6e8b3ab50 --- /dev/null +++ b/layout/reftests/text/graphite-01-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: PigLatin; + src: url(../fonts/sil/PigLatin-nographite.ttf); +} + +body { + font: 34px PigLatin; + width: 5em; + line-height: 2em; +} +</style> +</head> +<body> +<p> +Igpay +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-01.html b/layout/reftests/text/graphite-01.html new file mode 100644 index 000000000..aa8b13fce --- /dev/null +++ b/layout/reftests/text/graphite-01.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: PigLatin; + src: url(../fonts/sil/PigLatinBenchmark_v3.ttf); +} + +body { + font: 34px PigLatin; + width: 5em; + line-height: 2em; +} +</style> +</head> +<body> +<p> +Pig +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-02-ref.html b/layout/reftests/text/graphite-02-ref.html new file mode 100644 index 000000000..2e00202bc --- /dev/null +++ b/layout/reftests/text/graphite-02-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: PigLatin; + src: url(../fonts/sil/PigLatin-nographite.ttf); +} + +body { + font: 34px PigLatin; + width: 5em; + line-height: 2em; +} +</style> +</head> +<body> +<p> +Igpay<br>Atinlay +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-02.html b/layout/reftests/text/graphite-02.html new file mode 100644 index 000000000..0842dff7b --- /dev/null +++ b/layout/reftests/text/graphite-02.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: PigLatin; + src: url(../fonts/sil/PigLatinBenchmark_v3.ttf); +} + +body { + font: 34px PigLatin; + width: 5em; + line-height: 2em; +} +</style> +</head> +<body> +<p> +Pig Latin +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-03-notref.html b/layout/reftests/text/graphite-03-notref.html new file mode 100644 index 000000000..32f8aaea3 --- /dev/null +++ b/layout/reftests/text/graphite-03-notref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<style type="text/css"> +@font-face { + font-family: padauk; + src: url(../fonts/sil/Padauk.ttf); +} + +body { + font: 34px padauk; +} +</style> +</head> +<body> +<p lang="my"><!-- default (Burmese) behavior of Padauk --> +ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ. +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-03a.html b/layout/reftests/text/graphite-03a.html new file mode 100644 index 000000000..6577b443a --- /dev/null +++ b/layout/reftests/text/graphite-03a.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<style type="text/css"> +@font-face { + font-family: padauk; + src: url(../fonts/sil/Padauk.ttf); +} + +body { + font: 34px padauk; +} +</style> +</head> +<body> +<p lang="ksw"><!-- check that changing language affects the rendering: + this modifies the shape of a couple of lower diacritics --> +ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ. +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-03b.html b/layout/reftests/text/graphite-03b.html new file mode 100644 index 000000000..c584612e2 --- /dev/null +++ b/layout/reftests/text/graphite-03b.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<style type="text/css"> +@font-face { + font-family: padauk; + src: url(../fonts/sil/Padauk.ttf); +} + +body { + font: 34px padauk; + font-feature-settings: "kdot" on; + /* check that setting an optional graphite feature affects rendering: + * this adds "dots" to the ends of a number of curved strokes + */ +} +</style> +</head> +<body> +<p lang="my"> +ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ. +</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-04-fa.html b/layout/reftests/text/graphite-04-fa.html new file mode 100644 index 000000000..2155c8661 --- /dev/null +++ b/layout/reftests/text/graphite-04-fa.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="fa"> +<!-- Persian (Farsi) should be the same as English-tagged --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-04-ref.html b/layout/reftests/text/graphite-04-ref.html new file mode 100644 index 000000000..72e5cdb8a --- /dev/null +++ b/layout/reftests/text/graphite-04-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="en"> +<!-- for testing Graphite language support we'll use the Eastern Arabic-Indic digits; + default rendering will have the Persian forms --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-04-sd.html b/layout/reftests/text/graphite-04-sd.html new file mode 100644 index 000000000..85ebe2c3e --- /dev/null +++ b/layout/reftests/text/graphite-04-sd.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="sd"> +<!-- Sindhi - digits 6 and 7 have different forms --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-04-snd.html b/layout/reftests/text/graphite-04-snd.html new file mode 100644 index 000000000..3bd776f23 --- /dev/null +++ b/layout/reftests/text/graphite-04-snd.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="snd"> +<!-- Sindhi incorrectly tagged with iso-639-3 code instead of bcp47/iso-639-1; + rendering should therefore match the default "en", NOT the correctly-tagged "sd" version --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-04-ur.html b/layout/reftests/text/graphite-04-ur.html new file mode 100644 index 000000000..579b2ab8a --- /dev/null +++ b/layout/reftests/text/graphite-04-ur.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="ur"> +<!-- in Urdu, the digit 4 should differ from Sindhi, + and 6 and 7 also differ from Persian --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-04-urd.html b/layout/reftests/text/graphite-04-urd.html new file mode 100644 index 000000000..33599b4cd --- /dev/null +++ b/layout/reftests/text/graphite-04-urd.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: schz-gr; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); +} +body { + font-family: schz-gr; + font-size: 40px; +} +</style> +</head> +<body lang="urd"> +<!-- incorrectly-tagged Urdu should match the default rendering --> +۰۱۲۳۴۵۶۷۸۹ +</body> +</html> diff --git a/layout/reftests/text/graphite-05-badlang.html b/layout/reftests/text/graphite-05-badlang.html new file mode 100644 index 000000000..933e8332c --- /dev/null +++ b/layout/reftests/text/graphite-05-badlang.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-langfeat.ttf); +} + +body { + margin: 20px; + font: 100px test; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p lang="fra">PaSs</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-fail.html b/layout/reftests/text/graphite-05-fail.html new file mode 100644 index 000000000..27995b9a0 --- /dev/null +++ b/layout/reftests/text/graphite-05-fail.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-ot-only.ttf); +} + +body { + margin: 20px; + font: 100px test; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-feat.html b/layout/reftests/text/graphite-05-feat.html new file mode 100644 index 000000000..f4082dde0 --- /dev/null +++ b/layout/reftests/text/graphite-05-feat.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-langfeat.ttf); +} + +body { + margin: 20px; + font: 100px test; + font-feature-settings: "TST1", "FTP2"; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-lang.html b/layout/reftests/text/graphite-05-lang.html new file mode 100644 index 000000000..c4a8cb0dd --- /dev/null +++ b/layout/reftests/text/graphite-05-lang.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-langfeat.ttf); +} + +body { + margin: 20px; + font: 100px test; + font-feature-settings: "TST1"; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p lang="fr">FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-multipass.html b/layout/reftests/text/graphite-05-multipass.html new file mode 100644 index 000000000..b3e2522cd --- /dev/null +++ b/layout/reftests/text/graphite-05-multipass.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-multipass.ttf); +} + +body { + margin: 20px; + font: 100px test; + font-feature-settings: "TST1"; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-ot-only.html b/layout/reftests/text/graphite-05-ot-only.html new file mode 100644 index 000000000..ae4d046ca --- /dev/null +++ b/layout/reftests/text/graphite-05-ot-only.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-ot-only.ttf); +} + +body { + margin: 20px; + font: 100px test; + font-feature-settings: "TST1"; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-ref.html b/layout/reftests/text/graphite-05-ref.html new file mode 100644 index 000000000..aafa87cc1 --- /dev/null +++ b/layout/reftests/text/graphite-05-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-ref.ttf); +} + +body { + margin: 20px; + font: 100px test; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>PaSs</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-05-simple.html b/layout/reftests/text/graphite-05-simple.html new file mode 100644 index 000000000..aa126ede8 --- /dev/null +++ b/layout/reftests/text/graphite-05-simple.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: test; + src: url(../fonts/graphite/grtest-simple.ttf); +} + +body { + margin: 20px; + font: 100px test; + font-feature-settings: "TST1"; +} +p { margin: 0; padding: 0; } +</style> +</head> +<body> +<p>FAIL</p> +</body> +</html> diff --git a/layout/reftests/text/graphite-bidi-1-ref.html b/layout/reftests/text/graphite-bidi-1-ref.html new file mode 100644 index 000000000..0523cf33c --- /dev/null +++ b/layout/reftests/text/graphite-bidi-1-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-BidiBug.woff"); +} +div { + width: 5em; + border: 1px solid silver; + font-family: test; + font-size: 40px; + text-align: center; +} +.b { + background: yellow; +} +</style> +</head> +<body> +<div><span class=b>abc</span></div> +</html> diff --git a/layout/reftests/text/graphite-bidi-1.html b/layout/reftests/text/graphite-bidi-1.html new file mode 100644 index 000000000..74c5d6c90 --- /dev/null +++ b/layout/reftests/text/graphite-bidi-1.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<style type="text/css"> +@font-face { + font-family: test; + src: url("../fonts/sil/Scheherazade-BidiBug.woff"); +} +div { + width: 5em; + border: 1px solid silver; + font-family: test; + font-size: 40px; + text-align: center; +} +.a { + color: transparent; +} +.b { + background: yellow; +} +</style> +</head> +<body> +<div><span class=a>"</span><span class=b>abc</span><span class=a>"</span></div> +</html> diff --git a/layout/reftests/text/graphite-surrogate-selection-ref.html b/layout/reftests/text/graphite-surrogate-selection-ref.html new file mode 100644 index 000000000..5d2c88cb7 --- /dev/null +++ b/layout/reftests/text/graphite-surrogate-selection-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<title>Bug 1260825 reference</title> +<meta charset="utf-8"> +<style> +@font-face { font-family: test; src: url(../fonts/MiaoUnicode-Regular.ttf); } +#test { font-family: test, serif; font-size: 60px; } +.sel { background: cyan; } +.inv { color: transparent; } +</style> +</head> +<body> +All lines should show the same single glyph & background area: +<div id="test"> +<span class="sel">𖽐</span><br> +<span class="sel">𖽐</span><br> +<span class="sel">𖽐</span><br> +<span class="sel">𖽐</span><br> +<span class="sel">𖽐</span><br> +</div> +</body> +</html> diff --git a/layout/reftests/text/graphite-surrogate-selection.html b/layout/reftests/text/graphite-surrogate-selection.html new file mode 100644 index 000000000..f086b3fa4 --- /dev/null +++ b/layout/reftests/text/graphite-surrogate-selection.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<title>Bug 1260825 testcase</title> +<meta charset="utf-8"> +<style> +@font-face { font-family: test; src: url(../fonts/MiaoUnicode-Regular.ttf); } +#test { font-family: test, serif; font-size: 60px; } +.sel { background: cyan; } +.inv { color: transparent; } +</style> +</head> +<body> +All lines should show the same single glyph & background area: +<div id="test"> +<span class="sel">𖽐</span><br> +<span class="sel">𖽐</span><span class="inv">𖽐</span><br> +<span class="sel">𖽐</span><span class="inv">𖽐𖽐</span><br> +<span class="sel">𖽐</span><span class="inv">𖼊</span><br> +<span class="sel">𖽐</span><span class="inv">𖼊𖽪</span><br> +</div> +</body> +</html> diff --git a/layout/reftests/text/initial-zwj-1-ref.html b/layout/reftests/text/initial-zwj-1-ref.html new file mode 100644 index 000000000..e4d867bbf --- /dev/null +++ b/layout/reftests/text/initial-zwj-1-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="ar"> +<head> +<title>Bug 978313</title> +<meta charset="utf-8"> +<style> +body { + font-family: Arial, DejaVu Sans, Droid Sans Arabic, Droid Arabic Naskh; + font-size: 36px; +} +</style> +</head> +<body> +‍ی‍ت +</body> +</html> diff --git a/layout/reftests/text/initial-zwj-1.html b/layout/reftests/text/initial-zwj-1.html new file mode 100644 index 000000000..fd039c583 --- /dev/null +++ b/layout/reftests/text/initial-zwj-1.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="ar"> +<head> +<title>Bug 978313</title> +<meta charset="utf-8"> +<style> +body { + font-family: Arial, DejaVu Sans, Droid Sans Arabic, Droid Arabic Naskh; + font-size: 36px; +} +</style> +</head> +<body> +‍یت +</body> +</html> diff --git a/layout/reftests/text/justification-1-ref.html b/layout/reftests/text/justification-1-ref.html new file mode 100644 index 000000000..68a15e87d --- /dev/null +++ b/layout/reftests/text/justification-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML> +<html> +<body style="font-family:monospace; line-height:1.5em; width:14ch; text-align:justify; border:1px solid black; overflow:hidden;"> + +<p>I am the very model of a modern major-general.</p> +<p style="width:100ch;">I am the very model of a modern major-general.</p> +<p style="width:100ch;">I am the<br>very model of a modern major-general.</p> +<p style="text-align:left;">I ​am ​the<br>very ​model ​of ​a ​modern ​major-general.</p> +<p>I am the<br>very model of a modern major-general.</p> +</body> +</html> diff --git a/layout/reftests/text/justification-1.html b/layout/reftests/text/justification-1.html new file mode 100644 index 000000000..a12544fc1 --- /dev/null +++ b/layout/reftests/text/justification-1.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML> +<html> +<body style="font-family:monospace; line-height:1.5em; width:14ch; text-align:justify; border:1px solid black; overflow:hidden;"> + +<!-- Test which white-space values are allowed to take justification --> + +<p style="white-space:normal;">I am the +very model of a modern major-general.</p> +<p style="white-space:nowrap;">I am the +very model of a modern major-general.</p> +<p style="white-space:pre;">I am the +very model of a modern major-general.</p> +<p style="white-space:pre-wrap;">I am the +very model of a modern major-general.</p> +<p style="white-space:pre-line;">I am the +very model of a modern major-general.</p> +</body></html> diff --git a/layout/reftests/text/justification-2-ref.html b/layout/reftests/text/justification-2-ref.html new file mode 100644 index 000000000..70443e682 --- /dev/null +++ b/layout/reftests/text/justification-2-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:100px; height:10px; background:yellow; } +</style> +</head> +<body> +<span></span><span style="background:none;"></span><span></span><br> +<span></span> +</body> +</html> diff --git a/layout/reftests/text/justification-2a.html b/layout/reftests/text/justification-2a.html new file mode 100644 index 000000000..2711eef65 --- /dev/null +++ b/layout/reftests/text/justification-2a.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:100px; height:10px; background:yellow; } +</style> +</head> +<!-- Test that justify actually works. 3 spans won't fit on a line so there will be + two spans plus 100px of justification space on the first line. --> +<body style="text-align:justify; width:300px;"> +<span></span> <span></span> +<span></span> +</body> +</html> diff --git a/layout/reftests/text/justification-2b.html b/layout/reftests/text/justification-2b.html new file mode 100644 index 000000000..5ff414ff5 --- /dev/null +++ b/layout/reftests/text/justification-2b.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:100px; height:10px; background:yellow; } +</style> +</head> +<!-- Test that text-align is taken from the containing block only --> +<body style="text-align:justify; width:300px;"> +<span></span><span style="display:inline; text-align:left; background:none"> <span></span> +<span></span> +</body> +</html> diff --git a/layout/reftests/text/justification-2c.html b/layout/reftests/text/justification-2c.html new file mode 100644 index 000000000..1179aff6d --- /dev/null +++ b/layout/reftests/text/justification-2c.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:100px; height:10px; background:yellow; } +</style> +</head> +<!-- Test that has justification space added. --> +<body style="text-align:justify; width:300px;"> +<span></span> <span></span> +<span></span> +</body> +</html> diff --git a/layout/reftests/text/justification-2d.html b/layout/reftests/text/justification-2d.html new file mode 100644 index 000000000..d4f54f488 --- /dev/null +++ b/layout/reftests/text/justification-2d.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:100px; height:10px; background:yellow; } +</style> +</head> +<!-- Test that U+2007 FIGURE SPACE does not have justification space added. --> +<body style="text-align:justify; width:300px;"> +<span></span> <span></span> +<span></span> +</body> +</html> diff --git a/layout/reftests/text/justification-cjk-extension-ref.html b/layout/reftests/text/justification-cjk-extension-ref.html new file mode 100644 index 000000000..565c7556f --- /dev/null +++ b/layout/reftests/text/justification-cjk-extension-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE HTML> +<html> +<meta charset="utf-8"> +<style> +@font-face { + font-family: test; + src: url(../fonts/gw432047.ttf); +} +div { + font:16px test; + width:200px; + border:1px solid red; + text-align-last:justify; +} +span { + color: transparent; +} +</style> +<div lang="zh">一葛<span>一葛</span>一葛 diff --git a/layout/reftests/text/justification-cjk-extension.html b/layout/reftests/text/justification-cjk-extension.html new file mode 100644 index 000000000..d15bd9940 --- /dev/null +++ b/layout/reftests/text/justification-cjk-extension.html @@ -0,0 +1,19 @@ +<!DOCTYPE HTML> +<html> +<meta charset="utf-8"> +<style> +@font-face { + font-family: test; + src: url(../fonts/gw432047.ttf); +} +div { + font:16px test; + width:200px; + border:1px solid red; + text-align-last:justify; +} +span { + color: transparent; +} +</style> +<div lang="zh">一葛<span>𠮟𠮟</span>一葛 diff --git a/layout/reftests/text/justification-space-diacritic-ref.html b/layout/reftests/text/justification-space-diacritic-ref.html new file mode 100644 index 000000000..39ac35594 --- /dev/null +++ b/layout/reftests/text/justification-space-diacritic-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<meta charset="utf-8"> +<style> +div { + font-family:monospace; + width:200px; + border:1px solid red; + text-align-last:justify; +} +span { + display:inline-block; +} +</style> +<!-- The <space> or <nbsp> characters that carry combining marks + should NOT be stretched by justification. --> +<div> +<p><span>Hello ̈ ̈ ̈</span> world +<p><span>Hello ̈ ̈ ̈</span> world +<p><span>Hello ̈</span> <span> ́ ̀world</span> +<p><span>Hello ‭̈‬</span> <span> ‭̂‬world</span> diff --git a/layout/reftests/text/justification-space-diacritic.html b/layout/reftests/text/justification-space-diacritic.html new file mode 100644 index 000000000..e55168fdf --- /dev/null +++ b/layout/reftests/text/justification-space-diacritic.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML> +<html> +<meta charset="utf-8"> +<style> +div { + font-family:monospace; + width:200px; + border:1px solid red; + text-align-last:justify; +} +span { + display:inline-block; +} +</style> +<!-- The <space> or <nbsp> characters that carry combining marks + should NOT be stretched by justification. --> +<div> +<p>Hello ̈ ̈ ̈ world +<p>Hello ̈ ̈ ̈ world +<p>Hello ̈ ́ ̀world +<p>Hello ‭̈‬ ‭̂‬world diff --git a/layout/reftests/text/kerning-01-notref.html b/layout/reftests/text/kerning-01-notref.html new file mode 100644 index 000000000..43df5e4d6 --- /dev/null +++ b/layout/reftests/text/kerning-01-notref.html @@ -0,0 +1,25 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: mplus; + src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf); + /* a copy of M+ with OpenType tables removed, so only legacy 'kern' is present */ +} + +body { + text-rendering: optimizeLegibility; + font-size: 40px; + font-family: mplus; +} +span { + font-family: serif; +} +</style> +</head> +<body> +<!-- the ZWNJ characters with font change should prevent kerning at those positions; + if the testcase looks the same, then kerning failed altogether --> +AVA<span>‌</span>V<span>‌</span>A +</body> +</html> diff --git a/layout/reftests/text/kerning-01.html b/layout/reftests/text/kerning-01.html new file mode 100644 index 000000000..55cf98670 --- /dev/null +++ b/layout/reftests/text/kerning-01.html @@ -0,0 +1,20 @@ +<html> +<head> +<style type="text/css"> +@font-face { + font-family: mplus; + src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf); + /* a copy of M+ with OpenType tables removed, so only legacy 'kern' is present */ +} + +body { + text-rendering: optimizeLegibility; + font-size: 40px; + font-family: mplus; +} +</style> +</head> +<body> +AVAVA +</body> +</html> diff --git a/layout/reftests/text/ligature-with-space-1.html b/layout/reftests/text/ligature-with-space-1.html new file mode 100644 index 000000000..9526db623 --- /dev/null +++ b/layout/reftests/text/ligature-with-space-1.html @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkAB-spaceliga"; + src: url(../fonts/markAB-spaceliga.otf); + } + + body { font-family: MarkAB-spaceliga; } + </style> +</head> +<body> +B A; +</body> +</html> diff --git a/layout/reftests/text/line-editing-1-ref.html b/layout/reftests/text/line-editing-1-ref.html new file mode 100644 index 000000000..8941e0b4f --- /dev/null +++ b/layout/reftests/text/line-editing-1-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML> +<html> +<!-- using padding to avoid possible reftest failures + due to antialiasing pixels not being refreshed, + see bugs 475968, 476927 --> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 2 +Line 3 +Line 4 +Line 5 +Line 6 +Line 7 +Line 8 +Line 9 +</body> +</html> diff --git a/layout/reftests/text/line-editing-1a.html b/layout/reftests/text/line-editing-1a.html new file mode 100644 index 000000000..4e71e638c --- /dev/null +++ b/layout/reftests/text/line-editing-1a.html @@ -0,0 +1,27 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<script> +function doTest() { + var text = document.body.firstChild; + // Delete a line, then make a change after it + text.deleteData(8, 7); + text.replaceData(55, 1, "8"); + document.documentElement.removeAttribute('class'); +} +document.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</head> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 2 +Line 2 +Line 3 +Line 4 +Line 5 +Line 6 +Line 7 +Line X +Line 9 +</body> +</html> diff --git a/layout/reftests/text/line-editing-1b.html b/layout/reftests/text/line-editing-1b.html new file mode 100644 index 000000000..f9f67aca4 --- /dev/null +++ b/layout/reftests/text/line-editing-1b.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<script> +function doTest() { + var text = document.body.firstChild; + // Insert a line, then make a change after it + text.insertData(8, "Line 2\n"); + text.replaceData(55, 1, "8"); + document.documentElement.removeAttribute('class'); +} +document.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</head> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 3 +Line 4 +Line 5 +Line 6 +Line 7 +Line X +Line 9 +</body> +</html> diff --git a/layout/reftests/text/line-editing-1c.html b/layout/reftests/text/line-editing-1c.html new file mode 100644 index 000000000..a41983aaf --- /dev/null +++ b/layout/reftests/text/line-editing-1c.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<script> +function doTest() { + var text = document.body.firstChild; + // Just make a change + text.replaceData(55, 1, "8"); + document.documentElement.removeAttribute('class'); +} +document.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</head> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 2 +Line 3 +Line 4 +Line 5 +Line 6 +Line 7 +Line X +Line 9 +</body> +</html> diff --git a/layout/reftests/text/line-editing-1d.html b/layout/reftests/text/line-editing-1d.html new file mode 100644 index 000000000..632510c0d --- /dev/null +++ b/layout/reftests/text/line-editing-1d.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<script> +function doTest() { + var text = document.body.firstChild; + // Replace three lines with two lines (but not at line boundaries) + text.replaceData(34, 21, "5\nLine 6\nLine "); + document.documentElement.removeAttribute('class'); +} +document.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</head> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 2 +Line 3 +Line 4 +Line X +Line X +Line X +Line 7 +Line 8 +Line 9 +</body> +</html> diff --git a/layout/reftests/text/line-editing-1e.html b/layout/reftests/text/line-editing-1e.html new file mode 100644 index 000000000..1f401fadc --- /dev/null +++ b/layout/reftests/text/line-editing-1e.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<script> +function doTest() { + var text = document.body.firstChild; + // Replace two lines with three lines (but not at line boundaries) + text.replaceData(34, 7, "5\nLine 6\nLine "); + document.documentElement.removeAttribute('class'); +} +document.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</head> +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> +Line 1 +Line 2 +Line 3 +Line 4 +Line X +Line 7 +Line 8 +Line 9 +</body> +</html> diff --git a/layout/reftests/text/lineheight-metrics-1-ref.html b/layout/reftests/text/lineheight-metrics-1-ref.html new file mode 100644 index 000000000..756b70532 --- /dev/null +++ b/layout/reftests/text/lineheight-metrics-1-ref.html @@ -0,0 +1,17 @@ +<title>Reference, bug 643781</title> +<style> +html { background: white; } +body { + padding: 1px; + background: blue; + width: 100px; + font-size: 0px; /* remove the effect of the strut ascent and descent */ +} +div { + background: aqua; + height: 33px; +} +</style> +<body> +<div></div> +</body> diff --git a/layout/reftests/text/lineheight-metrics-1.html b/layout/reftests/text/lineheight-metrics-1.html new file mode 100644 index 000000000..76f448241 --- /dev/null +++ b/layout/reftests/text/lineheight-metrics-1.html @@ -0,0 +1,31 @@ +<title>Testcase, bug 643781</title> +<style> +html { background: white; } +@font-face { + font-family: "MarkA-lineheight1500"; + src: url(../fonts/markA-lineheight1500.ttf); +} +body { + padding: 1px; + background: blue; + width: 100px; + height: 33px; + font-size: 0px; /* remove the effect of the strut ascent and descent */ +} +div { + background: aqua; +} +/* +MarkA-lineheight1500 at 22 pixel em-size has a line height that is an -- +integer number of pixels but the components (ascent/descent/leading) are not +integer. This test checks that the line-height remains accurate. +*/ +span { + color: transparent; + font-family: MarkA-lineheight1500; + font-size: 22px; +} +</style> +<body> +<div><span>A</span></div> +</body> diff --git a/layout/reftests/text/lineheight-metrics-2-ref.html b/layout/reftests/text/lineheight-metrics-2-ref.html new file mode 100644 index 000000000..ecf9fbf1c --- /dev/null +++ b/layout/reftests/text/lineheight-metrics-2-ref.html @@ -0,0 +1,17 @@ +<title>Testcase, bug 947650 and 598900</title> +<style> +html { background: white; } +body { + padding: 1px; + background: blue; + width: 100px; + font-size: 0px; /* remove the effect of the strut ascent and descent */ +} +div { + background: aqua; + height: 27px; +} +</style> +<body> +<div></div> +</body> diff --git a/layout/reftests/text/lineheight-metrics-2a.html b/layout/reftests/text/lineheight-metrics-2a.html new file mode 100644 index 000000000..1d4e00129 --- /dev/null +++ b/layout/reftests/text/lineheight-metrics-2a.html @@ -0,0 +1,29 @@ +<title>Testcase, bug 947650 and 598900</title> +<style> +html { background: white; } +@font-face { + font-family: "MarkA-lineheight6000-typolineheight2700"; + src: url(../fonts/markA-lineheight6000-typolineheight2700.otf); +} +body { + padding: 1px; + background: blue; + width: 100px; + height: 27px; + font-size: 0px; /* remove the effect of the strut ascent and descent */ +} +div { + background: aqua; +} +span { + /* Choose 10px so that all the metrics are integers and we avoid rounding + issues. See lineheight-metrics-1.html for a test with non-integer values. + */ + color: transparent; + font-family: MarkA-lineheight6000-typolineheight2700; + font-size: 10px; +} +</style> +<body> +<div><span>A</span></div> +</body> diff --git a/layout/reftests/text/lineheight-metrics-2b.html b/layout/reftests/text/lineheight-metrics-2b.html new file mode 100644 index 000000000..485921182 --- /dev/null +++ b/layout/reftests/text/lineheight-metrics-2b.html @@ -0,0 +1,29 @@ +<title>Testcase, bug 947650 and 598900</title> +<style> +html { background: white; } +@font-face { + font-family: "MarkA-lineheight6000-typolineheight2700"; + src: url(../fonts/markA-lineheight6000-typolineheight2700.ttf); +} +body { + padding: 1px; + background: blue; + width: 100px; + height: 27px; + font-size: 0px; /* remove the effect of the strut ascent and descent */ +} +div { + background: aqua; +} +span { + /* Choose 10px so that all the metrics are integers and we avoid rounding + issues. See lineheight-metrics-1.html for a test with non-integer values. + */ + color: transparent; + font-family: MarkA-lineheight6000-typolineheight2700; + font-size: 10px; +} +</style> +<body> +<div><span>A</span></div> +</body> diff --git a/layout/reftests/text/lineheight-percentage-1-ref.html b/layout/reftests/text/lineheight-percentage-1-ref.html new file mode 100644 index 000000000..bf834f59e --- /dev/null +++ b/layout/reftests/text/lineheight-percentage-1-ref.html @@ -0,0 +1,3 @@ +<!DOCTYPE html> +<body style="font-size: 50px"> +<p style="line-height: 20.5px">20.5px diff --git a/layout/reftests/text/lineheight-percentage-1.html b/layout/reftests/text/lineheight-percentage-1.html new file mode 100644 index 000000000..fcf64b881 --- /dev/null +++ b/layout/reftests/text/lineheight-percentage-1.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<body style="font-size: 50px"> +<p style="line-height: 41%"> +<script> +document.write(window.getComputedStyle(document.getElementsByTagName("p")[0], "").lineHeight); +</script> diff --git a/layout/reftests/text/long-1.html b/layout/reftests/text/long-1.html new file mode 100644 index 000000000..f65e7e763 --- /dev/null +++ b/layout/reftests/text/long-1.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <pre style="font-size:20px;"> +Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. +Very long textruns may cause problems. + </pre> + </body> +</html> diff --git a/layout/reftests/text/long-ref.html b/layout/reftests/text/long-ref.html new file mode 100644 index 000000000..3db6e454c --- /dev/null +++ b/layout/reftests/text/long-ref.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <body> + <pre style="font-size:20px;"> +Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems. Very long textruns may cause problems.<br>Very long textruns may cause problems. + </pre> + </body> +</html> diff --git a/layout/reftests/text/negative-letter-spacing-1-ref.html b/layout/reftests/text/negative-letter-spacing-1-ref.html new file mode 100644 index 000000000..3411c34a1 --- /dev/null +++ b/layout/reftests/text/negative-letter-spacing-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<meta charset=utf-8> +<head> + <style> + div { + float: left; + border: 1px solid black; + } + </style> +</head> +<body> + <div><span>same</span><span>line?</span></div> diff --git a/layout/reftests/text/negative-letter-spacing-1.html b/layout/reftests/text/negative-letter-spacing-1.html new file mode 100644 index 000000000..69c1f6fa4 --- /dev/null +++ b/layout/reftests/text/negative-letter-spacing-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<meta charset=utf-8> +<head> + <style> + div { + /* This letter-spacing value only impacts a single space character. */ + letter-spacing: -60px; + float: left; + border: 1px solid black; + } + span { + letter-spacing: 0; + } + </style> +</head> +<body> + <div><span>same</span> <span>line?</span></div> diff --git a/layout/reftests/text/osx-font-smoothing-2-notref.html b/layout/reftests/text/osx-font-smoothing-2-notref.html new file mode 100644 index 000000000..3cf80f8d7 --- /dev/null +++ b/layout/reftests/text/osx-font-smoothing-2-notref.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML> +<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 --> +<html> +<head> +<style type="text/css"> +p { + margin: 20px; + font-family: Arial, sans-serif; + background-color: black; + color: white; +} +.smoothing-gray { + -moz-osx-font-smoothing: grayscale; +} +.smoothing-auto { + -moz-osx-font-smoothing: auto; +} +</style> +</head> +<body lang="en"> +<p class="smoothing-auto"><span>foo</span> <span>bar</span></p> +</body> +</html> diff --git a/layout/reftests/text/osx-font-smoothing-2-ref.html b/layout/reftests/text/osx-font-smoothing-2-ref.html new file mode 100644 index 000000000..fc7ca44af --- /dev/null +++ b/layout/reftests/text/osx-font-smoothing-2-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML> +<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 --> +<html> +<head> +<style type="text/css"> +p { + margin: 20px; + font-family: Arial, sans-serif; + background-color: black; + color: white; +} +.smoothing-gray { + -moz-osx-font-smoothing: grayscale; +} +.smoothing-auto { + -moz-osx-font-smoothing: auto; +} +span { + display: inline-block; +} +</style> +</head> +<body lang="en"> +<p class="smoothing-auto"><span>foo</span> <span class="smoothing-gray">bar</span></p> +</body> +</html> diff --git a/layout/reftests/text/osx-font-smoothing-2.html b/layout/reftests/text/osx-font-smoothing-2.html new file mode 100644 index 000000000..2ef3b3ff4 --- /dev/null +++ b/layout/reftests/text/osx-font-smoothing-2.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML> +<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 --> +<html> +<head> +<style type="text/css"> +p { + margin: 20px; + font-family: Arial, sans-serif; + background-color: black; + color: white; +} +.smoothing-gray { + -moz-osx-font-smoothing: grayscale; +} +.smoothing-auto { + -moz-osx-font-smoothing: auto; +} +</style> +</head> +<body lang="en"> +<p class="smoothing-auto"><span>foo</span> <span class="smoothing-gray">bar</span></p> +</body> +</html> diff --git a/layout/reftests/text/osx-font-smoothing-ref.html b/layout/reftests/text/osx-font-smoothing-ref.html new file mode 100644 index 000000000..4fb59bdec --- /dev/null +++ b/layout/reftests/text/osx-font-smoothing-ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +body { + margin: 20px; + font-family: Futura, Helvetica, Arial, sans-serif; + background-color: black; + color: white; +} +p { + margin: 0; + line-height: 1.3em; +} +</style> +</head> +<body lang="en"> +<p style="font-size: 9px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 10px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 11px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 12px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 13px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 14px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 15px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 16px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 17px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 18px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 19px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 20px;">I have stood still and stopped the sound of feet.</p> +</body> +</html> diff --git a/layout/reftests/text/osx-font-smoothing.html b/layout/reftests/text/osx-font-smoothing.html new file mode 100644 index 000000000..46a4c8545 --- /dev/null +++ b/layout/reftests/text/osx-font-smoothing.html @@ -0,0 +1,32 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +body { + margin: 20px; + font-family: Futura, Helvetica, Arial, sans-serif; + background-color: black; + color: white; +} +p { + margin: 0; + line-height: 1.3em; + -moz-osx-font-smoothing: grayscale; +} +</style> +</head> +<body lang="en"> +<p style="font-size: 9px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 10px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 11px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 12px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 13px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 14px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 15px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 16px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 17px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 18px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 19px;">I have stood still and stopped the sound of feet.</p> +<p style="font-size: 20px;">I have stood still and stopped the sound of feet.</p> +</body> +</html> diff --git a/layout/reftests/text/overflowwrap-04.html b/layout/reftests/text/overflowwrap-04.html new file mode 100644 index 000000000..8552310dc --- /dev/null +++ b/layout/reftests/text/overflowwrap-04.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<!-- Test setting overflow-wrap: break-word dynamically --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Overflowwrap</title> + <script type="text/javascript"> +function SwapStyle() +{ + par = document.getElementById("pp"); + par.style.overflowWrap = "break-word"; +} + </script> + </head> + <body onload="SwapStyle()"> + <p id="pp" style="width: 100px; overflow-wrap: normal;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/overflowwrap-05.html b/layout/reftests/text/overflowwrap-05.html new file mode 100644 index 000000000..4b5b11e65 --- /dev/null +++ b/layout/reftests/text/overflowwrap-05.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<!-- Test unsetting overflow-wrap: break-word dynamically --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Overflowwrap</title> + <script type="text/javascript"> +function SwapStyle() +{ + par = document.getElementById("pp"); + par.style.overflowWrap = "normal"; +} + </script> + </head> + <body onload="SwapStyle()"> + <p id="pp" style="width: 100px; overflow-wrap: break-word;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/overflowwrap-06.html b/layout/reftests/text/overflowwrap-06.html new file mode 100644 index 000000000..899585b13 --- /dev/null +++ b/layout/reftests/text/overflowwrap-06.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>http://www.mozilla.org/projects/minefield/</title> + <style type="text/css"> +#viewsource { + font-family: -moz-fixed; + font-weight: normal; + font-size: 16px; + color: black; + white-space: pre; +} +#viewsource.wrap { + white-space: pre-wrap; + overflow-wrap: break-word; +} +pre { + font: inherit; + color: inherit; + white-space: inherit; + margin: 0; + width: 475px; +} +.attribute-name { + color: black; + font-weight: bold; +} +.attribute-value { + color: blue; + font-weight: normal; +} + </style> + </head> + <body id="viewsource" class="wrap"> + <pre id="line1"><span class="attribute-name">href</span>=<span class="attribute-value">"../../css/cavendish/content.css" </span><span class="attribute-name">title</span>=<span class="attribute-value">"Cavendish"</span></pre> + </body> +</html> diff --git a/layout/reftests/text/overflowwrap-07.html b/layout/reftests/text/overflowwrap-07.html new file mode 100644 index 000000000..d84347837 --- /dev/null +++ b/layout/reftests/text/overflowwrap-07.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +div { width: 0px; overflow-wrap: break-word; } + </style> + <title>Test Overflowwrap</title> + </head> + <body> + <div><em>Hello</em>Kitty</div> + </body> +</html> diff --git a/layout/reftests/text/overflowwrap-09.html b/layout/reftests/text/overflowwrap-09.html new file mode 100644 index 000000000..b190228fa --- /dev/null +++ b/layout/reftests/text/overflowwrap-09.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; overflow-wrap: normal; } + </style> + <title>Test Overflowwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/overflowwrap-10.html b/layout/reftests/text/overflowwrap-10.html new file mode 100644 index 000000000..249097b6d --- /dev/null +++ b/layout/reftests/text/overflowwrap-10.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Test - overflow-wrap: break-word should respect clusters</title> + </head> + <body> + <div style="width:0px; overflow-wrap:break-word"> + abc + d̥e̕f̣ + 𐐀𐐁𐐂 + </div> + </body> +</html> diff --git a/layout/reftests/text/pre-line-1-ref.html b/layout/reftests/text/pre-line-1-ref.html new file mode 100644 index 000000000..c290c91a2 --- /dev/null +++ b/layout/reftests/text/pre-line-1-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { background:yellow; } +.float { float:left; background:orange; } +.outer { overflow:auto; margin:1em; } +</style> +</head> +<body> + +<div class="outer">My name is<br><br>Fred.</div> +<div class="outer"><span>My name is<br><br>Fred.</span></div> + +<div class="outer"><div class="float">My name is<br><br>Fred.</div></div> +<div class="outer"><div class="float"><span class="preline">My name is<br><br>Fred.</span></div></div> + +<div class="outer"><div style="width:0;"><div class="float">My name is<br><br>Fred.</div></div></div> +<div class="outer"><div style="width:0;"><div class="float"><span>My name is<br><br>Fred.</span></div></div></div> + +</body> +</html> diff --git a/layout/reftests/text/pre-line-1.html b/layout/reftests/text/pre-line-1.html new file mode 100644 index 000000000..0dfbef12e --- /dev/null +++ b/layout/reftests/text/pre-line-1.html @@ -0,0 +1,48 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +.preline { white-space:pre-line; } +span { background:yellow; } +.float { float:left; background:orange; } +.outer { overflow:auto; margin:1em; } +</style> +</head> +<body> + + + +<!-- Note, in the following tests there are trailing spaces after "is" and on the second + blank line. --> + +<div class="outer"><div class="preline">My name is + + Fred.</div></div> +<div class="outer"><span class="preline">My name is + + Fred.</span></div> + + + + + +<div class="outer"><div class="preline float">My name is + + Fred.</div></div> +<div class="outer"><div class="float"><span class="preline">My name is + + Fred.</span></div></div> + + + + + +<div class="outer"><div style="width:0;"><div class="preline float">My name is + + Fred.</div></div></div> +<div class="outer"><div style="width:0;"><div class="float"><span class="preline">My name is + + Fred.</span></div></div></div> + +</body> +</html> diff --git a/layout/reftests/text/pre-line-2-ref.html b/layout/reftests/text/pre-line-2-ref.html new file mode 100644 index 000000000..70242146d --- /dev/null +++ b/layout/reftests/text/pre-line-2-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML> +<html> +<body> +Hello +<div style="height:100px;"></div> +<br> +<div style="height:100px;"></div> +Kitty +</body> +</html> diff --git a/layout/reftests/text/pre-line-2.html b/layout/reftests/text/pre-line-2.html new file mode 100644 index 000000000..48fde61d9 --- /dev/null +++ b/layout/reftests/text/pre-line-2.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML> +<html> +<body> + +<!-- Check that a pre-line newline inhibits margin collapsing --> + +<div style="margin-bottom:100px;">Hello</div> +<span style="white-space:pre-line;"> +</span> +<div style="margin-top:100px;">Kitty</div> +</body> +</html> diff --git a/layout/reftests/text/pre-line-3-ref.html b/layout/reftests/text/pre-line-3-ref.html new file mode 100644 index 000000000..d79ddfaea --- /dev/null +++ b/layout/reftests/text/pre-line-3-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML> +<html> +<body style="white-space:pre-line; color:black;"> +Hello +</body> +</html> diff --git a/layout/reftests/text/pre-line-3.html b/layout/reftests/text/pre-line-3.html new file mode 100644 index 000000000..b5f7f235f --- /dev/null +++ b/layout/reftests/text/pre-line-3.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +body::first-letter { color:white; } +</style> +</head> +<!-- Check that a pre-line newline stops first-letter processing --> +<body style="white-space:pre-line; color:black;"> +Hello +</body> +</html> diff --git a/layout/reftests/text/pre-line-4-ref.html b/layout/reftests/text/pre-line-4-ref.html new file mode 100644 index 000000000..d4da208db --- /dev/null +++ b/layout/reftests/text/pre-line-4-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE HTML> +<html> +<!-- pre-line: check lines are broken at \A --> +<body> +<p style="white-space:pre-line;">Hello<br>Kitty</p> +</body> +</html> diff --git a/layout/reftests/text/pre-line-4.html b/layout/reftests/text/pre-line-4.html new file mode 100644 index 000000000..af410ba1a --- /dev/null +++ b/layout/reftests/text/pre-line-4.html @@ -0,0 +1,7 @@ +<!DOCTYPE HTML> +<html> +<!-- pre-line: check lines are broken at \A --> +<body> +<p style="white-space:pre-line;">Hello
Kitty</p> +</body> +</html> diff --git a/layout/reftests/text/pre-space-1-ref.html b/layout/reftests/text/pre-space-1-ref.html new file mode 100644 index 000000000..b2c82820c --- /dev/null +++ b/layout/reftests/text/pre-space-1-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<style> +p { font: 16px monospace; white-space: pre; } +span { background-color: lime } +</style> +<p><span>a b</span></p> +<p><span>a b</span></p> +<p><span>a b</span></p> +<p><span> a b </span></p> +<p><span>a </span></p> +<p><span> </span></p> +<p><span> </span></p> +<p><span>. </span></p> +<p><span>a b</span></p> +<p><span>a b</span></p> +<p><span> a b </span></p> +<p><span>a </span></p> +<p><span> </span></p> +<p><span> </span></p> +<p><span>. </span></p> diff --git a/layout/reftests/text/pre-space-1.html b/layout/reftests/text/pre-space-1.html new file mode 100644 index 000000000..b1adad2fd --- /dev/null +++ b/layout/reftests/text/pre-space-1.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<style> +p { font: 16px monospace; white-space: -moz-pre-space; } +span { background-color: lime } +</style> +<p><span>a b</span></p> +<p><span>a
b</span></p> +<p><span>a 
 b</span></p> +<p><span>
 a
 b
</span></p> +<p><span>a </span></p> +<p><span>


</span></p> +<p><span> 


 </span></p> +<p><span>. 
</span></p> +<p><span>a	b</span></p> +<p><span>a 	 b</span></p> +<p><span>	 a	 b	</span></p> +<p><span>a </span></p> +<p><span>			</span></p> +<p><span> 			 </span></p> +<p><span>. 	</span></p> diff --git a/layout/reftests/text/pre-wrap-1-ref.html b/layout/reftests/text/pre-wrap-1-ref.html new file mode 100644 index 000000000..7cda9fba1 --- /dev/null +++ b/layout/reftests/text/pre-wrap-1-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>test for bug 1008019</title> +<style> +#test { + white-space: pre; + font-family: monospace; + width: 16ch; + border: 1px solid blue; + padding: 3px; +} +</style> +</head> +<body> +<div id="test">ab c d e f +g h i +j k +l m +n o +p +q +r +s</div> +</body> +</html> diff --git a/layout/reftests/text/pre-wrap-1.html b/layout/reftests/text/pre-wrap-1.html new file mode 100644 index 000000000..782acc146 --- /dev/null +++ b/layout/reftests/text/pre-wrap-1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>test for bug 1008019</title> +<style> +#test { + white-space: pre-wrap; + font-family: monospace; + width: 16ch; + border: 1px solid blue; + padding: 3px; +} +</style> +</head> +<body> +<div id="test">ab c d e f g h i j k<!-- +--> l m n o p<!-- +--> q r s</div> +</body> +</html> diff --git a/layout/reftests/text/reftest-stylo.list b/layout/reftests/text/reftest-stylo.list new file mode 100644 index 000000000..61d79b0ac --- /dev/null +++ b/layout/reftests/text/reftest-stylo.list @@ -0,0 +1,366 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +fails-if(Android||B2G) == fallback-01.xhtml fallback-01.xhtml +== font-selection-by-lang-01.html font-selection-by-lang-01.html +skip-if(B2G||Mulet) HTTP(..) == font-selection-fallback-1.html font-selection-fallback-1.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) HTTP(..) == font-selection-generic-1.html font-selection-generic-1.html +# bug 773482 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) == font-size-adjust-01.html font-size-adjust-01.html +# The following test passes consistently only on Mac OS X; +# both Windows and Linux give results that vary depending on the font size/zoom factor used, +# because hinting affects the metrics used to compute the font size adjustment. See bug 429605. +random-if(!cocoaWidget) == font-size-adjust-02.html font-size-adjust-02.html +# This currently fails because line spacing does not respect font-size-adjust +# in the "obvious" way, but it is unclear what the behavior should really be; +# see bug #366138 for some (inconclusive) discussion +# == font-size-adjust-03.html font-size-adjust-03.html +== justification-1.html justification-1.html +== justification-2a.html justification-2a.html +== justification-2b.html justification-2b.html +== justification-2c.html justification-2c.html +== justification-2d.html justification-2d.html +== justification-cjk-extension.html justification-cjk-extension.html +== justification-space-diacritic.html justification-space-diacritic.html +skip HTTP(..) load ligature-with-space-1.html +== line-editing-1a.html line-editing-1a.html +== line-editing-1b.html line-editing-1b.html +== line-editing-1c.html line-editing-1c.html +== line-editing-1d.html line-editing-1d.html +== line-editing-1e.html line-editing-1e.html +fails-if(cocoaWidget||(winWidget&&d2d&&layersGPUAccelerated)||(winWidget&&skiaContent&&layersGPUAccelerated)) HTTP(..) == lineheight-metrics-1.html lineheight-metrics-1.html +# bug 657864 +HTTP(..) == lineheight-metrics-2a.html lineheight-metrics-2a.html +HTTP(..) == lineheight-metrics-2b.html lineheight-metrics-2b.html +== lineheight-percentage-1.html lineheight-percentage-1.html +skip-if(B2G||Mulet) == long-1.html long-1.html +# Initial mulet triage: parity with B2G/B2G Desktop +fuzzy-if(Android,255,147) == pre-line-1.html pre-line-1.html +== pre-line-2.html pre-line-2.html +== pre-line-3.html pre-line-3.html +skip == pre-line-4.html pre-line-4.html +== pre-space-1.html pre-space-1.html +== soft-hyphens-1a.html soft-hyphens-1a.html +== soft-hyphens-1b.html soft-hyphens-1b.html +== soft-hyphens-1c.html soft-hyphens-1c.html +== soft-hyphens-break-word-1a.html soft-hyphens-break-word-1a.html +== soft-hyphens-break-word-1b.html soft-hyphens-break-word-1b.html +== soft-hyphens-break-word-1c.html soft-hyphens-break-word-1c.html +# Tests for soft hyphens in table cells, bug 418975 +skip == soft-hyphen-in-table-1.html soft-hyphen-in-table-1.html +skip == soft-hyphen-in-table-1.html soft-hyphen-in-table-1.html +== soft-hyphen-in-table-2.html soft-hyphen-in-table-2.html +# Cairo's FreeType and GDI backends snap glyphs to pixels, while Mac (usually), +# D2D, and Skia have subpixel positioning. The tests for pixel-snapping assume that +# 1 CSS pixel == 1 device device +fails-if(Android) skip-if(d2d||cocoaWidget||skiaContent) == subpixel-glyphs-x-1a.html subpixel-glyphs-x-1a.html +# Platforms with subpixel positioning already have inconsistent glyphs by +# design, but that is considered more tolerable because they are subpixel +# inconsistencies. On those platforms we just test that glyph positions are +# subpixel. +# D2D/DirectWrite results depend on the rendering mode chosen, so considering this as random for now. +skip-if(!(d2d||cocoaWidget)) random-if(d2d) == subpixel-glyphs-x-2a.html subpixel-glyphs-x-2a.html +skip-if(B2G||Mulet) HTTP(..) == subpixel-glyphs-x-3a.html subpixel-glyphs-x-3a.html +# Initial mulet triage: parity with B2G/B2G Desktop +# No platforms do subpixel positioning vertically +fuzzy-if(Android,19,2) == subpixel-glyphs-y-1a.html subpixel-glyphs-y-1a.html +fuzzy-if((Android||B2G),231,653) == subpixel-lineheight-1a.html subpixel-lineheight-1a.html +skip == swash-1.html swash-1.html +HTTP(..) == synthetic-bold-metrics-01.html synthetic-bold-metrics-01.html +HTTP(..) == synthetic-bold-papyrus-01.html synthetic-bold-papyrus-01.html +# Tests for text-align-last +== text-align-last-start.html text-align-last-start.html +== text-align-last-end.html text-align-last-end.html +== text-align-last-center.html text-align-last-center.html +== text-align-last-justify.html text-align-last-justify.html +== text-align-last-justify-rtl.html text-align-last-justify-rtl.html +# +# Default values: +# text-align defaults to start. text-align-last defaults to auto, which is +# equivalent to the value of the ‘text-align’ property except when ‘text-align’ +# is set to ‘justify’, in which case it is currently equivalent to ‘start’ +# This will need to change when we implement text-justify +== text-align-default-last-default.html text-align-default-last-default.html +== text-align-start-last-default.html text-align-start-last-default.html +== text-align-end-last-default.html text-align-end-last-default.html +== text-align-center-last-default.html text-align-center-last-default.html +== text-align-justify-last-default.html text-align-justify-last-default.html +# All combinations of text-align and text-align-last should give different results +# This only tests the combinations with the same value for text-align and +# different values for text-align-last +skip == text-align-start-last-start.html text-align-start-last-start.html +skip == text-align-start-last-start.html text-align-start-last-start.html +skip == text-align-start-last-start.html text-align-start-last-start.html +== text-align-start-last-end.html text-align-start-last-end.html +== text-align-start-last-end.html text-align-start-last-end.html +== text-align-start-last-center.html text-align-start-last-center.html +== text-align-end-last-start.html text-align-end-last-start.html +== text-align-end-last-start.html text-align-end-last-start.html +== text-align-end-last-start.html text-align-end-last-start.html +== text-align-end-last-end.html text-align-end-last-end.html +== text-align-end-last-end.html text-align-end-last-end.html +== text-align-end-last-center.html text-align-end-last-center.html +== text-align-center-last-start.html text-align-center-last-start.html +== text-align-center-last-start.html text-align-center-last-start.html +== text-align-center-last-start.html text-align-center-last-start.html +== text-align-center-last-end.html text-align-center-last-end.html +== text-align-center-last-end.html text-align-center-last-end.html +== text-align-center-last-center.html text-align-center-last-center.html +== text-align-justify-last-start.html text-align-justify-last-start.html +== text-align-justify-last-start.html text-align-justify-last-start.html +== text-align-justify-last-start.html text-align-justify-last-start.html +== text-align-justify-last-end.html text-align-justify-last-end.html +== text-align-justify-last-end.html text-align-justify-last-end.html +== text-align-justify-last-center.html text-align-justify-last-center.html +== text-align-left-in-rtl-block.html text-align-left-in-rtl-block.html +HTTP(..) == variation-selector-unsupported-1.html variation-selector-unsupported-1.html +== white-space-1a.html white-space-1a.html +== white-space-1b.html white-space-1b.html +== white-space-2.html white-space-2.html +== wordbreak-1.html wordbreak-1.html +== wordbreak-2.html wordbreak-2.html +== wordbreak-3.html wordbreak-3.html +skip-if((Android)||(B2G&&browserIsRemote)) == wordbreak-4a.html wordbreak-4a.html +== wordbreak-4b.html wordbreak-4b.html +== wordbreak-5.html wordbreak-5.html +fails-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)) == wordbreak-6.html wordbreak-6.html +# Bug 1258239 +skip-if(B2G||Mulet) HTTP(..) == wordbreak-7a.html wordbreak-7a.html +# Initial mulet triage: parity with B2G/B2G Desktop +HTTP(..) == wordbreak-7b.html wordbreak-7b.html +# bug 479829 +== wordbreak-8.html wordbreak-8.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == wordbreak-9.html wordbreak-9.html +== wordwrap-01.html wordwrap-01.html +HTTP(..) == wordwrap-02.html wordwrap-02.html +fuzzy-if(gtkWidget,1,177) fuzzy-if(skiaContent,1,50) skip-if(B2G||Mulet) HTTP(..) == wordwrap-03.html wordwrap-03.html +# Initial mulet triage: parity with B2G/B2G Desktop +# Fuzzy on Linux because the native textbox gradient is painted in a slightly different position depending on the invalid area. +== wordwrap-04.html wordwrap-04.html +== overflowwrap-04.html overflowwrap-04.html +== wordwrap-05.html wordwrap-05.html +== overflowwrap-05.html overflowwrap-05.html +== wordwrap-06.html wordwrap-06.html +== overflowwrap-06.html overflowwrap-06.html +== wordwrap-07.html wordwrap-07.html +== overflowwrap-07.html overflowwrap-07.html +skip-if(B2G||Mulet) == wordwrap-08.html wordwrap-08.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) == wordwrap-08.html wordwrap-08.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) == wordwrap-09.html wordwrap-09.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) == overflowwrap-09.html overflowwrap-09.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) == wordwrap-09.html wordwrap-09.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if(B2G||Mulet) == overflowwrap-09.html overflowwrap-09.html +# Initial mulet triage: parity with B2G/B2G Desktop +== wordwrap-10.html wordwrap-10.html +# bug 752459 +skip == overflowwrap-10.html overflowwrap-10.html +== word-spacing-01.html word-spacing-01.html +# the following will fail when rendering with Core Text (see bug 389074) due to what appears to be +# an Apple bug: the presence of ZWNJ disturbs the positioning of an adjacent glyph. rdar://6427865 +random-if(cocoaWidget) HTTP(..) == zwnj-01.xhtml zwnj-01.xhtml +HTTP(..) == zwnj-02.xhtml zwnj-02.xhtml +# HTTP(..) for ../filters.svg +== zwnj-01.html zwnj-01.html +== initial-zwj-1.html initial-zwj-1.html +== cgj-01.html cgj-01.html +skip == 444656.html 444656.html +== 449555-1.html 449555-1.html +== 467722.html 467722.html +fails skip-if(B2G||Mulet) fuzzy-if(skiaContent,1,600) HTTP(..) == 475092-sub.html 475092-sub.html +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(!winWidget&&!gtkWidget) skip-if(B2G||Mulet) fuzzy-if(skiaContent,89,3100) HTTP(..) == 475092-pos.html 475092-pos.html +# bug 482596 +# Initial mulet triage: parity with B2G/B2G Desktop +== 476378-soft-hyphen-fallback.html 476378-soft-hyphen-fallback.html +# Test for bug 484954 +== rgba-text.html rgba-text.html +# Test for bug 575695, 'kern' table support +HTTP(..) == kerning-01.html kerning-01.html +# Test for bug 577380, support for AAT layout (on OS X only) +skip random-if(!cocoaWidget) == 577380.html 577380.html +# Test for OpenType Arabic shaping support +HTTP(..) == arabic-shaping-1.html arabic-shaping-1.html +# check ligature in Arial Bold on Windows, for bug 644184; may fail on other platforms depending on fonts +random-if(!winWidget) == arial-bold-lam-alef-1.html arial-bold-lam-alef-1.html +# Fallback (presentation-forms) shaping with a font that lacks GSUB/GPOS +# These tests are not valid with Mac or FT2 font backends because our masking of complex-script ranges +# in the 'cmap' will prevent the test font (without GSUB) being used. +random HTTP(..) == arabic-fallback-1.html arabic-fallback-1.html +# Initial mulet triage: parity with B2G/B2G Desktop +random HTTP(..) == arabic-fallback-2.html arabic-fallback-2.html +random HTTP(..) == arabic-fallback-3.html arabic-fallback-3.html +random HTTP(..) == arabic-fallback-4.html arabic-fallback-4.html +== arabic-marks-1.html arabic-marks-1.html +fails-if(OSX<1008) == arabic-final-ligature-spacing.html arabic-final-ligature-spacing.html +# harfbuzz fallback mark stacking in the absence of GPOS: +HTTP(..) == fallback-mark-stacking-1.html fallback-mark-stacking-1.html + +== 726392-1.html 726392-1.html +== 726392-2.html 726392-2.html +skip-if(B2G||Mulet) == 726392-3.html 726392-3.html +# Initial mulet triage: parity with B2G/B2G Desktop +== 745555-1.html 745555-1.html +== 745555-2.html 745555-2.html +== 820255.html 820255.html +HTTP(..) == 1170688.html 1170688.html + +# ensure emoji chars don't render blank (bug 715798, bug 779042); +# should at least render hexboxes if there's no font support +== emoji-01.html emoji-01.html +== emoji-02.html emoji-02.html + +# Bug 727276: tests with variation selectors 15 and 16 to control emoji rendering style +== emoji-03.html emoji-03.html +# the next two will fail on OS X 10.6 because no color emoji font is present, +# and also on Android/B2G platforms until we have color emoji fonts there. +# Tests rely on bundled EmojiOne Mozilla to pass on Windows <8.1 and Linux. +fails-if(OSX==1006||B2G||Android) == emoji-03.html emoji-03.html +fails-if(OSX==1006||B2G||Android) == emoji-04.html emoji-04.html +== emoji-05.html emoji-05.html + +# check that Graphite shaping (bug 631479) is working +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-01.html graphite-01.html +# Test 02 (using Pig Latin) is fuzzy on Win7 because glyph positioning is not guaranteed to match exactly +# between a sequence of simple glyphs rendered individually, and the same sequence treated as a single cluster. +fuzzy-if(winWidget,49,220) pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-02.html graphite-02.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-03a.html graphite-03a.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-03b.html graphite-03b.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-01.html graphite-01.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-02.html graphite-02.html +# test 03a (lang setting in Padauk font) now works in opentype/harfbuzz as well +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-03a.html graphite-03a.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-03b.html graphite-03b.html + +# tests for graphite rendering with valid and invalid lang tags +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-fa.html graphite-04-fa.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-sd.html graphite-04-sd.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-snd.html graphite-04-snd.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-ur.html graphite-04-ur.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-urd.html graphite-04-urd.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-sd.html graphite-04-sd.html + +# tests to compare graphite to opentype (will trivially pass when graphite not enabled) +skip HTTP(..) == graphite-05-ot-only.html graphite-05-ot-only.html +skip HTTP(..) == graphite-05-ot-only.html graphite-05-ot-only.html +HTTP(..) == graphite-05-simple.html graphite-05-simple.html +HTTP(..) == graphite-05-multipass.html graphite-05-multipass.html +HTTP(..) == graphite-05-lang.html graphite-05-lang.html +HTTP(..) == graphite-05-badlang.html graphite-05-badlang.html +HTTP(..) == graphite-05-feat.html graphite-05-feat.html + +# comparing composed and decomposed characters that should render identically +# under both OpenType and Graphite shaping +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == glyph-decomposition-opentype.html glyph-decomposition-opentype.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == glyph-decomposition-graphite.html glyph-decomposition-graphite.html + +# test for bidi bug in graphite 1.3.2, fixed in 1.3.3 (bug 1207061) +HTTP(..) == graphite-bidi-1.html graphite-bidi-1.html + +HTTP(..) == graphite-surrogate-selection.html graphite-surrogate-selection.html + +# Tests for hyphenation with hyphens property +== auto-hyphenation-1.html auto-hyphenation-1.html +== auto-hyphenation-1.html auto-hyphenation-1.html +== auto-hyphenation-1a.html auto-hyphenation-1a.html +== auto-hyphenation-2.html auto-hyphenation-2.html +== auto-hyphenation-3.html auto-hyphenation-3.html +== auto-hyphenation-4.html auto-hyphenation-4.html +== auto-hyphenation-5.html auto-hyphenation-5.html +== auto-hyphenation-6.html auto-hyphenation-6.html +== auto-hyphenation-7.html auto-hyphenation-7.html +== auto-hyphenation-8.html auto-hyphenation-8.html +== auto-hyphenation-9.html auto-hyphenation-9.html +== auto-hyphenation-10.html auto-hyphenation-10.html +== auto-hyphenation-xmllang-1.xhtml auto-hyphenation-xmllang-1.xhtml +== auto-hyphenation-xmllang-1.xhtml auto-hyphenation-xmllang-1.xhtml +== auto-hyphenation-xmllang-1a.xhtml auto-hyphenation-xmllang-1a.xhtml +== auto-hyphenation-xmllang-2.xhtml auto-hyphenation-xmllang-2.xhtml +== auto-hyphenation-xmllang-3.xhtml auto-hyphenation-xmllang-3.xhtml +== auto-hyphenation-xmllang-4.xhtml auto-hyphenation-xmllang-4.xhtml +== auto-hyphenation-xmllang-5.xhtml auto-hyphenation-xmllang-5.xhtml +== auto-hyphenation-xmllang-6.xhtml auto-hyphenation-xmllang-6.xhtml +== auto-hyphenation-xmllang-7.xhtml auto-hyphenation-xmllang-7.xhtml +== auto-hyphenation-xmllang-8.xhtml auto-hyphenation-xmllang-8.xhtml +== auto-hyphenation-xmllang-9.xhtml auto-hyphenation-xmllang-9.xhtml +== auto-hyphenation-xmllang-10.xhtml auto-hyphenation-xmllang-10.xhtml +== auto-hyphenation-xmllang-11a.xhtml auto-hyphenation-xmllang-11a.xhtml +skip == auto-hyphenation-xmllang-11b.xhtml auto-hyphenation-xmllang-11b.xhtml +== auto-hyphenation-xmllang-12a.xhtml auto-hyphenation-xmllang-12a.xhtml +== auto-hyphenation-xmllang-12b.xhtml auto-hyphenation-xmllang-12b.xhtml +== auto-hyphenation-xmllang-13a.xhtml auto-hyphenation-xmllang-13a.xhtml +== auto-hyphenation-xmllang-13b.xhtml auto-hyphenation-xmllang-13b.xhtml +== auto-hyphenation-xmllang-14a.xhtml auto-hyphenation-xmllang-14a.xhtml +== auto-hyphenation-xmllang-14b.xhtml auto-hyphenation-xmllang-14b.xhtml +== auto-hyphenation-af-1.html auto-hyphenation-af-1.html +== auto-hyphenation-bg-1.html auto-hyphenation-bg-1.html +== auto-hyphenation-ca-1.html auto-hyphenation-ca-1.html +== auto-hyphenation-cy-1.html auto-hyphenation-cy-1.html +== auto-hyphenation-da-1.html auto-hyphenation-da-1.html +== auto-hyphenation-de-1901-1.html auto-hyphenation-de-1901-1.html +== auto-hyphenation-de-1996-1.html auto-hyphenation-de-1996-1.html +== auto-hyphenation-de-1901-1.html auto-hyphenation-de-1901-1.html +== auto-hyphenation-de-ch-1.html auto-hyphenation-de-ch-1.html +== auto-hyphenation-eo-1.html auto-hyphenation-eo-1.html +== auto-hyphenation-es-1.html auto-hyphenation-es-1.html +== auto-hyphenation-et-1.html auto-hyphenation-et-1.html +== auto-hyphenation-fi-1.html auto-hyphenation-fi-1.html +== auto-hyphenation-fr-1.html auto-hyphenation-fr-1.html +== auto-hyphenation-gl-1.html auto-hyphenation-gl-1.html +== auto-hyphenation-hr-1.html auto-hyphenation-hr-1.html +== auto-hyphenation-hsb-1.html auto-hyphenation-hsb-1.html +== auto-hyphenation-hu-1.html auto-hyphenation-hu-1.html +== auto-hyphenation-ia-1.html auto-hyphenation-ia-1.html +== auto-hyphenation-is-1.html auto-hyphenation-is-1.html +== auto-hyphenation-it-1.html auto-hyphenation-it-1.html +== auto-hyphenation-kmr-1.html auto-hyphenation-kmr-1.html +== auto-hyphenation-la-1.html auto-hyphenation-la-1.html +== auto-hyphenation-lt-1.html auto-hyphenation-lt-1.html +== auto-hyphenation-mn-1.html auto-hyphenation-mn-1.html +== auto-hyphenation-nb-1.html auto-hyphenation-nb-1.html +== auto-hyphenation-nl-1.html auto-hyphenation-nl-1.html +== auto-hyphenation-nn-1.html auto-hyphenation-nn-1.html +== auto-hyphenation-pl-1.html auto-hyphenation-pl-1.html +== auto-hyphenation-pt-1.html auto-hyphenation-pt-1.html +== auto-hyphenation-ru-1.html auto-hyphenation-ru-1.html +== auto-hyphenation-sh-1.html auto-hyphenation-sh-1.html +== auto-hyphenation-sl-1.html auto-hyphenation-sl-1.html +== auto-hyphenation-sr-1.html auto-hyphenation-sr-1.html +== auto-hyphenation-sv-1.html auto-hyphenation-sv-1.html +# test swedish patterns +== auto-hyphenation-sv-1.html auto-hyphenation-sv-1.html +# verify swedish == == +== auto-hyphenation-tr-1.html auto-hyphenation-tr-1.html +== auto-hyphenation-uk-1.html auto-hyphenation-uk-1.html + +== auto-hyphenation-transformed-1.html auto-hyphenation-transformed-1.html + +# osx-font-smoothing - with and without subpixel AA, only under OSX +skip == osx-font-smoothing.html osx-font-smoothing.html +skip == osx-font-smoothing-2.html osx-font-smoothing-2.html +== osx-font-smoothing-2.html osx-font-smoothing-2.html + +pref(layout.css.text-align-unsafe-value.enabled,true) == text-align-unsafe.html text-align-unsafe.html + +# stray control chars should be visible by default, bug 1099557 +== control-chars-01a.html control-chars-01a.html +== control-chars-01b.html control-chars-01b.html +== control-chars-01c.html control-chars-01c.html +== control-chars-01d.html control-chars-01d.html +== control-chars-02.html control-chars-02.html +== control-chars-03a.html control-chars-03a.html +== control-chars-03b.html control-chars-03b.html +pref(layout.css.control-characters.visible,true) == control-chars-04a.html control-chars-04a.html +pref(layout.css.control-characters.visible,true) == control-chars-04b.html control-chars-04b.html +pref(layout.css.control-characters.visible,true) == control-chars-04c.html control-chars-04c.html +pref(layout.css.control-characters.visible,true) == control-chars-04d.html control-chars-04d.html + +# font fallback for <space> when not supported in the primary font family - bug 970891 +HTTP(..) == space-font-1.html space-font-1.html + +# handling of highly negative letter-spacing and intrinsic width +== negative-letter-spacing-1.html negative-letter-spacing-1.html diff --git a/layout/reftests/text/reftest.list b/layout/reftests/text/reftest.list new file mode 100644 index 000000000..7e4bd55c0 --- /dev/null +++ b/layout/reftests/text/reftest.list @@ -0,0 +1,341 @@ +fails-if(Android) == fallback-01.xhtml fallback-01-ref.xhtml +== font-selection-by-lang-01.html font-selection-by-lang-01-ref.html +HTTP(..) == font-selection-fallback-1.html font-selection-fallback-1-ref.html +HTTP(..) == font-selection-generic-1.html font-selection-generic-1-ref.html +fails-if(Android) != font-size-adjust-01.html font-size-adjust-01-ref.html +# The following test passes consistently only on Mac OS X; +# both Windows and Linux give results that vary depending on the font size/zoom factor used, +# because hinting affects the metrics used to compute the font size adjustment. See bug 429605. +random-if(!cocoaWidget) == font-size-adjust-02.html font-size-adjust-02-ref.html +# This currently fails because line spacing does not respect font-size-adjust +# in the "obvious" way, but it is unclear what the behavior should really be; +# see bug #366138 for some (inconclusive) discussion +# == font-size-adjust-03.html font-size-adjust-03-ref.html +== justification-1.html justification-1-ref.html +== justification-2a.html justification-2-ref.html +== justification-2b.html justification-2-ref.html +== justification-2c.html justification-2-ref.html +!= justification-2d.html justification-2-ref.html +== justification-cjk-extension.html justification-cjk-extension-ref.html +== justification-space-diacritic.html justification-space-diacritic-ref.html +HTTP(..) load ligature-with-space-1.html +== line-editing-1a.html line-editing-1-ref.html +== line-editing-1b.html line-editing-1-ref.html +== line-editing-1c.html line-editing-1-ref.html +== line-editing-1d.html line-editing-1-ref.html +== line-editing-1e.html line-editing-1-ref.html +fails-if(cocoaWidget||(winWidget&&dwrite)) HTTP(..) == lineheight-metrics-1.html lineheight-metrics-1-ref.html # bug 657864 +HTTP(..) == lineheight-metrics-2a.html lineheight-metrics-2-ref.html +HTTP(..) == lineheight-metrics-2b.html lineheight-metrics-2-ref.html +== lineheight-percentage-1.html lineheight-percentage-1-ref.html +== long-1.html long-ref.html +fuzzy-if(Android,255,147) == pre-line-1.html pre-line-1-ref.html +== pre-line-2.html pre-line-2-ref.html +== pre-line-3.html pre-line-3-ref.html +== pre-line-4.html pre-line-4-ref.html +== pre-space-1.html pre-space-1-ref.html +== pre-wrap-1.html pre-wrap-1-ref.html +== soft-hyphens-1a.html soft-hyphens-1-ref.html +== soft-hyphens-1b.html soft-hyphens-1-ref.html +== soft-hyphens-1c.html soft-hyphens-1-ref.html +== soft-hyphens-break-word-1a.html soft-hyphens-break-word-1-ref.html +== soft-hyphens-break-word-1b.html soft-hyphens-break-word-1-ref.html +== soft-hyphens-break-word-1c.html soft-hyphens-break-word-1-ref.html +# Tests for soft hyphens in table cells, bug 418975 +!= soft-hyphen-in-table-1.html soft-hyphen-in-table-1-notref.html +== soft-hyphen-in-table-1.html soft-hyphen-in-table-1-ref.html +== soft-hyphen-in-table-2.html soft-hyphen-in-table-2-ref.html +# Cairo's FreeType and GDI backends snap glyphs to pixels, while Mac (usually), +# D2D, and Skia have subpixel positioning. The tests for pixel-snapping assume that +# 1 CSS pixel == 1 device pixel +fails-if(Android) skip-if(d2d||cocoaWidget||skiaContent) == subpixel-glyphs-x-1a.html subpixel-glyphs-x-1b.html +# Platforms with subpixel positioning already have inconsistent glyphs by +# design, but that is considered more tolerable because they are subpixel +# inconsistencies. On those platforms we just test that glyph positions are +# subpixel. +# D2D/DirectWrite results depend on the rendering mode chosen, so considering this as random for now. +skip-if(!(d2d||cocoaWidget)) random-if(d2d) != subpixel-glyphs-x-2a.html subpixel-glyphs-x-2b.html +HTTP(..) == subpixel-glyphs-x-3a.html subpixel-glyphs-x-3b.html +# No platforms do subpixel positioning vertically +fuzzy-if(Android,19,2) == subpixel-glyphs-y-1a.html subpixel-glyphs-y-1b.html +fuzzy-if(Android,231,653) == subpixel-lineheight-1a.html subpixel-lineheight-1b.html +== swash-1.html swash-1-ref.html +HTTP(..) != synthetic-bold-metrics-01.html synthetic-bold-metrics-01-notref.html +HTTP(..) == synthetic-bold-papyrus-01.html synthetic-bold-papyrus-01-ref.html +# Tests for text-align-last +== text-align-last-start.html text-align-last-start-ref.html +== text-align-last-end.html text-align-last-end-ref.html +== text-align-last-center.html text-align-last-center-ref.html +== text-align-last-justify.html text-align-last-justify-ref.html +== text-align-last-justify-rtl.html text-align-last-justify-rtl-ref.html +# +# Default values: +# text-align defaults to start. text-align-last defaults to auto, which is +# equivalent to the value of the ‘text-align’ property except when ‘text-align’ +# is set to ‘justify’, in which case it is currently equivalent to ‘start’ +# This will need to change when we implement text-justify +== text-align-default-last-default.html text-align-start-last-start.html +== text-align-start-last-default.html text-align-start-last-start.html +== text-align-end-last-default.html text-align-end-last-end.html +== text-align-center-last-default.html text-align-center-last-center.html +== text-align-justify-last-default.html text-align-justify-last-start.html +# All combinations of text-align and text-align-last should give different results +# This only tests the combinations with the same value for text-align and +# different values for text-align-last +!= text-align-start-last-start.html text-align-start-last-end.html +!= text-align-start-last-start.html text-align-start-last-center.html +!= text-align-start-last-start.html text-align-start-last-justify.html +!= text-align-start-last-end.html text-align-start-last-center.html +!= text-align-start-last-end.html text-align-start-last-justify.html +!= text-align-start-last-center.html text-align-start-last-justify.html +!= text-align-end-last-start.html text-align-end-last-end.html +!= text-align-end-last-start.html text-align-end-last-center.html +!= text-align-end-last-start.html text-align-end-last-justify.html +!= text-align-end-last-end.html text-align-end-last-center.html +!= text-align-end-last-end.html text-align-end-last-justify.html +!= text-align-end-last-center.html text-align-end-last-justify.html +!= text-align-center-last-start.html text-align-center-last-end.html +!= text-align-center-last-start.html text-align-center-last-center.html +!= text-align-center-last-start.html text-align-center-last-justify.html +!= text-align-center-last-end.html text-align-center-last-center.html +!= text-align-center-last-end.html text-align-center-last-justify.html +!= text-align-center-last-center.html text-align-center-last-justify.html +!= text-align-justify-last-start.html text-align-justify-last-end.html +!= text-align-justify-last-start.html text-align-justify-last-center.html +!= text-align-justify-last-start.html text-align-justify-last-justify.html +!= text-align-justify-last-end.html text-align-justify-last-center.html +!= text-align-justify-last-end.html text-align-justify-last-justify.html +!= text-align-justify-last-center.html text-align-justify-last-justify.html +== text-align-left-in-rtl-block.html text-align-left-in-rtl-block-ref.html +HTTP(..) == variation-selector-unsupported-1.html variation-selector-unsupported-1-ref.html +== white-space-1a.html white-space-1-ref.html +== white-space-1b.html white-space-1-ref.html +== white-space-2.html white-space-2-ref.html +== wordbreak-1.html wordbreak-1-ref.html +== wordbreak-2.html wordbreak-2-ref.html +== wordbreak-3.html wordbreak-3-ref.html +skip-if(Android) == wordbreak-4a.html wordbreak-4a-ref.html +== wordbreak-4b.html wordbreak-4b-ref.html +== wordbreak-5.html wordbreak-5-ref.html +fails-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)) == wordbreak-6.html wordbreak-6-ref.html # Bug 1258239 +HTTP(..) == wordbreak-7a.html wordbreak-7a-ref.html +fails HTTP(..) == wordbreak-7b.html wordbreak-7b-ref.html # bug 479829 +== wordbreak-8.html wordbreak-8-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == wordbreak-9.html wordbreak-9-ref.html +== wordwrap-01.html wordwrap-01-ref.html +HTTP(..) == wordwrap-02.html wordwrap-02-ref.html +fuzzy-if(gtkWidget,1,177) fuzzy-if(skiaContent,1,50) HTTP(..) == wordwrap-03.html wordwrap-03-ref.html # Fuzzy on Linux because the native textbox gradient is painted in a slightly different position depending on the invalid area. +== wordwrap-04.html wordwrap-04-ref.html +== overflowwrap-04.html wordwrap-04-ref.html +== wordwrap-05.html wordwrap-05-ref.html +== overflowwrap-05.html wordwrap-05-ref.html +== wordwrap-06.html wordwrap-06-ref.html +== overflowwrap-06.html wordwrap-06-ref.html +== wordwrap-07.html wordwrap-07-ref.html +== overflowwrap-07.html wordwrap-07-ref.html +!= wordwrap-08.html wordwrap-01-ref.html +== wordwrap-08.html wordwrap-08-ref.html +!= wordwrap-09.html wordwrap-01-ref.html +!= overflowwrap-09.html wordwrap-01-ref.html +== wordwrap-09.html wordwrap-09-ref.html +== overflowwrap-09.html wordwrap-09-ref.html +== wordwrap-10.html wordwrap-10-ref.html # bug 752459 +== overflowwrap-10.html wordwrap-10-ref.html +== word-spacing-01.html word-spacing-01-ref.html +# the following will fail when rendering with Core Text (see bug 389074) due to what appears to be +# an Apple bug: the presence of ZWNJ disturbs the positioning of an adjacent glyph. rdar://6427865 +random-if(cocoaWidget) random-if(gtkWidget) HTTP(..) == zwnj-01.xhtml zwnj-01-ref.xhtml # gtkWidget:bug 1309113 +HTTP(..) == zwnj-02.xhtml zwnj-02-ref.xhtml # HTTP(..) for ../filters.svg +!= zwnj-01.html zwnj-01-notref.html +== initial-zwj-1.html initial-zwj-1-ref.html +== cgj-01.html cgj-01-ref.html +== 444656.html 444656-ref.html +== 449555-1.html 449555-1-ref.html +== 467722.html 467722-ref.html +fuzzy-if(skiaContent,1,600) HTTP(..) == 475092-sub.html 475092-ref.html +fails-if(Android) fuzzy-if(skiaContent&&!Android,90,3100) HTTP(..) == 475092-pos.html 475092-sub.html # bug 482596 +== 476378-soft-hyphen-fallback.html 476378-soft-hyphen-fallback-ref.html +# Test for bug 484954 +== rgba-text.html rgba-text-ref.html +# Test for bug 575695, 'kern' table support +HTTP(..) != kerning-01.html kerning-01-notref.html +# Test for bug 577380, support for AAT layout (on OS X only) +random-if(!cocoaWidget) == 577380.html 577380-ref.html +# Test for OpenType Arabic shaping support +HTTP(..) == arabic-shaping-1.html arabic-shaping-1-ref.html +# check ligature in Arial Bold on Windows, for bug 644184; may fail on other platforms depending on fonts +random-if(!winWidget) == arial-bold-lam-alef-1.html arial-bold-lam-alef-1-ref.html +# Fallback (presentation-forms) shaping with a font that lacks GSUB/GPOS +# These tests are not valid with Mac or FT2 font backends because our masking of complex-script ranges +# in the 'cmap' will prevent the test font (without GSUB) being used. +fails-if(cocoaWidget||Android) HTTP(..) == arabic-fallback-1.html arabic-fallback-1-ref.html +fails-if(cocoaWidget||Android) HTTP(..) == arabic-fallback-2.html arabic-fallback-2-ref.html +fails-if(cocoaWidget||Android) HTTP(..) == arabic-fallback-3.html arabic-fallback-3-ref.html +fails-if(!cocoaWidget&&!Android) HTTP(..) != arabic-fallback-4.html arabic-fallback-4-notref.html +== arabic-marks-1.html arabic-marks-1-ref.html +fails-if(OSX<1008) == arabic-final-ligature-spacing.html arabic-final-ligature-spacing-ref.html +# harfbuzz fallback mark stacking in the absence of GPOS: +HTTP(..) != fallback-mark-stacking-1.html fallback-mark-stacking-1-notref.html + +== 726392-1.html 726392-1-ref.html +== 726392-2.html 726392-2-ref.html +== 726392-3.html 726392-3-ref.html +== 745555-1.html 745555-1-ref.html +== 745555-2.html 745555-2-ref.html +== 820255.html 820255-ref.html +HTTP(..) != 1170688.html 1170688-ref.html + +# ensure emoji chars don't render blank (bug 715798, bug 779042); +# should at least render hexboxes if there's no font support +!= emoji-01.html emoji-01-notref.html +!= emoji-02.html emoji-02-notref.html + +# Bug 727276: tests with variation selectors 15 and 16 to control emoji rendering style +== emoji-03.html emoji-03-ref.html +# the next two will fail on OS X 10.6 because no color emoji font is present, +# and also on Android platforms until we have color emoji fonts there. +# Tests rely on bundled EmojiOne Mozilla to pass on Windows <8.1 and Linux. +fails-if(OSX==1006||Android) != emoji-03.html emoji-03-notref.html +fails-if(OSX==1006||Android) == emoji-04.html emoji-04-ref.html +!= emoji-05.html emoji-05-notref.html + +# check that Graphite shaping (bug 631479) is working +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-01.html graphite-01-ref.html +# Test 02 (using Pig Latin) is fuzzy on Win7 because glyph positioning is not guaranteed to match exactly +# between a sequence of simple glyphs rendered individually, and the same sequence treated as a single cluster. +fuzzy-if(winWidget,49,220) pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-02.html graphite-02-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-03a.html graphite-03-notref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-03b.html graphite-03-notref.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-01.html graphite-01-ref.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-02.html graphite-02-ref.html +# test 03a (lang setting in Padauk font) now works in opentype/harfbuzz as well +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-03a.html graphite-03-notref.html +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-03b.html graphite-03-notref.html + +# tests for graphite rendering with valid and invalid lang tags +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-fa.html graphite-04-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-sd.html graphite-04-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-snd.html graphite-04-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-ur.html graphite-04-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-urd.html graphite-04-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-sd.html graphite-04-ur.html + +# tests to compare graphite to opentype (will trivially pass when graphite not enabled) +HTTP(..) == graphite-05-ot-only.html graphite-05-ref.html +HTTP(..) != graphite-05-ot-only.html graphite-05-fail.html +HTTP(..) == graphite-05-simple.html graphite-05-ref.html +HTTP(..) == graphite-05-multipass.html graphite-05-ref.html +HTTP(..) == graphite-05-lang.html graphite-05-ref.html +HTTP(..) == graphite-05-badlang.html graphite-05-ref.html +HTTP(..) == graphite-05-feat.html graphite-05-ref.html + +# comparing composed and decomposed characters that should render identically +# under both OpenType and Graphite shaping +pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == glyph-decomposition-opentype.html glyph-decomposition-opentype-ref.html +pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == glyph-decomposition-graphite.html glyph-decomposition-graphite-ref.html + +# test for bidi bug in graphite 1.3.2, fixed in 1.3.3 (bug 1207061) +HTTP(..) == graphite-bidi-1.html graphite-bidi-1-ref.html + +HTTP(..) == graphite-surrogate-selection.html graphite-surrogate-selection-ref.html + +# Tests for hyphenation with hyphens property +== auto-hyphenation-1.html auto-hyphenation-1-ref.html +!= auto-hyphenation-1.html auto-hyphenation-1-notref.html +== auto-hyphenation-1a.html auto-hyphenation-1-ref.html +== auto-hyphenation-2.html auto-hyphenation-2-ref.html +== auto-hyphenation-3.html auto-hyphenation-3-ref.html +== auto-hyphenation-4.html auto-hyphenation-4-ref.html +== auto-hyphenation-5.html auto-hyphenation-5-ref.html +== auto-hyphenation-6.html auto-hyphenation-6-ref.html +== auto-hyphenation-7.html auto-hyphenation-7-ref.html +== auto-hyphenation-8.html auto-hyphenation-8-ref.html +== auto-hyphenation-9.html auto-hyphenation-9-ref.html +== auto-hyphenation-10.html auto-hyphenation-10-ref.html +== auto-hyphenation-xmllang-1.xhtml auto-hyphenation-1-ref.html +!= auto-hyphenation-xmllang-1.xhtml auto-hyphenation-1-notref.html +== auto-hyphenation-xmllang-1a.xhtml auto-hyphenation-1-ref.html +== auto-hyphenation-xmllang-2.xhtml auto-hyphenation-2-ref.html +== auto-hyphenation-xmllang-3.xhtml auto-hyphenation-3-ref.html +== auto-hyphenation-xmllang-4.xhtml auto-hyphenation-4-ref.html +== auto-hyphenation-xmllang-5.xhtml auto-hyphenation-5-ref.html +== auto-hyphenation-xmllang-6.xhtml auto-hyphenation-6-ref.html +== auto-hyphenation-xmllang-7.xhtml auto-hyphenation-7-ref.html +== auto-hyphenation-xmllang-8.xhtml auto-hyphenation-8-ref.html +== auto-hyphenation-xmllang-9.xhtml auto-hyphenation-9-ref.html +== auto-hyphenation-xmllang-10.xhtml auto-hyphenation-10-ref.html +== auto-hyphenation-xmllang-11a.xhtml auto-hyphenation-1-ref.html +== auto-hyphenation-xmllang-11b.xhtml auto-hyphenation-1-ref.html +== auto-hyphenation-xmllang-12a.xhtml auto-hyphenation-4-ref.html +== auto-hyphenation-xmllang-12b.xhtml auto-hyphenation-4-ref.html +== auto-hyphenation-xmllang-13a.xhtml auto-hyphenation-1-ref.html +== auto-hyphenation-xmllang-13b.xhtml auto-hyphenation-1-ref.html +== auto-hyphenation-xmllang-14a.xhtml auto-hyphenation-4-ref.html +== auto-hyphenation-xmllang-14b.xhtml auto-hyphenation-4-ref.html +== auto-hyphenation-af-1.html auto-hyphenation-af-1-ref.html +== auto-hyphenation-bg-1.html auto-hyphenation-bg-1-ref.html +== auto-hyphenation-ca-1.html auto-hyphenation-ca-1-ref.html +== auto-hyphenation-cy-1.html auto-hyphenation-cy-1-ref.html +== auto-hyphenation-da-1.html auto-hyphenation-da-1-ref.html +== auto-hyphenation-de-1901-1.html auto-hyphenation-de-1901-1-ref.html +== auto-hyphenation-de-1996-1.html auto-hyphenation-de-1996-1-ref.html +!= auto-hyphenation-de-1901-1.html auto-hyphenation-de-1996-1.html +== auto-hyphenation-de-ch-1.html auto-hyphenation-de-ch-1-ref.html +== auto-hyphenation-eo-1.html auto-hyphenation-eo-1-ref.html +== auto-hyphenation-es-1.html auto-hyphenation-es-1-ref.html +== auto-hyphenation-et-1.html auto-hyphenation-et-1-ref.html +== auto-hyphenation-fi-1.html auto-hyphenation-fi-1-ref.html +== auto-hyphenation-fr-1.html auto-hyphenation-fr-1-ref.html +== auto-hyphenation-gl-1.html auto-hyphenation-gl-1-ref.html +== auto-hyphenation-hr-1.html auto-hyphenation-hr-1-ref.html +== auto-hyphenation-hsb-1.html auto-hyphenation-hsb-1-ref.html +== auto-hyphenation-hu-1.html auto-hyphenation-hu-1-ref.html +== auto-hyphenation-ia-1.html auto-hyphenation-ia-1-ref.html +== auto-hyphenation-is-1.html auto-hyphenation-is-1-ref.html +== auto-hyphenation-it-1.html auto-hyphenation-it-1-ref.html +== auto-hyphenation-kmr-1.html auto-hyphenation-kmr-1-ref.html +== auto-hyphenation-la-1.html auto-hyphenation-la-1-ref.html +== auto-hyphenation-lt-1.html auto-hyphenation-lt-1-ref.html +== auto-hyphenation-mn-1.html auto-hyphenation-mn-1-ref.html +== auto-hyphenation-nb-1.html auto-hyphenation-nb-1-ref.html +== auto-hyphenation-nl-1.html auto-hyphenation-nl-1-ref.html +== auto-hyphenation-nn-1.html auto-hyphenation-nn-1-ref.html +== auto-hyphenation-pl-1.html auto-hyphenation-pl-1-ref.html +== auto-hyphenation-pt-1.html auto-hyphenation-pt-1-ref.html +== auto-hyphenation-ru-1.html auto-hyphenation-ru-1-ref.html +== auto-hyphenation-sh-1.html auto-hyphenation-sh-1-ref.html +== auto-hyphenation-sl-1.html auto-hyphenation-sl-1-ref.html +== auto-hyphenation-sr-1.html auto-hyphenation-sr-1-ref.html +== auto-hyphenation-sv-1.html auto-hyphenation-sv-1-ref.html # test swedish patterns +!= auto-hyphenation-sv-1.html auto-hyphenation-sv-1-notref.html # verify swedish != english +== auto-hyphenation-tr-1.html auto-hyphenation-tr-1-ref.html +== auto-hyphenation-uk-1.html auto-hyphenation-uk-1-ref.html + +== auto-hyphenation-transformed-1.html auto-hyphenation-transformed-1-ref.html + +# osx-font-smoothing - with and without subpixel AA, only under OSX +fails-if(!cocoaWidget||OSX==1006||OSX==1007) != osx-font-smoothing.html osx-font-smoothing-ref.html +fails-if(!cocoaWidget||OSX==1006||OSX==1007) != osx-font-smoothing-2.html osx-font-smoothing-2-notref.html +== osx-font-smoothing-2.html osx-font-smoothing-2-ref.html + +pref(layout.css.text-align-unsafe-value.enabled,true) == text-align-unsafe.html text-align-unsafe-ref.html + +# stray control chars should be visible by default, bug 1099557 +!= control-chars-01a.html control-chars-01-notref.html +!= control-chars-01b.html control-chars-01-notref.html +!= control-chars-01c.html control-chars-01-notref.html +!= control-chars-01d.html control-chars-01-notref.html +!= control-chars-02.html control-chars-02-notref.html +== control-chars-03a.html control-chars-03-ref.html +== control-chars-03b.html control-chars-03-ref.html +pref(layout.css.control-characters.visible,true) != control-chars-04a.html control-chars-04-notref.html +pref(layout.css.control-characters.visible,true) != control-chars-04b.html control-chars-04-notref.html +pref(layout.css.control-characters.visible,true) != control-chars-04c.html control-chars-04-notref.html +pref(layout.css.control-characters.visible,true) != control-chars-04d.html control-chars-04-notref.html + +# font fallback for <space> when not supported in the primary font family - bug 970891 +HTTP(..) == space-font-1.html space-font-1-ref.html + +# handling of highly negative letter-spacing and intrinsic width +== negative-letter-spacing-1.html negative-letter-spacing-1-ref.html +== segment-break-transformation-1.html segment-break-transformation-1-ref.html diff --git a/layout/reftests/text/rgba-text-ref.html b/layout/reftests/text/rgba-text-ref.html new file mode 100644 index 000000000..8bf7036eb --- /dev/null +++ b/layout/reftests/text/rgba-text-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE HTML> +<html> +<body style="background: #000"> + <!-- A regular old red box --> + <div style="background: red; position:absolute; top:30px; left:0px; padding:50px"></div> +</body> +</html> diff --git a/layout/reftests/text/rgba-text.html b/layout/reftests/text/rgba-text.html new file mode 100644 index 000000000..a482ed76e --- /dev/null +++ b/layout/reftests/text/rgba-text.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML> +<html> +<body style="background: #000"> + <div style="color: rgba(255, 255, 255, 0.2); font-size:48px;">_</div> + <!-- the red box should totally obscure the drawn portion of the text + however if the text is painted as a box instead of an underscore it + will show above the top of the red box. + This test would have caught bug 484954 + --> + <div style="background: red; position:absolute; top:30px; left:0px; padding:50px"></div> +</body> +</html> diff --git a/layout/reftests/text/segment-break-transformation-1-ref.html b/layout/reftests/text/segment-break-transformation-1-ref.html new file mode 100644 index 000000000..8eb84ab88 --- /dev/null +++ b/layout/reftests/text/segment-break-transformation-1-ref.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<style type="text/css"> +div { border:1px solid black; } +b { font-weight:normal; background-color:yellow; font-size: 16px; line-height: 16px;} +</style> +</head> +<body> +<div> +<p><b><span>斷行測試</span></b> +<p><b><span>斷行測試</span></b> +<p><b><span>斷行測試</span></b> +<p><b><span>斷行測試</span></b> +<p><b><span>斷行測試</span></b> +<p><b><span>斷行<br> +測試</span></b> +<p><b><span>斷行<br> +測試</span></b> +<p><b><span>斷行<br> +測試</span></b> +<p><b><span>Hello Kitty</span></b> +<p><b><span>HelloKitty</span></b> +<p><b><span>HelloKitty</span></b> +<p><b><span>HelloKitty</span></b> +<!-- test surrogates handling --> +<p><b><span>𠀀𠀁𠀂𠀃</span></b> +<p><b><span>𠀀測𠀂𠀃</span></b> +<p><b><span>𠀀𠀁測𠀃</span></b> +</div> +</body> +</html> diff --git a/layout/reftests/text/segment-break-transformation-1.html b/layout/reftests/text/segment-break-transformation-1.html new file mode 100644 index 000000000..47ae36f01 --- /dev/null +++ b/layout/reftests/text/segment-break-transformation-1.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<style type="text/css"> +div { border:1px solid black; } +b { font-weight:normal; background-color:yellow; font-size: 16px; line-height: 16px;} +.nowrap { white-space:nowrap; } +.pre { white-space:pre; } +.prewrap { white-space:pre-wrap; } +.preline { white-space:pre-line; } +</style> +</head> +<body> +<div> +<p><b><span>斷行 +測試</span></b> +<p><b><span>斷行​ +測試</span></b> +<p><b><span>斷行 +​測試</span></b> +<p><b><span>斷行​ +​測試</span></b> +<p><b><span class="nowrap">斷行 +測試</span></b> +<p><b><span class="pre">斷行 +測試</span></b> +<p><b><span class="prewrap">斷行 +測試</span></b> +<p><b><span class="preline">斷行 +測試</span></b> +<p><b><span>Hello +Kitty</span></b> +<p><b><span>Hello​ +Kitty</span></b> +<p><b><span>Hello +​Kitty</span></b> +<p><b><span>Hello​ +​Kitty</span></b> +<!-- test surrogates handling --> +<p><b><span>𠀀𠀁 +𠀂𠀃</span></b> +<p><b><span>𠀀測 +𠀂𠀃</span></b> +<p><b><span>𠀀𠀁 +測𠀃</span></b> +</div> +</body> +</html> diff --git a/layout/reftests/text/soft-hyphen-in-table-1-notref.html b/layout/reftests/text/soft-hyphen-in-table-1-notref.html new file mode 100644 index 000000000..d22c20da2 --- /dev/null +++ b/layout/reftests/text/soft-hyphen-in-table-1-notref.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +table { + border: 1px solid red; +} +</style> +</head> + +<body> + +<table> +<tr><td style="width:10em">supercalifragilisticexpialidocious</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphen-in-table-1-ref.html b/layout/reftests/text/soft-hyphen-in-table-1-ref.html new file mode 100644 index 000000000..905c9db3f --- /dev/null +++ b/layout/reftests/text/soft-hyphen-in-table-1-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +table { + border: 1px solid red; +} +</style> +</head> + +<body> + +<table> +<tr><td style="width:10em">supercalifragilistic- expialidocious</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphen-in-table-1.html b/layout/reftests/text/soft-hyphen-in-table-1.html new file mode 100644 index 000000000..530a674b9 --- /dev/null +++ b/layout/reftests/text/soft-hyphen-in-table-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +table { + border: 1px solid red; +} +</style> +</head> + +<body> + +<table> +<tr><td style="width:10em">supercalifragilistic­expialidocious</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphen-in-table-2-ref.html b/layout/reftests/text/soft-hyphen-in-table-2-ref.html new file mode 100644 index 000000000..3e8ec5f98 --- /dev/null +++ b/layout/reftests/text/soft-hyphen-in-table-2-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +table { + border: 1px solid red; +} +</style> +</head> + +<body> + +<table> +<tr><td style="width:1em">supercalifragilistic- expialidocious</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphen-in-table-2.html b/layout/reftests/text/soft-hyphen-in-table-2.html new file mode 100644 index 000000000..00de48b5e --- /dev/null +++ b/layout/reftests/text/soft-hyphen-in-table-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html> +<head> +<style type="text/css"> +table { + border: 1px solid red; +} +</style> +</head> + +<body> + +<table> +<tr><td style="width:1em">supercalifragilistic­expialidocious</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-1-ref.html b/layout/reftests/text/soft-hyphens-1-ref.html new file mode 100644 index 000000000..b405be7cf --- /dev/null +++ b/layout/reftests/text/soft-hyphens-1-ref.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div> +<p>Hy-<br>phen. +<p>Hy-<br>phen. +<p>Hy-<br>phen. +<p>Hy-<br>phen. +<p>Hy-<br>phen. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-1a.html b/layout/reftests/text/soft-hyphens-1a.html new file mode 100644 index 000000000..9f6decdb5 --- /dev/null +++ b/layout/reftests/text/soft-hyphens-1a.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0;"> +<p>Hy­phen. +<p><span>H</span>y­phen. +<p><span>Hy</span>­phen. +<p><span>Hy­</span>phen. +<p><span>Hy­p</span>hen. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-1b.html b/layout/reftests/text/soft-hyphens-1b.html new file mode 100644 index 000000000..eb537773a --- /dev/null +++ b/layout/reftests/text/soft-hyphens-1b.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0;"> +<p>Hy­­phen. +<p><span>Hy</span>­­phen. +<p><span>Hy­</span>­phen. +<p><span>Hy­­</span>phen. +<p><span>Hy­­p</span>hen. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-1c.html b/layout/reftests/text/soft-hyphens-1c.html new file mode 100644 index 000000000..dad176634 --- /dev/null +++ b/layout/reftests/text/soft-hyphens-1c.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0;"> +<p><span>H</span><span>y­phen</span>. +<p><span>Hy</span><span>­phen</span>. +<p><span>Hy</span>­<span>phen</span>. +<p><span>Hy­</span><span>phen</span>. +<p><span>Hy­p</span><span>hen</span>. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-break-word-1-ref.html b/layout/reftests/text/soft-hyphens-break-word-1-ref.html new file mode 100644 index 000000000..e33081021 --- /dev/null +++ b/layout/reftests/text/soft-hyphens-break-word-1-ref.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div> +<p>H<br>y-<br>p<br>h<br>e<br>n<br>. +<p>H<br>y-<br>p<br>h<br>e<br>n<br>. +<p>H<br>y-<br>p<br>h<br>e<br>n<br>. +<p>H<br>y-<br>p<br>h<br>e<br>n<br>. +<p>H<br>y-<br>p<br>h<br>e<br>n<br>. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-break-word-1a.html b/layout/reftests/text/soft-hyphens-break-word-1a.html new file mode 100644 index 000000000..fd5a8099b --- /dev/null +++ b/layout/reftests/text/soft-hyphens-break-word-1a.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0; word-wrap:break-word;"> +<p>Hy­phen. +<p><span>H</span>y­phen. +<p><span>Hy</span>­phen. +<p><span>Hy­</span>phen. +<p><span>Hy­p</span>hen. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-break-word-1b.html b/layout/reftests/text/soft-hyphens-break-word-1b.html new file mode 100644 index 000000000..74d58cc6a --- /dev/null +++ b/layout/reftests/text/soft-hyphens-break-word-1b.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0; word-wrap:break-word;"> +<p>Hy­­phen. +<p><span>Hy</span>­­phen. +<p><span>Hy­</span>­phen. +<p><span>Hy­­</span>phen. +<p><span>Hy­­p</span>hen. +</div> + +</body> +</html> diff --git a/layout/reftests/text/soft-hyphens-break-word-1c.html b/layout/reftests/text/soft-hyphens-break-word-1c.html new file mode 100644 index 000000000..130f0c26b --- /dev/null +++ b/layout/reftests/text/soft-hyphens-break-word-1c.html @@ -0,0 +1,13 @@ +<html> +<body> + +<div style="width:0; word-wrap:break-word;"> +<p><span>H</span><span>y­phen</span>. +<p><span>Hy</span><span>­phen</span>. +<p><span>Hy</span>­<span>phen</span>. +<p><span>Hy­</span><span>phen</span>. +<p><span>Hy­p</span><span>hen</span>. +</div> + +</body> +</html> diff --git a/layout/reftests/text/space-font-1-ref.html b/layout/reftests/text/space-font-1-ref.html new file mode 100644 index 000000000..486ebf806 --- /dev/null +++ b/layout/reftests/text/space-font-1-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Bug 970891</title> + <style type="text/css"> + @font-face { + font-family: "test"; + src: url(../fonts/markA.ttf); + } + div { + font-family: test, monospace; + font-size: 16px; + line-height: 32px; + } + span { + font-family: monospace; + } + </style> +</head> + +<body> + <div><b>A</b><span> </span><b>A</b><span> </span><i>A</i><span> </span><i>A</i></div> +</body> + +</html> diff --git a/layout/reftests/text/space-font-1.html b/layout/reftests/text/space-font-1.html new file mode 100644 index 000000000..2648ca84f --- /dev/null +++ b/layout/reftests/text/space-font-1.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Bug 970891</title> + <style type="text/css"> + @font-face { + font-family: "test"; + src: url(../fonts/markA.ttf); + } + div { + font-family: test, monospace; + font-size: 16px; + line-height: 32px; + } + span { + font-family: monospace; + } + </style> +</head> + +<body> + <!-- markA does not have a glyph for the <space> character, + so the spaces should fall back to 'monospace'. --> + <div><b>A</b> <b>A</b> <i>A</i> <i>A</i><span> </span></div> +</body> + +</html> diff --git a/layout/reftests/text/subpixel-glyphs-x-1a.html b/layout/reftests/text/subpixel-glyphs-x-1a.html new file mode 100644 index 000000000..8d51b1c9d --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-1a.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 13px; + } + div { + border: none; + padding: 0px; + } + </style> +</head> +<body> + <div style="position:fixed; left:9.6px"> + <div style="font-family: DejaVu Sans, Tahoma, sans-serif"> + oxoxoxoxoxoxox + </div> + <div style="font-family: DejaVu Sans, sans-serif"> + rnrnrnrnrnrnrn + </div> + <div style="font-family: Tahoma, sans-serif"> + zezezezezezeze + </div> + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-x-1b.html b/layout/reftests/text/subpixel-glyphs-x-1b.html new file mode 100644 index 000000000..504a51ccb --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-1b.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 13px; + } + div { + border: none; + padding: 0px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10.4px"> + <div style="font-family: DejaVu Sans, Tahoma, sans-serif"> + oxoxoxoxoxoxox + </div> + <div style="font-family: DejaVu Sans, sans-serif"> + rnrnrnrnrnrnrn + </div> + <div style="font-family: Tahoma, sans-serif"> + zezezezezezeze + </div> + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-x-2a.html b/layout/reftests/text/subpixel-glyphs-x-2a.html new file mode 100644 index 000000000..cfa0f7b89 --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-2a.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 13px; + } + div { + border: none; + padding: 0px; + } + </style> +</head> +<body> + <div style="position:fixed; left:9.6px"> + o + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-x-2b.html b/layout/reftests/text/subpixel-glyphs-x-2b.html new file mode 100644 index 000000000..e79312b11 --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-2b.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 13px; + } + div { + border: none; + padding: 0px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10.4px"> + o + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-x-3a.html b/layout/reftests/text/subpixel-glyphs-x-3a.html new file mode 100644 index 000000000..34f8368d2 --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-3a.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <title>Test for consistent kerning, bug 716402</title> + <style type="text/css"> + @font-face { + font-family: mplus; + src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf); + /* a copy of M+ with OpenType tables removed, + so only legacy 'kern' is present */ + } + body { + text-rendering: optimizeLegibility; + font-family: mplus; + font-size: 15px; + background: white; + color: black; + } + .right { + text-align: right; + } + </style> +</head> +<body> + <div> + AVAV + </div> + <div class="right"> + AVAV + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-x-3b.html b/layout/reftests/text/subpixel-glyphs-x-3b.html new file mode 100644 index 000000000..83b5aa34d --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-x-3b.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <title>Reference for consistent kerning, bug 716402</title> + <style type="text/css"> + @font-face { + font-family: mplus; + src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf); + /* a copy of M+ with OpenType tables removed, + so only legacy 'kern' is present */ + } + body { + text-rendering: optimizeLegibility; + font-family: mplus; + font-size: 15px; + background: white; + color: black; + } + .right { + text-align: right; + } + span { + color: white; + } + </style> +</head> +<body> + <div> + AVAV<span>AV</span> + </div> + <div class="right"> + <span>AV</span>AVAV + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-y-1a.html b/layout/reftests/text/subpixel-glyphs-y-1a.html new file mode 100644 index 000000000..3f55015f0 --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-y-1a.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 14.5px; + } + div, span { + border: none; + padding: 0px; + } + span { + /* Offset the baseline by an integer number of pixels */ + display: inline-block; + vertical-align: baseline; + height: 30px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10px; top:9.6px; font-family: sans-serif"> + ḝ<span></span> + </div> + <div style="position:fixed; left:100px; top:9.6px; font-family: serif"> + ḝ<span></span> + </div> +</body> diff --git a/layout/reftests/text/subpixel-glyphs-y-1b.html b/layout/reftests/text/subpixel-glyphs-y-1b.html new file mode 100644 index 000000000..696efb26b --- /dev/null +++ b/layout/reftests/text/subpixel-glyphs-y-1b.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 14.5px; + } + div, span { + border: none; + padding: 0px; + } + span { + /* Offset the baseline by an integer number of pixels */ + display: inline-block; + vertical-align: baseline; + height: 30px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10px; top:10.4px; font-family: sans-serif"> + ḝ<span></span> + </div> + <div style="position:fixed; left:100px; top:10.4px; font-family: serif"> + ḝ<span></span> + </div> +</body> diff --git a/layout/reftests/text/subpixel-lineheight-1a.html b/layout/reftests/text/subpixel-lineheight-1a.html new file mode 100644 index 000000000..4bd857beb --- /dev/null +++ b/layout/reftests/text/subpixel-lineheight-1a.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 14.5px; + } + div, span { + border: none; + padding: 0px; + } + span { + /* Offset the baseline by an integer number of pixels */ + display: inline-block; + vertical-align: baseline; + height: 30px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10px; top:9.6px; font-family: sans-serif"> + e<span></span><br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + </div> + <div style="position:fixed; left:100px; top:9.6px; font-family: serif"> + e<span></span><br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + </div> +</body> diff --git a/layout/reftests/text/subpixel-lineheight-1b.html b/layout/reftests/text/subpixel-lineheight-1b.html new file mode 100644 index 000000000..a9c67093f --- /dev/null +++ b/layout/reftests/text/subpixel-lineheight-1b.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="Content-Style-Type" content="text/css"> + <style type="text/css"> + body { + text-rendering: optimizeLegibility; + font-size: 14.5px; + } + div, span { + border: none; + padding: 0px; + } + span { + /* Offset the baseline by an integer number of pixels */ + display: inline-block; + vertical-align: baseline; + height: 30px; + } + </style> +</head> +<body> + <div style="position:fixed; left:10px; top:10.4px; font-family: sans-serif"> + e<span></span><br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + </div> + <div style="position:fixed; left:100px; top:10.4px; font-family: serif"> + e<span></span><br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + e<br> + </div> +</body> diff --git a/layout/reftests/text/swash-1-ref.html b/layout/reftests/text/swash-1-ref.html new file mode 100644 index 000000000..ee4c636ba --- /dev/null +++ b/layout/reftests/text/swash-1-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE html> +<html> +<head></head> +<body style="font-family: 'Hoefler Text'; font-size: 200%;"> +<p><span style="font-style: italic;">Free<span style="color: transparent;">$</span></span></p> +</body> +</html> diff --git a/layout/reftests/text/swash-1.html b/layout/reftests/text/swash-1.html new file mode 100644 index 000000000..531884039 --- /dev/null +++ b/layout/reftests/text/swash-1.html @@ -0,0 +1,7 @@ +<!DOCTYPE html> +<html> +<head></head> +<body style="font-family: 'Hoefler Text'; font-size: 200%;"> +<p><span style="font-style: italic;">Free<span style="font-size: 0;">$</span></span></p> +</body> +</html> diff --git a/layout/reftests/text/synthetic-bold-metrics-01-notref.html b/layout/reftests/text/synthetic-bold-metrics-01-notref.html new file mode 100644 index 000000000..62eeebde6 --- /dev/null +++ b/layout/reftests/text/synthetic-bold-metrics-01-notref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: dejavu; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); +} + +p { + font-family: dejavu; /* family with only a single weight */ +} + +.test { + color: white; /* hide the text, we're only comparing metrics */ +} +</style> +</head> +<body> +<p>AbcdefghijklmnopqrstuvwxyZ</p> +<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p> +</body> +</html> diff --git a/layout/reftests/text/synthetic-bold-metrics-01.html b/layout/reftests/text/synthetic-bold-metrics-01.html new file mode 100644 index 000000000..aee05f6a9 --- /dev/null +++ b/layout/reftests/text/synthetic-bold-metrics-01.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> +<head> +<style type="text/css"> +@font-face { + font-family: dejavu; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); +} + +p { + font-family: dejavu; /* family with only a single weight */ +} + +.test { + color: white; /* hide the text, we're only comparing metrics */ + font-weight: bold; /* synthetic bold will be used */ +} +</style> +</head> +<body> +<p>AbcdefghijklmnopqrstuvwxyZ</p> +<!-- the "test" span here uses synthetic bold, which should cause the following + 'Z' to appear further to the right --> +<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p> +</body> +</html> diff --git a/layout/reftests/text/synthetic-bold-papyrus-01-ref.html b/layout/reftests/text/synthetic-bold-papyrus-01-ref.html new file mode 100644 index 000000000..38c7dbc38 --- /dev/null +++ b/layout/reftests/text/synthetic-bold-papyrus-01-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML> +<html> +<head> +<title>Test</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + +<style type="text/css"> + body { + margin: 50px; + font-size: 24px; + } + + #test1 { font-family: Papyrus, serif; } + +</style> + +</head> + +<body> + <p id="test1">Test for Papyrus font <b>within a bold tag</b>.</p> +</body> + +</html> diff --git a/layout/reftests/text/synthetic-bold-papyrus-01.html b/layout/reftests/text/synthetic-bold-papyrus-01.html new file mode 100644 index 000000000..1784fc707 --- /dev/null +++ b/layout/reftests/text/synthetic-bold-papyrus-01.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html> +<head> +<title>Test</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + +<style type="text/css"> + body { + margin: 50px; + font-size: 24px; + } + + @font-face { + font-family: test; + src: local(Papyrus); + } + + #test2 { font-family: test, serif; } + +</style> + +</head> + +<body> + <p id="test2">Test for Papyrus font <b>within a bold tag</b>.</p> +</body> + +</html> diff --git a/layout/reftests/text/text-align-center-last-center.html b/layout/reftests/text/text-align-center-last-center.html new file mode 100644 index 000000000..08dee39cc --- /dev/null +++ b/layout/reftests/text/text-align-center-last-center.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + text-align-last: center; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-center-last-default.html b/layout/reftests/text/text-align-center-last-default.html new file mode 100644 index 000000000..22191aae7 --- /dev/null +++ b/layout/reftests/text/text-align-center-last-default.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-center-last-end.html b/layout/reftests/text/text-align-center-last-end.html new file mode 100644 index 000000000..8878120a9 --- /dev/null +++ b/layout/reftests/text/text-align-center-last-end.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + text-align-last: end; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-center-last-justify.html b/layout/reftests/text/text-align-center-last-justify.html new file mode 100644 index 000000000..563438d20 --- /dev/null +++ b/layout/reftests/text/text-align-center-last-justify.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + text-align-last: justify; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-center-last-start.html b/layout/reftests/text/text-align-center-last-start.html new file mode 100644 index 000000000..c08045f02 --- /dev/null +++ b/layout/reftests/text/text-align-center-last-start.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + text-align-last: start; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-default-last-default.html b/layout/reftests/text/text-align-default-last-default.html new file mode 100644 index 000000000..6c3411684 --- /dev/null +++ b/layout/reftests/text/text-align-default-last-default.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-end-last-center.html b/layout/reftests/text/text-align-end-last-center.html new file mode 100644 index 000000000..4f14d3cea --- /dev/null +++ b/layout/reftests/text/text-align-end-last-center.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + text-align-last: center; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-end-last-default.html b/layout/reftests/text/text-align-end-last-default.html new file mode 100644 index 000000000..2a4aced3a --- /dev/null +++ b/layout/reftests/text/text-align-end-last-default.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-end-last-end.html b/layout/reftests/text/text-align-end-last-end.html new file mode 100644 index 000000000..859e47208 --- /dev/null +++ b/layout/reftests/text/text-align-end-last-end.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + text-align-last: end; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-end-last-justify.html b/layout/reftests/text/text-align-end-last-justify.html new file mode 100644 index 000000000..a53102315 --- /dev/null +++ b/layout/reftests/text/text-align-end-last-justify.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + text-align-last: justify; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-end-last-start.html b/layout/reftests/text/text-align-end-last-start.html new file mode 100644 index 000000000..631029759 --- /dev/null +++ b/layout/reftests/text/text-align-end-last-start.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + text-align-last: start; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-justify-last-center.html b/layout/reftests/text/text-align-justify-last-center.html new file mode 100644 index 000000000..d10e4d1e0 --- /dev/null +++ b/layout/reftests/text/text-align-justify-last-center.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: justify; + text-align-last: center; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-justify-last-default.html b/layout/reftests/text/text-align-justify-last-default.html new file mode 100644 index 000000000..cfa8494ad --- /dev/null +++ b/layout/reftests/text/text-align-justify-last-default.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: justify; + margin-right: 310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-justify-last-end.html b/layout/reftests/text/text-align-justify-last-end.html new file mode 100644 index 000000000..be37f8f65 --- /dev/null +++ b/layout/reftests/text/text-align-justify-last-end.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: justify; + text-align-last: end; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-justify-last-justify.html b/layout/reftests/text/text-align-justify-last-justify.html new file mode 100644 index 000000000..3d63ca021 --- /dev/null +++ b/layout/reftests/text/text-align-justify-last-justify.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: justify; + text-align-last: justify; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-justify-last-start.html b/layout/reftests/text/text-align-justify-last-start.html new file mode 100644 index 000000000..78764c731 --- /dev/null +++ b/layout/reftests/text/text-align-justify-last-start.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: justify; + text-align-last: start; + margin-right: 310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-center-ref.html b/layout/reftests/text/text-align-last-center-ref.html new file mode 100644 index 000000000..673cb6c37 --- /dev/null +++ b/layout/reftests/text/text-align-last-center-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: center; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-center.html b/layout/reftests/text/text-align-last-center.html new file mode 100644 index 000000000..e1f21c2f5 --- /dev/null +++ b/layout/reftests/text/text-align-last-center.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align-last: center; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-end-ref.html b/layout/reftests/text/text-align-last-end-ref.html new file mode 100644 index 000000000..f1078f29e --- /dev/null +++ b/layout/reftests/text/text-align-last-end-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-end.html b/layout/reftests/text/text-align-last-end.html new file mode 100644 index 000000000..4599e52d0 --- /dev/null +++ b/layout/reftests/text/text-align-last-end.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align-last: end; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-justify-ref.html b/layout/reftests/text/text-align-last-justify-ref.html new file mode 100644 index 000000000..869ad6173 --- /dev/null +++ b/layout/reftests/text/text-align-last-justify-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + span.left { + position: relative; + float: left; + } + span.right { + position: relative; + float: right; + } + </style> + </head> + <body> + <p><span class="left">Lorem</span><span class="right">ipsum</span></p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-justify-rtl-ref.html b/layout/reftests/text/text-align-last-justify-rtl-ref.html new file mode 100644 index 000000000..8a294cdad --- /dev/null +++ b/layout/reftests/text/text-align-last-justify-rtl-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + span.left { + float: left; + } + span.right { + float: right; + } + </style> + </head> + <body> + <p><span class="right">אמר</span><span class="left">המחבר</span></p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-justify-rtl.html b/layout/reftests/text/text-align-last-justify-rtl.html new file mode 100644 index 000000000..57e518da8 --- /dev/null +++ b/layout/reftests/text/text-align-last-justify-rtl.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align-last: justify; + } + </style> + </head> + <body> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-justify.html b/layout/reftests/text/text-align-last-justify.html new file mode 100644 index 000000000..46a308097 --- /dev/null +++ b/layout/reftests/text/text-align-last-justify.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align-last: justify; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-start-ref.html b/layout/reftests/text/text-align-last-start-ref.html new file mode 100644 index 000000000..3a1549c6f --- /dev/null +++ b/layout/reftests/text/text-align-last-start-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + -moz-text-align: start; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-last-start.html b/layout/reftests/text/text-align-last-start.html new file mode 100644 index 000000000..97cf7db2f --- /dev/null +++ b/layout/reftests/text/text-align-last-start.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: end; + text-align-last: start; + } + </style> + </head> + <body> + <p>Lorem ipsum</p> + <p dir="rtl">אמר המחבר</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-left-in-rtl-block-iframe.html b/layout/reftests/text/text-align-left-in-rtl-block-iframe.html new file mode 100644 index 000000000..bee8ceee6 --- /dev/null +++ b/layout/reftests/text/text-align-left-in-rtl-block-iframe.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML> +<html><head> + <meta charset="utf-8"> + <title>Testcase for bug 806284</title> + <style type="text/css"> + html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; + } + body { text-align:left; } +</style> +</head> +<body> +<div dir="rtl"> +111111111111112222222222222233333333333334444444444 +</div> +</body> +</html> diff --git a/layout/reftests/text/text-align-left-in-rtl-block-ref.html b/layout/reftests/text/text-align-left-in-rtl-block-ref.html new file mode 100644 index 000000000..3becab2d3 --- /dev/null +++ b/layout/reftests/text/text-align-left-in-rtl-block-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"><head> + <meta charset="utf-8"> + <title>Testcase for bug 806284</title> + <style type="text/css"> + html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; + } + + #t { width:20em; border: 1px solid black; } + </style> +</head> +<body> +<iframe id="t" src="text-align-left-in-rtl-block-iframe.html"></iframe> +<script type="text/javascript"> +function test() +{ + document.documentElement.removeAttribute("class"); +} +document.addEventListener("MozReftestInvalidate", test, false); +</script> +</body> +</html> diff --git a/layout/reftests/text/text-align-left-in-rtl-block.html b/layout/reftests/text/text-align-left-in-rtl-block.html new file mode 100644 index 000000000..e7c8ede16 --- /dev/null +++ b/layout/reftests/text/text-align-left-in-rtl-block.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"><head> + <meta charset="utf-8"> + <title>Testcase for bug 806284</title> + <style type="text/css"> + html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; + } + + #t { width:10em; border: 1px solid black; } + </style> +</head> +<body> +<iframe id="t" src="text-align-left-in-rtl-block-iframe.html"></iframe> +<script type="text/javascript"> +function test() +{ + var t = document.getElementById('t'); + t.style.width = '20em'; + document.documentElement.removeAttribute("class"); +} +document.addEventListener("MozReftestInvalidate", test, false); +</script> +</body> +</html> diff --git a/layout/reftests/text/text-align-start-last-center.html b/layout/reftests/text/text-align-start-last-center.html new file mode 100644 index 000000000..5d3bf5918 --- /dev/null +++ b/layout/reftests/text/text-align-start-last-center.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + text-align-last: center; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-start-last-default.html b/layout/reftests/text/text-align-start-last-default.html new file mode 100644 index 000000000..6c3411684 --- /dev/null +++ b/layout/reftests/text/text-align-start-last-default.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-start-last-end.html b/layout/reftests/text/text-align-start-last-end.html new file mode 100644 index 000000000..87bfc92be --- /dev/null +++ b/layout/reftests/text/text-align-start-last-end.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + text-align-last: end; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-start-last-justify.html b/layout/reftests/text/text-align-start-last-justify.html new file mode 100644 index 000000000..e2adb5cf1 --- /dev/null +++ b/layout/reftests/text/text-align-start-last-justify.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + text-align-last: justify; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-start-last-start.html b/layout/reftests/text/text-align-start-last-start.html new file mode 100644 index 000000000..b0fbd77d0 --- /dev/null +++ b/layout/reftests/text/text-align-start-last-start.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-last</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + text-align: start; + text-align-last: start; + margin-right:310px; + } + </style> + </head> + <body> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis odio est, cursus non adipiscing at, fringilla quis eros. Sed volutpat nibh sit amet ante molestie a vehicula nulla gravida. Mauris elementum cursus urna id vestibulum. Etiam volutpat odio tincidunt libero ullamcorper elementum. Suspendisse potenti. Ut ut arcu lorem. Integer mi sapien, porta a pharetra et, varius laoreet eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ut mi at elit consequat aliquam id eu lectus. Etiam tincidunt diam et ante ullamcorper a convallis erat lobortis. Sed blandit ultrices dui et bibendum. Sed condimentum velit eget nibh rutrum cursus. Quisque pretium iaculis gravida. Proin risus eros, iaculis quis fermentum a, adipiscing id mauris.</p> + <p dir="rtl">אמר המחבר: החיבור הזה לא חברתיו ללמד לבני האדם את אשר לא ידעו, אלא להזכירם את הידוע להם כבר ומפורסם אצלם פירסום גדול. כי לא תמצא ברוב דברי, אלא דברים שרוב בני האדם יודעים אותם ולא מסתפקים בהם כלל, אלא שכפי רוב פרסומם וכנגד מה שאמתתם גלויה לכל, כך ההעלם מהם מצוי מאד והשכחה רבה. על כן אין התועלת הנלקט מזה הספר יוצא מן הקריאה בו פעם אחת, כי כבר אפשר שלא ימצא הקורא בשכלו חדושים אחר קריאתו שלא היו בו לפני קריאתו, אלא מעט. אבל התועלת יוצא מן החזרה עליו וההתמדה. כי יזכרו לו הדברים האלה הנשכחים מבני האדם בטבע, וישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> + </body> +</html> diff --git a/layout/reftests/text/text-align-unsafe-ref.html b/layout/reftests/text/text-align-unsafe-ref.html new file mode 100644 index 000000000..3a963ee29 --- /dev/null +++ b/layout/reftests/text/text-align-unsafe-ref.html @@ -0,0 +1,62 @@ +<!DOCTYPE html> +<html> + <head> + <title>text-align-unsafe</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + overflow:hidden; + width:8em; + white-space:nowrap; + margin:0; + } +.test1 p { + text-align: end; +} +.test2 p { + text-align: right; +} +.test3 p { + text-align: end; +} +.test4 p { + text-align: left; +} +.test5 p { + text-align: right; +} +.r { + float:right; +} +.l { + float:left; +} + </style> + </head> + <body> +<div class=test1> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test2> + <p><span class="r">Lorem ipsum dolor sit amet.</span></p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test3> + <p><span class="r">Lorem ipsum dolor sit amet.</span></p> + <p dir="rtl"><span class="l">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</span></p> +</div> + +<div class=test4> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl"><span class="l">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</span></p> +</div> + +<div class=test5> + <p><span class="r">Lorem ipsum dolor sit amet.</span></p> +</div> + + left|unsafe right</body> +</html> diff --git a/layout/reftests/text/text-align-unsafe.html b/layout/reftests/text/text-align-unsafe.html new file mode 100644 index 000000000..ca461b12b --- /dev/null +++ b/layout/reftests/text/text-align-unsafe.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>text-align-unsafe</title> + <meta charset="utf-8"> + <style type="text/css"> + p { + overflow:hidden; + width:8em; + white-space:nowrap; + margin:0; + } +.test1 p { + text-align: unsafe right; + text-align-last: end; +} +.test2 p { + text-align: unsafe right; +} +.test3 p { + text-align: end unsafe; +} +.test4 p { + text-align: unsafe left; +} +.test5 p { + text-align: left; + text-align-last: unsafe right; +} + </style> + </head> + <body> +<div class=test1> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test2> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test3> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test4> + <p>Lorem ipsum dolor sit amet.</p> + <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> +</div> + +<div class=test5> + <p>Lorem ipsum dolor sit amet.</p> +</div> + +<script> + var elem = document.querySelector('.test5 p'); + var a = window.getComputedStyle(elem,null).getPropertyValue("text-align"); + document.body.appendChild(document.createTextNode(a +"|")); + a = window.getComputedStyle(elem,null).getPropertyValue("text-align-last"); + document.body.appendChild(document.createTextNode(a)); + + document.documentElement.removeAttribute('class'); +</script> + +</body> +</html> diff --git a/layout/reftests/text/variation-selector-unsupported-1-ref.html b/layout/reftests/text/variation-selector-unsupported-1-ref.html new file mode 100644 index 000000000..08832bef3 --- /dev/null +++ b/layout/reftests/text/variation-selector-unsupported-1-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.otf); + } + + body { font-family: MarkA; } + </style> +</head> +<body> +A +</body> +</html> diff --git a/layout/reftests/text/variation-selector-unsupported-1.html b/layout/reftests/text/variation-selector-unsupported-1.html new file mode 100644 index 000000000..98b028b4d --- /dev/null +++ b/layout/reftests/text/variation-selector-unsupported-1.html @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + @font-face { + font-family: "MarkA"; + src: url(../fonts/markA.otf); + } + + body { font-family: MarkA; } + </style> +</head> +<body> +A︀ +</body> +</html> diff --git a/layout/reftests/text/white-space-1-ref.html b/layout/reftests/text/white-space-1-ref.html new file mode 100644 index 000000000..88351db06 --- /dev/null +++ b/layout/reftests/text/white-space-1-ref.html @@ -0,0 +1,64 @@ +<!DOCTYPE HTML> +<html> +<head> +<!-- Reference --> +<style> +div { border:1px solid black; } +.container { float:left; width:20%; border-color:cyan; } +p { width:0; } +b { font-weight:normal; background-color:yellow; white-space:pre; } +</style> +</head> +<body> + +<div> +<p><b>Hello +Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello +Kitty</b> +</div> + +<div class="container"> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +</div> + +<div class="container"> +<p><b>Hello + Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello + Kitty</b> +</div> + +<div class="container"> +<p><b>Hello +Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello Kitty</b> +<p><b>Hello +Kitty</b> +</div> + +<div class="container"> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +<p><b>Hello +Kitty</b> +</div> + +</body> +</html> diff --git a/layout/reftests/text/white-space-1a.html b/layout/reftests/text/white-space-1a.html new file mode 100644 index 000000000..4ae203459 --- /dev/null +++ b/layout/reftests/text/white-space-1a.html @@ -0,0 +1,53 @@ +<!DOCTYPE HTML> +<html> +<head> +<!-- Testing all combinations of pre/nowrap/pre-wrap/normal space pairs --> +<style> +.nowrap { white-space:nowrap; } +.pre { white-space:pre; } +.prewrap { white-space:pre-wrap; } +div { border:1px solid black; } +.container { float:left; width:20%; border-color:cyan; } +p { width:0; } +b { font-weight:normal; background-color:yellow; } +</style> +</head> +<body> + +<div> +<p><b>Hello Kitty</b> +<p><b>Hello<span class="pre"> </span>Kitty</b> +<p><b>Hello<span class="nowrap"> </span>Kitty</b> +<p><b>Hello<span class="prewrap"> </span>Kitty</b> +</div> + +<div class="container"> +<p><b>Hello Kitty</b> +<p><b>Hello<span class="pre"> </span> Kitty</b> +<p><b>Hello<span class="nowrap"> </span> Kitty</b> +<p><b>Hello<span class="prewrap"> </span> Kitty</b> +</div> + +<div class="container"> +<p><b>Hello <span class="pre"> </span>Kitty</b> +<p><b>Hello<span class="pre"> </span><span class="pre"> </span>Kitty</b> +<p><b>Hello<span class="nowrap"> </span><span class="pre"> </span>Kitty</b> +<p><b>Hello<span class="prewrap"> </span><span class="pre"> </span>Kitty</b> +</div> + +<div class="container"> +<p><b>Hello <span class="nowrap"> </span>Kitty</b> +<p><b>Hello<span class="pre"> </span><span class="nowrap"> </span>Kitty</b> +<p><b>Hello<span class="nowrap"> </span><span class="nowrap"> </span>Kitty</b> +<p><b>Hello<span class="prewrap"> </span><span class="nowrap"> </span>Kitty</b> +</div> + +<div class="container"> +<p><b>Hello <span class="prewrap"> </span>Kitty</b> +<p><b>Hello<span class="pre"> </span><span class="prewrap"> </span>Kitty</b> +<p><b>Hello<span class="nowrap"> </span><span class="prewrap"> </span>Kitty</b> +<p><b>Hello<span class="prewrap"> </span>Kitty</b> +</div> + +</body> +</html> diff --git a/layout/reftests/text/white-space-1b.html b/layout/reftests/text/white-space-1b.html new file mode 100644 index 000000000..715d0b2e8 --- /dev/null +++ b/layout/reftests/text/white-space-1b.html @@ -0,0 +1,53 @@ +<!DOCTYPE HTML> +<html> +<head> +<!-- Adding extra span boundaries --> +<style> +.nowrap { white-space:nowrap; } +.pre { white-space:pre; } +.prewrap { white-space:pre-wrap; } +div { border:1px solid black; } +.container { float:left; width:20%; border-color:cyan; } +p { width:0; } +b { font-weight:normal; background-color:yellow; } +</style> +</head> +<body> + +<div> +<p><b><span>Hello<span> <span>Kitty</span></b> +<p><b><span>Hello<span><span class="pre"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="nowrap"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="prewrap"> </span><span>Kitty</span></b> +</div> + +<div class="container"> +<p><b><span>Hello<span> <span>Kitty</span></b> +<p><b><span>Hello<span><span class="pre"> </span> <span>Kitty</span></b> +<p><b><span>Hello<span><span class="nowrap"> </span> <span>Kitty</span></b> +<p><b><span>Hello<span><span class="prewrap"> </span> <span>Kitty</span></b> +</div> + +<div class="container"> +<p><b><span>Hello<span> <span class="pre"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="pre"> </span><span class="pre"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="nowrap"> </span><span class="pre"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="prewrap"> </span><span class="pre"> </span><span>Kitty</span></b> +</div> + +<div class="container"> +<p><b><span>Hello<span> <span class="nowrap"> </span>Kitty</b> +<p><b><span>Hello<span><span class="pre"> </span><span class="nowrap"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="nowrap"> </span><span class="nowrap"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="prewrap"> </span><span class="nowrap"> </span><span>Kitty</span></b> +</div> + +<div class="container"> +<p><b><span>Hello<span> <span class="prewrap"> </span>Kitty</b> +<p><b><span>Hello<span><span class="pre"> </span><span class="prewrap"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="nowrap"> </span><span class="prewrap"> </span><span>Kitty</span></b> +<p><b><span>Hello<span><span class="prewrap"> </span><span class="prewrap"> </span><span>Kitty</span></b> +</div> + +</body> +</html> diff --git a/layout/reftests/text/white-space-2-ref.html b/layout/reftests/text/white-space-2-ref.html new file mode 100644 index 000000000..581daa9d4 --- /dev/null +++ b/layout/reftests/text/white-space-2-ref.html @@ -0,0 +1,65 @@ +<!DOCTYPE HTML> +<html> +<head> +<!-- Reference --> +<style> +div { border:1px solid black; } +.container { float:left; width:20%; border-color:cyan; } +p { width:0; } +b { font-weight:normal; background-color:yellow; white-space:pre; } +.cell { display:table-cell; border:1px solid green; } +</style> +</head> +<body> + +<div> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello + Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello + Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +<p><span class="cell"><b>Hello +Kitty</b></span> +</div> + +</body> +</html> diff --git a/layout/reftests/text/white-space-2.html b/layout/reftests/text/white-space-2.html new file mode 100644 index 000000000..db745e068 --- /dev/null +++ b/layout/reftests/text/white-space-2.html @@ -0,0 +1,54 @@ +<!DOCTYPE HTML> +<html> +<head> +<!-- Wrapping tests in table-cell to test min-width computation --> +<style> +div { border:1px solid black; } +.container { float:left; width:20%; border-color:cyan; } +p { width:0; } +b { font-weight:normal; background-color:yellow; } +.cell { display:table-cell; border:1px solid green; } +.nowrap { white-space:nowrap; } +.pre { white-space:pre; } +.prewrap { white-space:pre-wrap; } +</style> +</head> +<body> + +<div> +<p><span class="cell"><b>Hello Kitty</b></span> +<p><span class="cell"><b>Hello<span class="pre"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="nowrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="prewrap"> </span>Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello <span>Kitty</span></b></span> +<p><span class="cell"><b>Hello<span class="pre"> </span> Kitty</b></span> +<p><span class="cell"><b>Hello<span class="nowrap"> </span> Kitty</b></span> +<p><span class="cell"><b>Hello<span class="prewrap"> </span> Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello <span class="pre"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="pre"> </span><span class="pre"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="nowrap"> </span><span class="pre"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="prewrap"> </span><span class="pre"> </span>Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello <span class="nowrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="pre"> </span><span class="nowrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="nowrap"> </span><span class="nowrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="prewrap"> </span><span class="nowrap"> </span>Kitty</b></span> +</div> + +<div class="container"> +<p><span class="cell"><b>Hello <span class="prewrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="pre"> </span><span class="prewrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="nowrap"> </span><span class="prewrap"> </span>Kitty</b></span> +<p><span class="cell"><b>Hello<span class="prewrap"> </span><span class="prewrap"> </span>Kitty</b></span> +</div> + +</body> +</html> diff --git a/layout/reftests/text/word-spacing-01-ref.html b/layout/reftests/text/word-spacing-01-ref.html new file mode 100644 index 000000000..f18414769 --- /dev/null +++ b/layout/reftests/text/word-spacing-01-ref.html @@ -0,0 +1,50 @@ +<!DOCTYPE HTML> +<html> +<head> +<style> +span { display:inline-block; width:10em; } +</style> +</head> +<body style="width: 433px; height: 590px;"> + +<table border="1"> +<tr><td>space <span></span>.</td> +<tr><td>nonbreaking-space <span></span>.</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +<span></span>.</td> +<tr><td>tab	<span></span>.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:pre"> +<tr><td>space <span></span>.</td> +<tr><td>nonbreaking-space <span></span>.</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:nowrap"> +<tr><td>space <span></span>.</td> +<tr><td>nonbreaking-space <span></span>.</td> +<tr><td>ideographic-space .</td> +<tr><td>newline <span></span>.</td> +<tr><td>tab	<span></span>.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:pre-wrap"> +<tr><td>space <span></span>.</td> +<tr><td>nonbreaking-space <span></span>.</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +</body> +</html> diff --git a/layout/reftests/text/word-spacing-01.html b/layout/reftests/text/word-spacing-01.html new file mode 100644 index 000000000..4860f9c3b --- /dev/null +++ b/layout/reftests/text/word-spacing-01.html @@ -0,0 +1,46 @@ +<!DOCTYPE HTML> +<html> +<body style="word-spacing:10em; width: 433px; height: 590px;"> + +<table border="1"> +<tr><td>space .</td> +<tr><td>nonbreaking-space .</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:pre"> +<tr><td>space .</td> +<tr><td>nonbreaking-space .</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:nowrap"> +<tr><td>space .</td> +<tr><td>nonbreaking-space .</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +<table border="1" style="white-space:pre-wrap"> +<tr><td>space .</td> +<tr><td>nonbreaking-space .</td> +<tr><td>ideographic-space .</td> +<tr><td>newline +.</td> +<tr><td>tab	.</td> +<tr><td>form-feed.</td> +</table> + +</body> +</html> diff --git a/layout/reftests/text/wordbreak-1-ref.html b/layout/reftests/text/wordbreak-1-ref.html new file mode 100644 index 000000000..4311f225c --- /dev/null +++ b/layout/reftests/text/wordbreak-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Test - word-break: break-all</title> + </head> + <body> + <div>f<br/>o<br/>x<br/>f<br/>-<br/>o<br/></div><br/> + <div>fox<br/>f-o</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-1.html b/layout/reftests/text/wordbreak-1.html new file mode 100644 index 000000000..6994b70f7 --- /dev/null +++ b/layout/reftests/text/wordbreak-1.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all</title> + </head> + <body> + <div class="breakall">fox f-o</div><br /> + <div class="keepall">fox f-o</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-2-ref.html b/layout/reftests/text/wordbreak-2-ref.html new file mode 100644 index 000000000..4f6c05177 --- /dev/null +++ b/layout/reftests/text/wordbreak-2-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all</title> + </head> + <body> + <div>フ<br/>ォ<br/>ッ<br/>ク<br/>ス</div><br/> + <div>フォックス</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-2.html b/layout/reftests/text/wordbreak-2.html new file mode 100644 index 000000000..bcfeb9a44 --- /dev/null +++ b/layout/reftests/text/wordbreak-2.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all</title> + </head> + <body> + <div class="breakall">フォックス</div><br /> + <div class="keepall">フォックス</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-3-ref.html b/layout/reftests/text/wordbreak-3-ref.html new file mode 100644 index 000000000..8bc5e4bf5 --- /dev/null +++ b/layout/reftests/text/wordbreak-3-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all with clusters</title> + </head> + <body> + <div>वि<br/>कि<br/>पी<br/>डि<br/>या</div><br/> + <div>विकिपीडिया</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-3.html b/layout/reftests/text/wordbreak-3.html new file mode 100644 index 000000000..9b5cad701 --- /dev/null +++ b/layout/reftests/text/wordbreak-3.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with clusters</title> + </head> + <body> + <div class="breakall">विकिपीडिया</div><br /> + <div class="keepall">विकिपीडिया</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-4a-ref.html b/layout/reftests/text/wordbreak-4a-ref.html new file mode 100644 index 000000000..a67fd0ca1 --- /dev/null +++ b/layout/reftests/text/wordbreak-4a-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all with Hangul Jamos</title> + </head> + <body> + <div>애<br/>기<br/>판<br/>다</div><br/> + <div>애기판다</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-4a.html b/layout/reftests/text/wordbreak-4a.html new file mode 100644 index 000000000..e0f9a21eb --- /dev/null +++ b/layout/reftests/text/wordbreak-4a.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with Hangul Jamos</title> + </head> + <body> + <div class="breakall">애기판다</div><br /> + <div class="keepall">애기판다</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-4b-ref.html b/layout/reftests/text/wordbreak-4b-ref.html new file mode 100644 index 000000000..946c407b9 --- /dev/null +++ b/layout/reftests/text/wordbreak-4b-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all with Hangul syllables</title> + </head> + <body> + <div>애<br/>기<br/>판<br/>다</div><br/> + <div>애기판다</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-4b.html b/layout/reftests/text/wordbreak-4b.html new file mode 100644 index 000000000..296f96dd9 --- /dev/null +++ b/layout/reftests/text/wordbreak-4b.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with Hangul syllables</title> + </head> + <body> + <div class="breakall">애기판다</div><br /> + <div class="keepall">애기판다</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-5-ref.html b/layout/reftests/text/wordbreak-5-ref.html new file mode 100644 index 000000000..5466d255d --- /dev/null +++ b/layout/reftests/text/wordbreak-5-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all with supplementary characters</title> + </head> + <body> + <div>𐤑<br/>𐤃<br/>𐤉<br/>𐤒<br/>𐤁<br/>𐤀<br/>𐤌<br/>𐤍<br/>𐤕<br/>𐤅<br/>𐤉<br/>𐤇<br/>𐤉<br/>𐤄</div><br/> + <div>𐤑𐤃𐤉𐤒<br/>𐤁𐤀𐤌𐤍𐤕𐤅<br/>𐤉𐤇𐤉𐤄</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-5.html b/layout/reftests/text/wordbreak-5.html new file mode 100644 index 000000000..9f20ed3e9 --- /dev/null +++ b/layout/reftests/text/wordbreak-5.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with supplementary characters</title> + </head> + <body> + <div class="breakall">𐤑𐤃𐤉𐤒 𐤁𐤀𐤌𐤍𐤕𐤅 𐤉𐤇𐤉𐤄</div><br /> + <div class="keepall">𐤑𐤃𐤉𐤒 𐤁𐤀𐤌𐤍𐤕𐤅 𐤉𐤇𐤉𐤄</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-6-ref.html b/layout/reftests/text/wordbreak-6-ref.html new file mode 100644 index 000000000..3422ec686 --- /dev/null +++ b/layout/reftests/text/wordbreak-6-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + </style> + <title>Test - word-break: break-all with supplementary characters</title> + </head> + <body> + <div>𐨤<br/>𐨪𐨌<br/>𐨪𐨿<br/>𐨗𐨸𐨅𐨌𐨏</div><br/> + <div>𐨤𐨪𐨌𐨪𐨿𐨗𐨸𐨅𐨌𐨏</div><br/> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-6.html b/layout/reftests/text/wordbreak-6.html new file mode 100644 index 000000000..26ea950d8 --- /dev/null +++ b/layout/reftests/text/wordbreak-6.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with kharoshthi characters</title> + </head> + <body> + <div class="breakall">𐨤𐨪𐨌𐨪𐨿𐨗𐨸𐨅𐨌𐨏</div><br /> + <div class="keepall">𐨤𐨪𐨌𐨪𐨿𐨗𐨸𐨅𐨌𐨏</div><br /> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-7-ref.html b/layout/reftests/text/wordbreak-7-ref.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/layout/reftests/text/wordbreak-7-ref.html diff --git a/layout/reftests/text/wordbreak-7.html b/layout/reftests/text/wordbreak-7.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/layout/reftests/text/wordbreak-7.html diff --git a/layout/reftests/text/wordbreak-7a-ref.html b/layout/reftests/text/wordbreak-7a-ref.html new file mode 100644 index 000000000..4f1d1d882 --- /dev/null +++ b/layout/reftests/text/wordbreak-7a-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: test; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); + } + body { + font-family: test; + line-height: 1.5em; + } + </style> + <title>Test - word-break: break-all with rtl and diacritics, no ligatures</title> + </head> + <body> + <div> + ا<br>ﻟ<br>ﻌ<br>ﺮ<br>ﺑ<br>ﻲ<br> + ا<br>ﻟ<br>ﻀَّ<br>ﺎ<br>ﻟِّ<br>ﻴ<br>ﻦَ + </div> + <br> + <div> + العربي<br> + الضَّالِّينَ + </div> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-7a.html b/layout/reftests/text/wordbreak-7a.html new file mode 100644 index 000000000..7e22e1d6c --- /dev/null +++ b/layout/reftests/text/wordbreak-7a.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: test; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); + } + body { + font-family: test; + line-height: 1.5em; + } + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with rtl and diacritics, no ligatures</title> + </head> + <body> + <div class="breakall"> + العربي + الضَّالِّينَ + </div> + <br> + <div class="keepall"> + العربي + الضَّالِّينَ + </div> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-7b-ref.html b/layout/reftests/text/wordbreak-7b-ref.html new file mode 100644 index 000000000..8b734c8f5 --- /dev/null +++ b/layout/reftests/text/wordbreak-7b-ref.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: test; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); + } + body { + font-family: test; + line-height: 1.5em; + } + </style> + <title>Test - word-break: break-all with rtl and diacritics, including ligatures</title> + </head> + <body> + <div> + وَ<br>ﻟَ<br>ﺎ<br> + ا<br>ﻟ<br>ﺴَّ<br>ﻠَ<br>ﺎ<br>مُ<br> + ﻋَ<br>ﻠَ<br>ﻴْ<br>ﻜُ<br>ﻢْ + </div> + <br> + <div> + وَلَا<br> + السَّلَامُ<br> + عَلَيْكُمْ + </div> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-7b.html b/layout/reftests/text/wordbreak-7b.html new file mode 100644 index 000000000..ee25cc7ff --- /dev/null +++ b/layout/reftests/text/wordbreak-7b.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: test; + src: url(../fonts/dejavu-sans/DejaVuSans.ttf); + } + body { + font-family: test; + line-height: 1.5em; + } + div.breakall { width: 0px; word-break: break-all; } + div.keepall { width: 0px; word-break: keep-all; } + </style> + <title>Test - word-break: break-all with rtl and diacritics, including ligatures</title> + </head> + <body> + <div class="breakall"> + وَلَا + السَّلَامُ + عَلَيْكُمْ + </div> + <br> + <div class="keepall"> + وَلَا + السَّلَامُ + عَلَيْكُمْ + </div> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-8-ref.html b/layout/reftests/text/wordbreak-8-ref.html new file mode 100644 index 000000000..b51019e98 --- /dev/null +++ b/layout/reftests/text/wordbreak-8-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + .lc { text-transform: lowercase; } + .uc { text-transform: uppercase; } + </style> + <title>Test - word-break:break-all with text-transform and clusters</title> + </head> + <body> + <div class="lc">f<br>o<br>x<br>f<br>o̥<br>ẋ</div><br> + <div class="lc">fox<br>fo̥ẋ</div><br> + <div class="uc">f<br>o<br>x<br>f<br>o̥<br>ẋ</div><br> + <div class="uc">fox<br>fo̥ẋ</div><br> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-8.html b/layout/reftests/text/wordbreak-8.html new file mode 100644 index 000000000..9a85f6107 --- /dev/null +++ b/layout/reftests/text/wordbreak-8.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + .breakall { width: 0px; word-break: break-all; } + .keepall { width: 0px; word-break: keep-all; } + .lc { text-transform: lowercase; } + .uc { text-transform: uppercase; } + </style> + <title>Test - word-break:break-all with text-transform and clusters</title> + </head> + <body> + <div class="breakall lc">fox fo̥ẋ</div><br> + <div class="keepall lc">fox fo̥ẋ</div><br> + <div class="breakall uc">fox fo̥ẋ</div><br> + <div class="keepall uc">fox fo̥ẋ</div><br> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-9-ref.html b/layout/reftests/text/wordbreak-9-ref.html new file mode 100644 index 000000000..bd70c084d --- /dev/null +++ b/layout/reftests/text/wordbreak-9-ref.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: latin; + src: url("../fonts/sil/GenR102.ttf"); + } + @font-face { + font-family: arabic; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); + } + body { + font-family: latin, arabic, sans-serif; + font-size: 24px; + line-height: 2em; + } + </style> + <title>Test - word-break:break-all across font fallback</title> + </head> + <body> + <!-- the arabic diacritics here will fall back to font 'arabic', which + is a graphite-enabled arabic font, and be shaped separately; + nevertheless, they must remain clustered with the preceding letters, + no additional line-breaks are allowed before them (bug 833297) --> + <div>f<br>oٌ<br>oِ<br>b<br>aٔ<br>r</div> + </body> +</html> diff --git a/layout/reftests/text/wordbreak-9.html b/layout/reftests/text/wordbreak-9.html new file mode 100644 index 000000000..5186e9a6e --- /dev/null +++ b/layout/reftests/text/wordbreak-9.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + @font-face { + font-family: latin; + src: url("../fonts/sil/GenR102.ttf"); + } + @font-face { + font-family: arabic; + src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf"); + } + body { + font-family: latin, arabic, sans-serif; + font-size: 24px; + line-height: 2em; + } + div { + width: 0px; + word-break: break-all; + } + </style> + <title>Test - word-break:break-all across font fallback</title> + </head> + <body> + <!-- the arabic diacritics here will fall back to font 'arabic', which + is a graphite-enabled arabic font, and be shaped separately; + nevertheless, they must remain clustered with the preceding letters, + no additional line-breaks are allowed before them (bug 833297) --> + <div>foٌoِbaٔr</div> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-01-ref.html b/layout/reftests/text/wordwrap-01-ref.html new file mode 100644 index 000000000..8f88fae97 --- /dev/null +++ b/layout/reftests/text/wordwrap-01-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's +lipsmackinthirstquen +chinacetastinmotivat +ingoodbuzzincooltalk +inhighwalkinfastlivi +nevergivincoolfizzin +Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-01.html b/layout/reftests/text/wordwrap-01.html new file mode 100644 index 000000000..da2d6c56a --- /dev/null +++ b/layout/reftests/text/wordwrap-01.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-02-ref.html b/layout/reftests/text/wordwrap-02-ref.html new file mode 100644 index 000000000..760eb1efd --- /dev/null +++ b/layout/reftests/text/wordwrap-02-ref.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<!-- tests that Arabic characters shape across word breaks --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +@font-face { + font-family: dvm; + src: url(../fonts/DejaVuSansMono.woff); +} +textarea { + font-family: dvm; + line-height: 1.5em; + overflow: scroll; +} + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20" dir="rtl">ذهعقروبلجيكا،الموسوﻋ +ﺔكل,تمبوابةاقتصاديةﻫ +ﺬه.ضمنهاالروسوحرماﻧﺒ +ﻠﻌﺪد,يكنجسيمةلإعادةلم +.يكنوالحلفاءبالقناﺑﻠ +ﻬﻮ,بحثخسائرالدفاعباﻟ +ﻬﺠﻮمعن.فرنسيةمارشاﻟﺒ +ﻴﻨﻴﺘﻮدحرثم,وصلبشريةا +لرايخبالحربتم.</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-02.html b/layout/reftests/text/wordwrap-02.html new file mode 100644 index 000000000..8dcac75ec --- /dev/null +++ b/layout/reftests/text/wordwrap-02.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- tests that Arabic characters shape across word breaks --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +@font-face { + font-family: dvm; + src: url(../fonts/DejaVuSansMono.woff); +} +textarea { + font-family: dvm; + line-height: 1.5em; + overflow: scroll; +} + </style> + <title>Test Wordwrap</title> + </head> + <body> + <!-- spellcheck="false" added as a workaround to our maximum length of words for the spell checker --> + <textarea spellcheck="false" rows="10" cols="20" dir="rtl">ذهعقروبلجيكا،الموسوعةكل,تمبوابةاقتصاديةهذه.ضمنهاالروسوحرمانبلعدد,يكنجسيمةلإعادةلم.يكنوالحلفاءبالقنابلهو,بحثخسائرالدفاعبالهجومعن.فرنسيةمارشالبينيتودحرثم,وصلبشريةالرايخبالحربتم.</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-03-ref.html b/layout/reftests/text/wordwrap-03-ref.html new file mode 100644 index 000000000..66cc0089e --- /dev/null +++ b/layout/reftests/text/wordwrap-03-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<!-- tests that words don't break in mid-cluster --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +@font-face { font-family: dvm; src: url(../fonts/DejaVuSansMono.woff); } +textarea { font-family: dvm, monospace; font-size: 12px; overflow: scroll; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="27">It's +lipsmackinthirstquenchinacè +tastinmotivatingoodbuzzincó +oltalkinhighwalkinfastliviñ +evergivincoolfizzin +Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-03.html b/layout/reftests/text/wordwrap-03.html new file mode 100644 index 000000000..453e01384 --- /dev/null +++ b/layout/reftests/text/wordwrap-03.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<!-- tests that words don't break in mid-cluster --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +@font-face { font-family: dvm; src: url(../fonts/DejaVuSansMono.woff); } +textarea { font-family: dvm, monospace; font-size: 12px; overflow: scroll; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="27">It's lipsmackinthirstquenchinacètastinmotivatingoodbuzzincóoltalkinhighwalkinfastliviñevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-04-ref.html b/layout/reftests/text/wordwrap-04-ref.html new file mode 100644 index 000000000..4be06cef6 --- /dev/null +++ b/layout/reftests/text/wordwrap-04-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Wordwrap</title> + </head> + <body> + <p style="width: 100px; word-wrap: break-word;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-04.html b/layout/reftests/text/wordwrap-04.html new file mode 100644 index 000000000..b35fcbdf9 --- /dev/null +++ b/layout/reftests/text/wordwrap-04.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<!-- Test setting word-wrap: break-word dynamically --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Wordwrap</title> + <script type="text/javascript"> +function SwapStyle() +{ + par = document.getElementById("pp"); + par.style.wordWrap = "break-word"; +} + </script> + </head> + <body onload="SwapStyle()"> + <p id="pp" style="width: 100px; word-wrap: normal;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-05-ref.html b/layout/reftests/text/wordwrap-05-ref.html new file mode 100644 index 000000000..b0b397eb1 --- /dev/null +++ b/layout/reftests/text/wordwrap-05-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Wordwrap</title> + </head> + <body> + <p style="width: 100px;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-05.html b/layout/reftests/text/wordwrap-05.html new file mode 100644 index 000000000..56c03a7f2 --- /dev/null +++ b/layout/reftests/text/wordwrap-05.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<!-- Test unsetting word-wrap: break-word dynamically --> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Wordwrap</title> + <script type="text/javascript"> +function SwapStyle() +{ + par = document.getElementById("pp"); + par.style.wordWrap = "normal"; +} + </script> + </head> + <body onload="SwapStyle()"> + <p id="pp" style="width: 100px; word-wrap: break-word;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-06-ref.html b/layout/reftests/text/wordwrap-06-ref.html new file mode 100644 index 000000000..329480318 --- /dev/null +++ b/layout/reftests/text/wordwrap-06-ref.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>http://www.mozilla.org/projects/minefield/</title> + <style type="text/css"> +#viewsource { + font-family: -moz-fixed; + font-weight: normal; + font-size: 16px; + color: black; + white-space: pre; +} +pre { + font: inherit; + color: inherit; + white-space: inherit; + margin: 0; + width: 475px; +} +.attribute-name { + color: black; + font-weight: bold; +} +.attribute-value { + color: blue; + font-weight: normal; +} + </style> + </head> + <body id="viewsource"> + <pre id="line1"><span class="attribute-name">href</span>=<span class="attribute-value">"../../css/cavendish/content.css" </span> +<span class="attribute-name">title</span>=<span class="attribute-value">"Cavendish"</span></pre> + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/text/wordwrap-06.html b/layout/reftests/text/wordwrap-06.html new file mode 100644 index 000000000..a299a0a08 --- /dev/null +++ b/layout/reftests/text/wordwrap-06.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>http://www.mozilla.org/projects/minefield/</title> + <style type="text/css"> +#viewsource { + font-family: -moz-fixed; + font-weight: normal; + font-size: 16px; + color: black; + white-space: pre; +} +#viewsource.wrap { + white-space: pre-wrap; + word-wrap: break-word; +} +pre { + font: inherit; + color: inherit; + white-space: inherit; + margin: 0; + width: 475px; +} +.attribute-name { + color: black; + font-weight: bold; +} +.attribute-value { + color: blue; + font-weight: normal; +} + </style> + </head> + <body id="viewsource" class="wrap"> + <pre id="line1"><span class="attribute-name">href</span>=<span class="attribute-value">"../../css/cavendish/content.css" </span><span class="attribute-name">title</span>=<span class="attribute-value">"Cavendish"</span></pre> + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/text/wordwrap-07-ref.html b/layout/reftests/text/wordwrap-07-ref.html new file mode 100644 index 000000000..c6cae567b --- /dev/null +++ b/layout/reftests/text/wordwrap-07-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <title>Test Wordwrap</title> + </head> + <body> + <div><em>H<br>e<br>l<br>l<br>o</em><br>K<br>i<br>t<br>t<br>y</div> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-07.html b/layout/reftests/text/wordwrap-07.html new file mode 100644 index 000000000..b0259d68e --- /dev/null +++ b/layout/reftests/text/wordwrap-07.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +div { width: 0px; word-wrap: break-word; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <div><em>Hello</em>Kitty</div> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-08-ref.html b/layout/reftests/text/wordwrap-08-ref.html new file mode 100644 index 000000000..d0c5bded3 --- /dev/null +++ b/layout/reftests/text/wordwrap-08-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; word-wrap: normal; white-space: pre} + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-08.html b/layout/reftests/text/wordwrap-08.html new file mode 100644 index 000000000..d9b02b83f --- /dev/null +++ b/layout/reftests/text/wordwrap-08.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll} + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20" wrap="off">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-09-ref.html b/layout/reftests/text/wordwrap-09-ref.html new file mode 100644 index 000000000..a6dcbe642 --- /dev/null +++ b/layout/reftests/text/wordwrap-09-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; word-wrap: normal; white-space: pre; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's +lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin +Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-09.html b/layout/reftests/text/wordwrap-09.html new file mode 100644 index 000000000..033a8f269 --- /dev/null +++ b/layout/reftests/text/wordwrap-09.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <style type="text/css"> +textarea { overflow: scroll; word-wrap: normal; } + </style> + <title>Test Wordwrap</title> + </head> + <body> + <textarea rows="10" cols="20">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</textarea> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-10-ref.html b/layout/reftests/text/wordwrap-10-ref.html new file mode 100644 index 000000000..1c370bc4c --- /dev/null +++ b/layout/reftests/text/wordwrap-10-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Test - word-wrap: break-word should respect clusters</title> + </head> + <body> + <div> + a<br>b<br>c<br> + d̥<br>e̕<br>f̣<br> + 𐐀<br>𐐁<br>𐐂 + </div> + </body> +</html> diff --git a/layout/reftests/text/wordwrap-10.html b/layout/reftests/text/wordwrap-10.html new file mode 100644 index 000000000..5a892c6ad --- /dev/null +++ b/layout/reftests/text/wordwrap-10.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Test - word-wrap: break-word should respect clusters</title> + </head> + <body> + <div style="width:0px; word-wrap:break-word"> + abc + d̥e̕f̣ + 𐐀𐐁𐐂 + </div> + </body> +</html> diff --git a/layout/reftests/text/zwnj-01-notref.html b/layout/reftests/text/zwnj-01-notref.html new file mode 100644 index 000000000..20a642b62 --- /dev/null +++ b/layout/reftests/text/zwnj-01-notref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- Reference rendering for zwnj-02.html. No spans, no ZWNJs. Everything + should connect --> +<html> + <head> + <title>ZWNJ test</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <style type="text/css"> + body { + font-size: 36px; + } + </style> + </head> + <body lang="ar"> + <p>هفتهها</p> + <p>موزهها</p> + <p>سهشنبه</p> + <p>راهآهن</p> + <p>نرمافزار</p> + </body> +</html> diff --git a/layout/reftests/text/zwnj-01-ref.html b/layout/reftests/text/zwnj-01-ref.html new file mode 100644 index 000000000..a7b77f46d --- /dev/null +++ b/layout/reftests/text/zwnj-01-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<!-- Reference rendering for zwnj-01.html. This uses spans with + display:inline-block to prevent the letters from connecting --> +<html> + <head> + <title>ZWNJ test</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <style type="text/css"> + body { + font-size: 36px; + } + span { + display: inline-block; + } + </style> + </head> + <body lang="ar"> + <p><span>ها</span><span>هفته</span></p> + <p><span>ها</span><span>موزه</span></p> + <p><span>شنبه</span><span>سه</span></p> + <p><span>آهن</span><span>راه</span></p> + <p><span>افزار</span><span>نرم</span></p> + </body> +</html> diff --git a/layout/reftests/text/zwnj-01-ref.xhtml b/layout/reftests/text/zwnj-01-ref.xhtml new file mode 100644 index 000000000..deb3382db --- /dev/null +++ b/layout/reftests/text/zwnj-01-ref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.1"> + + <!-- use an empty g to force filters.svg to load before onload --> + <use xlink:href="../filters.svg#empty" /> + + <foreignObject filter="url(../filters.svg#NonWhiteToBlack)" + x="0" y="0" height="100%" width="100%"> +<!-- Reference rendering for zwnj-01.html. This uses spans with + display:inline-block to prevent the letters from connecting --> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>ZWNJ test</title> + <style type="text/css"> + body { + font-size: 36px; + background: white; + color: black; + } + span { + display: inline-block; + } + </style> + </head> + <body lang="ar"> + <p><span>ها</span><span>هفته</span></p> + <p><span>ها</span><span>موزه</span></p> + <p><span>شنبه</span><span>سه</span></p> + <p><span>آهن</span><span>راه</span></p> + <p><span>افزار</span><span>نرم</span></p> + </body> +</html> +</foreignObject> +</svg> diff --git a/layout/reftests/text/zwnj-01.html b/layout/reftests/text/zwnj-01.html new file mode 100644 index 000000000..03b171595 --- /dev/null +++ b/layout/reftests/text/zwnj-01.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- ZWNJ test #1. Persian words containing a ZWNJ (copied from + http://www.unics.uni-hannover.de/nhtcapri/bidirectional-text.html) --> +<html> + <head> + <title>ZWNJ test</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <style type="text/css"> + body { + font-size: 36px; + } + </style> + </head> + <body lang="ar"> + <p>هفته‌ها</p> + <p>موزه‌ها</p> + <p>سه‌شنبه</p> + <p>راه‌آهن</p> + <p>نرم‌افزار</p> + </body> +</html> diff --git a/layout/reftests/text/zwnj-01.xhtml b/layout/reftests/text/zwnj-01.xhtml new file mode 100644 index 000000000..25cec4835 --- /dev/null +++ b/layout/reftests/text/zwnj-01.xhtml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.1"> + + <!-- use an empty g to force filters.svg to load before onload --> + <use xlink:href="../filters.svg#empty" /> + + <foreignObject filter="url(../filters.svg#NonWhiteToBlack)" + x="0" y="0" height="100%" width="100%"> +<!-- ZWNJ test #1. Persian words containing a ZWNJ (copied from + http://www.unics.uni-hannover.de/nhtcapri/bidirectional-text.html) --> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>ZWNJ test</title> + <style type="text/css"> + body { + font-size: 36px; + background: white; + color: black; + } + </style> + </head> + <body lang="ar"> + <p>هفته‌ها</p> + <p>موزه‌ها</p> + <p>سه‌شنبه</p> + <p>راه‌آهن</p> + <p>نرم‌افزار</p> + </body> +</html> +</foreignObject> +</svg> diff --git a/layout/reftests/text/zwnj-02-ref.xhtml b/layout/reftests/text/zwnj-02-ref.xhtml new file mode 100644 index 000000000..bc0b43459 --- /dev/null +++ b/layout/reftests/text/zwnj-02-ref.xhtml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.1"> + + <!-- use an empty g to force filters.svg to load before onload --> + <use xlink:href="../filters.svg#empty" /> + + <foreignObject filter="url(../filters.svg#NonWhiteToBlack)" + x="0" y="0" height="100%" width="100%"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<!-- Reference rendering for zwnj-02.html. No spans, no ZWNJs. Everything + should connect --> + <head> + <title>ZWNJ test</title> + <style type="text/css"> + html, body { margin: 0; background: white; color: black; height: 100%; width: 100%; } + body { + font-size: 36px; + } + </style> + </head> + <body lang="ar"> + <p>هفتهها</p> + <p>موزهها</p> + <p>سهشنبه</p> + <p>راهآهن</p> + <p>نرمافزار</p> + </body> +</html> +</foreignObject> +</svg> diff --git a/layout/reftests/text/zwnj-02.xhtml b/layout/reftests/text/zwnj-02.xhtml new file mode 100644 index 000000000..7a1b37633 --- /dev/null +++ b/layout/reftests/text/zwnj-02.xhtml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.1"> + + <!-- use an empty g to force filters.svg to load before onload --> + <use xlink:href="../filters.svg#empty" /> + + <foreignObject filter="url(../filters.svg#NonWhiteToBlack)" + x="0" y="0" height="100%" width="100%"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<!-- ZWNJ test #2. The words from zwnj-01.html with the ZWNJs replaced by + span boundaries. Correct behaviour is for the letters to connect across the + spans --> + <head> + <title>ZWNJ test</title> + <style type="text/css"> + html, body { margin: 0; background: white; color: black; height: 100%; width: 100%; } + body { + font-size: 36px; + } + </style> + </head> + <body lang="ar"> + <p><span>هفته</span><span>ها</span></p> + <p><span>موزه</span><span>ها</span></p> + <p><span>سه</span><span>شنبه</span></p> + <p><span>راه</span><span>آهن</span></p> + <p><span>نرم</span><span>افزار</span></p> + </body> +</html> +</foreignObject> +</svg> |