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

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: Update an expected value of web-animations-api/animations-responsive-to-style-change.html 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 <span id='outer' style="display:inline; position:relative; font:20px Ahem; borde r:10px solid red; margin:20px; padding:30px;">
3 outer
4 <div id='inner' style="position:absolute; top:50%; background:blue">inner</d iv>
5 </span>
6 <script src="../../../resources/js-test.js"></script>
7 <script>
8 var inner = document.querySelector("#inner");
9 var computedStyle = window.getComputedStyle(inner, null);
10 shouldBeEqualToString("computedStyle.getPropertyValue('top')", "40px");
11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698