| <!DOCTYPE html> |
| <html> |
| <head> |
| </head> |
| <body> |
| <p>This test ensures that the focus ring is shown on the only anchor after tabbing out and inside the window.</p> |
| <p><svg width="500" height="30"><a id="anchor" xlink:href="javascript:log('anchor was clicked')"><text font-size="18px" y="20">Anchor</text></a></svg></p> |
| <input id="input"> |
| <pre id="console"> |
| anchor was focused |
| anchor was blurred |
| input was focused |
| input was blurred |
| window was blurred |
| window was focused |
| anchor was focused |
| anchor was clicked |
| </pre> |
| |
| <script> |
| var anchor = document.getElementById('anchor'); |
| anchor.focus(); |
| </script> |
| </body> |
| </html> |