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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/large-border-abspos.html

Issue 2716583002: Avoid negative content box sizes. (Closed)
Patch Set: code review Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/large-padding.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!-- The left offset here is just to push the huge thing out of view, so that a
3 human (yes, YOU!) can see the test results. -->
4 <div style="position:absolute; left:100%; border-width:1234567890px; border-styl e:solid;">
5 <div id="abspos" style="position:absolute; left:0; top:0; right:0; bottom:0; "></div>
6 </div>
7 <script src="../../resources/testharness.js"></script>
8 <script src="../../resources/testharnessreport.js"></script>
9 <script>
10 test(() => {
11 assert_equals(document.getElementById("abspos").offsetWidth, 0);
12 assert_equals(document.getElementById("abspos").offsetHeight, 0);
13 }, "Sizes should never become negative");
14 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/large-padding.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698