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

Unified Diff: third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html

Issue 2931363002: [LayoutNG] More precise checks for empty inline and add test (Closed)
Patch Set: ikilpatrick review Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_box_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html
diff --git a/third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html b/third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a974e9d6360c3135366944a0f9f17f5beccc7fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html
@@ -0,0 +1,114 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+#container {
+ font: 10px/1;
+}
+</style>
+<div id=log></div>
+<div id=container>
+ <div>
+ <div>before</div>
+ <div><span></span></div>
+ <div>after</div>
+ </div>
+ <div>
+ <div>before</div>
+ <div><span style="margin-bottom:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div>
+ <div>before</div>
+ <div><span style="border-bottom:1px solid"></span></div>
+ <div>after</div>
+ </div>
+ <div>
+ <div>before</div>
+ <div><span style="padding-bottom:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-left:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="border-left:1px solid"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="padding-left:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-right:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="border-right:1px solid"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="padding-right:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-left:-1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-right:-1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-left:1px;margin-right:-1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-left:-1px;border-left:1px solid"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-left:-1px;padding-left:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-right:-1px;border-right:1px solid"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-right:-1px;padding-right:1px"></span></div>
+ <div>after</div>
+ </div>
+ <div data-has-height=true>
+ <div>before</div>
+ <div><span style="margin-right:1px"></span><span style="margin-left:-1px"></span></div>
+ <div>after</div>
+ </div>
+</div>
+<script>
+let tests = container.children;
+for (let i = 0; i < tests.length; i++) {
+ let block = tests[i];
+ let target = block.children[1];
+ let name = (block.dataset.hasHeight ? "Has height" : "Zero height") +
+ " when " + target.innerHTML;
+ test(() => {
+ let has_height = target.offsetHeight > 0;
+ assert_equals(has_height, !!block.dataset.hasHeight);
+ }, name);
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_box_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698