Skip to content

Commit

Permalink
Cherry-pick 256843.9@webkit-2022.12-embargoed (4c3dcd4). rdar://10425…
Browse files Browse the repository at this point in the history
…6993

    Test display contents change on focus change
    https://bugs.webkit.org/show_bug.cgi?id=251014

    Reviewed by Tim Nguyen.

    * LayoutTests/fast/css/content/content-on-focus-change-expected.txt: Added.
    * LayoutTests/fast/css/content/content-on-focus-change.html: Added.

    Canonical link: https://commits.webkit.org/256843.9@webkit-2022.12-embargoed

Canonical link: https://commits.webkit.org/259548.61@safari-7615-branch
  • Loading branch information
csaavedra authored and JonWBedard committed Feb 7, 2023
1 parent f246e1b commit 71ee942
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
@@ -0,0 +1 @@
This test passes if it doesn't crash.
21 changes: 21 additions & 0 deletions LayoutTests/fast/css/content/content-on-focus-change.html
@@ -0,0 +1,21 @@
<style>
.class2:focus-within { display: contents; }
</style>
<script>
if(window.testRunner)
testRunner.dumpAsText();

function main() {
input.setSelectionRange(0,31,"forward");
}
function f1() {
var input = document.getElementById("input");
document.execCommand("justifyRight",false,null);
a.text = "This test passes if it doesn't crash.";
input.type = "checkbox";
}
</script>
<body onload="main()">
<a id="a" onfocusin="f1()">
<span class="class2">
<input id="input">

0 comments on commit 71ee942

Please sign in to comment.