Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / focus-querySelector-in-focus-event-handler.html
blob5b246d64196998d843e2b361bb20ce81c01215e6
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <input type="text">
4 <script>
5 var input = document.querySelector('input');
6 input.addEventListener('focus', function(e) {
7 var focused = document.querySelector(':focus');
8 if (e.target === focused) {
9 testPassed(":focus matches event.target");
10 } else {
11 testFailed(":focus doesn't match event.target");
13 }, false);
14 input.focus();
15 </script>