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

Unified Diff: LayoutTests/fast/overflow/line-clamp-hides-trailing-anchor.html

Issue 1065783002: Remove legacy markup box behavior when line-clamping. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename new layout test to reflect intent. Created 5 years, 8 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: LayoutTests/fast/overflow/line-clamp-hides-trailing-anchor.html
diff --git a/LayoutTests/fast/overflow/line-clamp-hides-trailing-anchor.html b/LayoutTests/fast/overflow/line-clamp-hides-trailing-anchor.html
new file mode 100644
index 0000000000000000000000000000000000000000..57d566ae118f9cb4a05321ba7f63d6f2aaaf0610
--- /dev/null
+++ b/LayoutTests/fast/overflow/line-clamp-hides-trailing-anchor.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ div {
+ display: -webkit-inline-box;
+ width: 100px;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ overflow: hidden;
+ }
+ </style>
+ </head>
+ <body>
+ This test prevents regression of now-removed legacy line
+ clamping behavior where a trailing anchor tag in a
+ line-clamped inline box would always render and be available
+ for hit-testing in the ellipsified visible box. Test passes
+ if no anchor text is visible.
+ <br><br>
+ <div>
+ aaaaa bbbbb<a href="#">ccccc</a>
+ </div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698