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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-auto-nowrap.html

Issue 2614743004: Fix 'hyphens: auto' to work only when wrapping is allowed (Closed)
Patch Set: Created 3 years, 11 months 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-auto-nowrap.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-auto-nowrap.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-auto-nowrap.html
new file mode 100644
index 0000000000000000000000000000000000000000..1aeb4c74b723b3ecd5c09f8e20236a8a3411526b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-auto-nowrap.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+div > div {
+ border: thin solid black;
+ font-family: 'Courier New';
+ -webkit-hyphens: auto;
+ hyphens: auto;
+ width: 5ch;
+}
+.nowrap {
+ white-space: nowrap;
+}
+</style>
+<script>
+if (window.internals)
+ internals.setMockHyphenation('en-us');
+</script>
+<div lang="en-us">
+ <div>hyphenation</div>
+ <div class="nowrap">hyphenation</div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698