Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-orphaned-word.html

Issue 2560383002: Merge 2924: Apply hyphenation when there is only one word in a paragraph (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-orphaned-word.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-orphaned-word.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-orphaned-word.html
new file mode 100644
index 0000000000000000000000000000000000000000..a14c701bc458797ed4c51b1d2733b03c8a15914c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-orphaned-word.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script>
+if (window.internals)
+ internals.setMockHyphenation('en-us');
+</script>
+<style>
+div {
+ border: thin solid black;
+ font-family: 'Courier New';
+ -webkit-hyphens: auto;
+ hyphens: auto;
+}
+</style>
+<body lang="en-us">
+ <p>Do not hyphenate the last word in a paragraph.</p>
+ <div style="width: 15ch">This is hyphenation</div>
+ <div style="width: 15ch">This is hyphenation
+ </div>
+
+ <p>Do hyphenate single word.</p>
+ <div style="width: 8ch">hyphenation</div>
+ <div style="width: 8ch">hyphenation
+ </div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698