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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-display-none.html

Issue 1528823002: Move tests related to <fieldset> and <legend> to fast/forms/fieldset. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 <p> 1 <p>
2 Test that specifying <tt>display: none</tt> for a <tt>legend</tt> element wo rks. 2 Test that specifying <tt>display: none</tt> for a <tt>legend</tt> element wo rks.
3 </p> 3 </p>
4 <p id="result"> 4 <p id="result">
5 </p> 5 </p>
6 <fieldset> 6 <fieldset>
7 <legend id="target" style="display: none;">Legendary</legend> 7 <legend id="target" style="display: none;">Legendary</legend>
8 </fieldset> 8 </fieldset>
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 12
13 document.body.offsetTop; 13 document.body.offsetTop;
14 display = getComputedStyle(document.getElementById("target")).display; 14 display = getComputedStyle(document.getElementById("target")).display;
15 document.getElementById("result").innerText = display === "none" ? "PASS" : ("FAIL: display was '" + display + "'."); 15 document.getElementById("result").innerText = display === "none" ? "PASS" : ("FAIL: display was '" + display + "'.");
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698