Bug 765166 lines should be able to be broken before/after Ideographic space next to breakable white space r=roc

This commit is contained in:
Masayuki Nakano 2012-06-16 23:48:57 +09:00
Родитель 08bd363dfd
Коммит 2ef13e8e99
4 изменённых файлов: 65 добавлений и 2 удалений

Просмотреть файл

@ -58,9 +58,8 @@ NS_IsSpace(PRUnichar u)
(0x2000 <= u && u <= 0x2006) || // EN QUAD, EM QUAD, EN SPACE,
// EM SPACE, THREE-PER-EM SPACE,
// FOUR-PER-SPACE, SIX-PER-EM SPACE,
(0x2008 <= u && u <= 0x200B) || // PUNCTUATION SPACE, THIN SPACE,
(0x2008 <= u && u <= 0x200B); // PUNCTUATION SPACE, THIN SPACE,
// HAIR SPACE, ZERO WIDTH SPACE
u == 0x3000; // IDEOGRAPHIC SPACE
}
static inline bool

Просмотреть файл

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Line breaks between white spaces</title>
<style>
div {
width: 0px;
border: 1px solid blue;
white-space: nowrap;
}
</style>
</head>
<body>
<table>
<tr><th>U+0009</th><td><div>&#x0009;&#x0009;</div></td></tr>
<tr><th>U+000D</th><td><div>&#x000D;&#x000D;</div></td></tr>
<tr><th>U+0020</th><td><div>&#x0020;&#x0020;</div></td></tr>
<tr><th>U+2000</th><td><div>&#x2000;&#x2000;</div></td></tr>
<tr><th>U+2001</th><td><div>&#x2000;&#x2001;</div></td></tr>
<tr><th>U+2002</th><td><div>&#x2000;&#x2002;</div></td></tr>
<tr><th>U+2003</th><td><div>&#x2000;&#x2003;</div></td></tr>
<tr><th>U+2004</th><td><div>&#x2000;&#x2004;</div></td></tr>
<tr><th>U+2005</th><td><div>&#x2000;&#x2005;</div></td></tr>
<tr><th>U+2006</th><td><div>&#x2000;&#x2006;</div></td></tr>
<tr><th>U+2008</th><td><div>&#x2000;&#x2008;</div></td></tr>
<tr><th>U+2009</th><td><div>&#x2000;&#x2009;</div></td></tr>
<tr><th>U+200A</th><td><div>&#x2000;&#x200A;</div></td></tr>
<tr><th>U+200B</th><td><div>&#x2000;&#x200B;</div></td></tr>
<tr><th>U+3000</th><td><div>&#x3000;<br>&#x3000;</div></td></tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Line breaks between white spaces</title>
<style>
div {
width: 0px;
border: 1px solid blue;
}
</style>
</head>
<body>
<table>
<tr><th>U+0009</th><td><div>&#x0009;&#x0009;</div></td></tr>
<tr><th>U+000D</th><td><div>&#x000D;&#x000D;</div></td></tr>
<tr><th>U+0020</th><td><div>&#x0020;&#x0020;</div></td></tr>
<tr><th>U+2000</th><td><div>&#x2000;&#x2000;</div></td></tr>
<tr><th>U+2001</th><td><div>&#x2000;&#x2001;</div></td></tr>
<tr><th>U+2002</th><td><div>&#x2000;&#x2002;</div></td></tr>
<tr><th>U+2003</th><td><div>&#x2000;&#x2003;</div></td></tr>
<tr><th>U+2004</th><td><div>&#x2000;&#x2004;</div></td></tr>
<tr><th>U+2005</th><td><div>&#x2000;&#x2005;</div></td></tr>
<tr><th>U+2006</th><td><div>&#x2000;&#x2006;</div></td></tr>
<tr><th>U+2008</th><td><div>&#x2000;&#x2008;</div></td></tr>
<tr><th>U+2009</th><td><div>&#x2000;&#x2009;</div></td></tr>
<tr><th>U+200A</th><td><div>&#x2000;&#x200A;</div></td></tr>
<tr><th>U+200B</th><td><div>&#x2000;&#x200B;</div></td></tr>
<tr><th>U+3000</th><td><div>&#x3000;&#x3000;</div></td></tr>
</table>
</body>
</html>

Просмотреть файл

@ -1,3 +1,4 @@
== between-whitespaces.html between-whitespaces-ref.html
== chemical-1.html chemical-1-ref.html
== currency-1.html currency-1-ref.html
== currency-2.html currency-2-ref.html