mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 827779 - reftest for modified hyphen-break rules. r=masayuki
This commit is contained in:
parent
fb2457bf80
commit
2f3b9d4ea4
33
layout/reftests/line-breaking/hyphens-2-ref.html
Normal file
33
layout/reftests/line-breaking/hyphens-2-ref.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style type="text/css">
|
||||
p { margin: 5px 1em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- bug 827779:
|
||||
Allow break after hyphen even when there is adjacent closing punctuation
|
||||
before the hyphen, or opening punctuation after it. -->
|
||||
<p>
|
||||
extra-<br>“special”<br>
|
||||
“extra”-<br>special<br>
|
||||
“extra”-<br>“special”<br>
|
||||
extra-<br>«special»<br>
|
||||
«extra»-<br>special<br>
|
||||
«extra»-<br>«special»<br>
|
||||
extra-<br>(special)<br>
|
||||
(extra)-<br>special<br>
|
||||
(extra)-<br>(special)
|
||||
</p>
|
||||
|
||||
<!-- but not in variants such as these: -->
|
||||
<p>
|
||||
(extra-)special<br>
|
||||
extra(-special)
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
33
layout/reftests/line-breaking/hyphens-2.html
Normal file
33
layout/reftests/line-breaking/hyphens-2.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style type="text/css">
|
||||
p { margin: 5px 1em; width: 0px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- bug 827779:
|
||||
Allow break after hyphen even when there is adjacent closing punctuation
|
||||
before the hyphen, or opening punctuation after it. -->
|
||||
<p>
|
||||
extra-“special”<br>
|
||||
“extra”-special<br>
|
||||
“extra”-“special”<br>
|
||||
extra-«special»<br>
|
||||
«extra»-special<br>
|
||||
«extra»-«special»<br>
|
||||
extra-(special)<br>
|
||||
(extra)-special<br>
|
||||
(extra)-(special)
|
||||
</p>
|
||||
|
||||
<!-- but not in variants such as these: -->
|
||||
<p>
|
||||
(extra-)special<br>
|
||||
extra(-special)
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -4,6 +4,7 @@
|
||||
== currency-2.html currency-2-ref.html
|
||||
== datetime-1.html datetime-1-ref.html
|
||||
== hyphens-1.html hyphens-1-ref.html
|
||||
== hyphens-2.html hyphens-2-ref.html
|
||||
# The following three tests may fail if rendering with Core Text (see bug 389074)
|
||||
# due to subpixel glyph positioning differences between the reference cases with <br>
|
||||
# and the automatically-wrapped lines in the test file
|
||||
|
Loading…
Reference in New Issue
Block a user