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

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

Issue 2716583002: Avoid negative content box sizes. (Closed)
Patch Set: 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 unified diff | Download patch
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;">
mstensho (USE GERRIT) 2017/02/23 13:35:09 This test is valid, but it would also pass prior t
eae 2017/02/23 15:54:37 Agreed!
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

Powered by Google App Engine
This is Rietveld 408576698