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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/whitespace/whitespace-in-pre.html

Issue 1527113004: Remove unnecessary state for tracking whitespace collapsing in pre's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@567080-Part2-2
Patch Set: Updated Created 5 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/whitespace/whitespace-in-pre.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/whitespace-in-pre.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/whitespace-in-pre.html
new file mode 100644
index 0000000000000000000000000000000000000000..04ab97edba25ae4e505a0774c27e501691ad1edd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/whitespace-in-pre.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<style>
+body {
+ font: 10px Ahem;
+}
+.title {
+ font: 12px Times;
+}
+.break-word {
+ word-wrap: break-word;
+}
+</style>
+<p class="title"> The single tab should be on the second line followed by the C. The tab and the C form a single word so do not break.</p>
+<div style="width: 80px;">
+ <p class="test">A B<span style="white-space:pre"> </span>C</p>
+</div>
+<p class="title"> The two tabs should be at the start of the second line. The 'pre' and the C form a single word so do not break. </p>
+<div style="width: 160px;">
+ <p class="test">A B<span style="white-space:pre"> </span>C</p>
+</div>
+<p class="title"> The two tabs should fit on the first line. The line can break at the space before the C.</p>
+<div style="width: 160px;">
+ <p class="test">A B<span style="white-space:pre"> </span> C</p>
+</div>
+
+<p class="title"> The single tab should be on the second line by itself. The div allows breaking within words so the word formed by the tab and the C can be split.</p>
+<div style="width: 80px;" class="break-word">
+ <p class="test">A B<span style="white-space:pre"> </span>C</p>
+</div>
+<p class="title"> The two tabs should be on the second line by themselves. The div allows breaking within words but it cannot split the two tabs inside a pre.</p>
+<div style="width: 110px;" class="break-word">
+ <p class="test">A B<span style="white-space:pre"> </span>C</p>
+</div>
+<p class="title"> The two tabs should fit on the first line. The div allows breaking within words but it cannot split the two tabs inside a pre. The line can break at the space before the C.</p>
+<div style="width: 160px;" class="break-word">
+ <p class="test">A B<span style="white-space:pre"> </span> C</p>
+</div>

Powered by Google App Engine
This is Rietveld 408576698