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

Side by Side Diff: LayoutTests/fast/css/absolute-position-with-negative-width.html

Issue 578723003: Don't allow negative width for positioned elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix nit Created 6 years, 3 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 | LayoutTests/fast/css/absolute-position-with-negative-width-expected.txt » ('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 <script src="../../resources/js-test.js"></script>
3
4 <div style="position: relative; width: 0px">
5 <div style="position: absolute; left: 1px; right: 1px;" id="absolute_with_le ft_right"></div>
6 </div>
7
8 <script>
9 absolute_with_left_right = document.getElementById("absolute_with_left_right");
10 shouldBe("absolute_with_left_right.getBoundingClientRect().width","0");
11 shouldBe("absolute_with_left_right.getClientRects()[0].width","0");
12 shouldBe("absolute_with_left_right.offsetWidth","0");
13 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/absolute-position-with-negative-width-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698