зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
08bd363dfd
Коммит
2ef13e8e99
|
@ -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>		</div></td></tr>
|
||||
<tr><th>U+000D</th><td><div>

</div></td></tr>
|
||||
<tr><th>U+0020</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2000</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2001</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2002</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2003</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2004</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2005</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2006</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2008</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2009</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+200A</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+200B</th><td><div> ​</div></td></tr>
|
||||
<tr><th>U+3000</th><td><div> <br> </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>		</div></td></tr>
|
||||
<tr><th>U+000D</th><td><div>

</div></td></tr>
|
||||
<tr><th>U+0020</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2000</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2001</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2002</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2003</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2004</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2005</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2006</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2008</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+2009</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+200A</th><td><div>  </div></td></tr>
|
||||
<tr><th>U+200B</th><td><div> ​</div></td></tr>
|
||||
<tr><th>U+3000</th><td><div>  </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
|
||||
|
|
Загрузка…
Ссылка в новой задаче