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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/history/visited-link-button.html

Issue 1820773002: getComputedStyle() should return used value for 'line-height' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
1 <script src="../../resources/js-test.js"></script> 1 <script src="../../resources/js-test.js"></script>
2 2
3 <style> 3 <style>
4 input { 4 input {
5 line-height: 10px; 5 line-height: 10px;
6 display: none; 6 display: none;
7 } 7 }
8 a:visited input { 8 a:visited input {
9 background-color: yellow; 9 background-color: yellow;
10 } 10 }
11 </style> 11 </style>
12 12
13 <a id="a" href=""><input id="input" type="button"></input></a> 13 <a id="a" href=""><input id="input" type="button"></input></a>
14 14
15 <script> 15 <script>
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.keepWebHistory(); 17 testRunner.keepWebHistory();
18 18
19 a.style.color = "orange"; 19 a.style.color = "orange";
20 a.style.color = ""; 20 a.style.color = "";
21 shouldBeEqualToString("getComputedStyle(input).lineHeight", "normal"); 21 shouldBeEqualToString("getComputedStyle(input).lineHeight", "16px");
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698