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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html

Issue 1007623003: Fix incorrect percentage top for positioned elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments Created 5 years, 8 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 </style>
mstensho (USE GERRIT) 2015/04/13 21:40:04 Stray terminator.
changseok 2015/04/14 06:27:21 Removed.
3 <span id='outer' style="display:inline; position:relative; border:10px solid red ; margin:20px; padding:30px;">
mstensho (USE GERRIT) 2015/04/13 21:40:04 Could you please add a line-height declaration her
changseok 2015/04/14 06:27:21 Done.
4 outer
5 <div id='inner' style="position:absolute; top:50%; background:blue">inner</d iv>
6 </span>
7 <script src="../../../resources/js-test.js"></script>
8 <script>
9 var outer = document.querySelector("#outer");
10 var inner = document.querySelector("#inner");
11 var computedStyle = window.getComputedStyle(inner, null);
12 shouldBeEqualToString("computedStyle.getPropertyValue('top')", "39px");
13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698