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

Unified Diff: LayoutTests/fast/css/text-overflow-ellipsis-block-with-border-and-padding.html

Issue 160583002: Pass the correct value for the available width to updateLogicalWidthForAlignment() after placing an… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch again against master Created 6 years, 10 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/css/text-overflow-ellipsis-block-with-border-and-padding.html
diff --git a/LayoutTests/fast/css/text-overflow-ellipsis-block-with-border-and-padding.html b/LayoutTests/fast/css/text-overflow-ellipsis-block-with-border-and-padding.html
new file mode 100644
index 0000000000000000000000000000000000000000..32eeb5e75112ba2a0c0380cebec9a322a820809d
--- /dev/null
+++ b/LayoutTests/fast/css/text-overflow-ellipsis-block-with-border-and-padding.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<style>
+.testDiv {
+ width: 308px;
+ border: 5px solid green;
+ padding: 0px 5px 0px 20px;
+ white-space: nowrap;
+ overflow: hidden;
+ margin: 0 0 20px 0;
+ text-overflow: ellipsis;
+}
+
+.rtl {
+ direction: rtl;
+ unicode-bidi: bidi-override;
+}
+
+.leftAlign { text-align: left; }
+.rightAlign { text-align: right; }
+.centerAlign { text-align: center; }
+.justifyAlign { text-align: justify; }
+</style>
+</head>
+<body>
+<div class="testDiv leftAlign">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+<div class="testDiv leftAlign rtl">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+
+<div class="testDiv rightAlign">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+<div class="testDiv rightAlign rtl">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+
+<div class="testDiv centerAlign">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+<div class="testDiv centerAlign rtl">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+
+<div class="testDiv justifyAlign">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+<div class="testDiv justifyAlign rtl">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae eros non libero faucibus sagittis sed ut eros.</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698