Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / basic / 002.html
blob729721bdef58268b0b91c8754dff4ec00a3ec5d0
1 <head>
2 <style>
3 a { color: green; }
4 </style>
5 </head>
6 <body>
7 <script>
8 function toggle(id)
10 var node = document.getElementById(id);
11 node.style.display == 'none' ? node.style.display = 'block' : node.style.display = 'none';
13 </script>
15 <div style="border:2px solid red"><a onclick="toggle('first');">First</a><span id="first" style="display:none">
16 &nbsp;First Content.
17 </span><a onclick="toggle('second');">Second</a><span id="second" style="display:none">
18 &nbsp;Second Content.
19 </span><a onclick="toggle('third');">Third</a><span id="third" style="display:none">
20 &nbsp;Third Content.<a onclick="toggle('crashme');">&nbsp;Crash Me</a><span id="crashme" style="display:none">
21 &nbsp;&nbsp;You win!
22 </span></div>