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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html

Issue 2716583002: Avoid negative content box sizes. (Closed)
Patch Set: code review Created 3 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: third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html b/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html
new file mode 100644
index 0000000000000000000000000000000000000000..633a849479c37bfc28714746c9861ee7d89b1728
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<div style="position:relative;">
+ <div style="overflow:scroll; width:1px;">
+ <div id="inner" style="float:right; width:20px; height:100px;"></div>
+ </div>
+</div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+ test(() => {
+ assert_equals(inner.offsetLeft, -20);
+ }, "Right-aligned float in zero-width block");
+</script>

Powered by Google App Engine
This is Rietveld 408576698