Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222167 - Avoid style resolution when clearing focused element.
https://bugs.webkit.org/show_bug.cgi?id=176224 <rdar://problem/34206409> Reviewed by Zalan Bujtas. LayoutTests: * fast/dom/focus-style-resolution-expected.txt: Added. * fast/dom/focus-style-resolution.html: Added.
- Loading branch information
1 parent
0c0da52
commit d429380
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This test passes if it doesn't assert or crash. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
function eventhandler1() { | ||
txt.appendChild(kg); | ||
} | ||
|
||
function eventhandler2() { | ||
anim.appendChild(kg); | ||
} | ||
|
||
function eventhandler3() { | ||
table.scrollIntoView(true); | ||
testRunner.notifyDone(); | ||
} | ||
|
||
</script> | ||
This test passes if it doesn't assert or crash. | ||
<table id="table"></table> | ||
<form> | ||
<input id="kg" autofocus="autofocus"> | ||
</form> | ||
<svg> | ||
<animate id="anim" attributeName="text-anchor" from="middle" to="inherit" onbegin="eventhandler1()" /> | ||
<text id="txt" onload="eventhandler3()"> | ||
<font color="white"></font> | ||
<select onfocus="eventhandler2()" autofocus="autofocus"> | ||
<textarea>a</textarea> | ||
<iframe onload="eventhandler1()"></iframe> |