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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html

Issue 1970183002: Don't use canCollapseAnonymousBlockChild() to determine whether to truncate text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Declaration soup - aka LayoutTest. Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html b/third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html
new file mode 100644
index 0000000000000000000000000000000000000000..a32bc95c87b30b1d80906fdec5ab025d703c6c9d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+ .button {
+ box-sizing: content-box;
+ width: 20em;
+ height: 2em;
+ border: none;
+ padding: 0;
+ font: 16px/2em sans-serif;
+ overflow: hidden;
+ vertical-align: top;
+ text-align: left;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ background: gray;
+ }
+</style>
+<p>There should be two gray boxes with overflowing text, truncated with "...".</p>
+<input type="button" class="button" value="Houses can be built from different kinds of materials. The most common types are brick, wood, and vinyl or synthetic siding. Houses have lawns that need to be tended.">
+<br><br>
+<button class="button">Houses can be built from different kinds of materials. The most common types are brick, wood, and vinyl or synthetic siding. Houses have lawns that need to be tended.</button>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698