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

Unified Diff: LayoutTests/fast/inline/vertical-align-text-inherit.html

Issue 1178473003: Vertical-aligned of LayoutText should not contribute to a layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/inline/vertical-align-text-inherit.html
diff --git a/LayoutTests/fast/inline/vertical-align-text-inherit.html b/LayoutTests/fast/inline/vertical-align-text-inherit.html
new file mode 100644
index 0000000000000000000000000000000000000000..001d5adc90c88fb1edd41ba1d643a855766ddf39
--- /dev/null
+++ b/LayoutTests/fast/inline/vertical-align-text-inherit.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<style>
+.container {
+ background-color: yellow;
+ display: inline-block;
+ overflow: hidden;
mstensho (USE GERRIT) 2015/06/10 11:40:41 The background-color, display, overflow, text-over
changseok 2015/06/11 04:39:05 Of course, I can. =) I just mimicked the original
+ text-overflow: ellipsis;
+ width: 200px;
+ white-space: nowrap;
+ vertical-align: top;
+}
+
+.green {
+ background-color: green;
mstensho (USE GERRIT) 2015/06/10 11:40:41 See my comment further below. This inline-block is
changseok 2015/06/11 04:39:05 O.K I see.
+ display: inline-block;
+ width: 50px;
+ height: 50px;
+}
+</style>
+<p>Test passes if a text in a yellow box is aligned with the bottom of a left green box.</p>
+Baseline.
+<div class="container">
+ <div class="green"></div>
+ This text should be aligned with the bottom of a left green box.
mstensho (USE GERRIT) 2015/06/10 11:40:41 The baseline of this text, perhaps. Not the bottom
changseok 2015/06/11 04:39:05 This is neater.
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/inline/vertical-align-text-inherit-expected.html » ('j') | Source/core/layout/line/InlineBox.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698