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..be65bc12efd2bb6cdeab7d3fb5c5cd1289d044c4 |
--- /dev/null |
+++ b/LayoutTests/fast/inline/empty-inline-before-collapsed-space.html |
@@ -0,0 +1,33 @@ |
+<!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> |
+<div id="container" style="width: 100px" data-expected-client-height=50> |
+X <span style="font-size: 50px;"></span> X |
+</div> |
+<script> |
+ checkLayout('#container'); |
+</script> |