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

Unified Diff: LayoutTests/fast/inline/empty-inline-before-collapsed-space.html

Issue 300853007: Empty inline elements always get a line box. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: LayoutTests/fast/inline/empty-inline-before-collapsed-space.html
diff --git a/LayoutTests/fast/inline/empty-inline-before-collapsed-space.html b/LayoutTests/fast/inline/empty-inline-before-collapsed-space.html
new file mode 100644
index 0000000000000000000000000000000000000000..77bb780577afadc99d44abd9621d0b130794e7c8
--- /dev/null
+++ b/LayoutTests/fast/inline/empty-inline-before-collapsed-space.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<style>
+#container {
+ font: 20px/1 Ahem;
+ border: solid orange;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<p>An empty inline should still get a linebox even when it precedes a space at which we start collapsing whitespace.</p>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X <span style="font-size: 50px;"></span> X
+</div>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X<span style="font-size: 50px;"></span> X
+</div>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X <span style="font-size: 50px;"></span>X
+</div>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X <span style="font-size: 50px;"></span> X
+</div>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X<span style="font-size: 50px;"></span>X
+</div>
+<div id="container" style="width: 100px" data-expected-client-height=50>
+X<span style="font-size: 50px;"></span> X
+</div>
+<script>
+ checkLayout('#container');
+</script>

Powered by Google App Engine
This is Rietveld 408576698