Bootlin logo

Elixir Cross Referencer

<html lang="en">
<style type="text/css">
    textarea { background: red; }
    textarea:focus { background: green; }
<p><b>BUG ID:</b> <a href="">Bugzilla bug 8324</a> REGRESSION: textarea :focus not applied immediately</p>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
Click in the red text area below.

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
The text area&rsquo;s background will change from red to green.

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
The text area will not change to green. Only switching to another window and back to this window
will change it to green.

<textarea rows="8" cols="40"></textarea>