Last Comment Bug 581604 - Select requires two clicks to open when applying -moz-transform scale to focus
: Select requires two clicks to open when applying -moz-transform scale to focus
Status: UNCONFIRMED
: css-moz, testcase
Product: Core
Classification: Components
Component: Layout: Form Controls (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Jet Villegas (:jet)
Mentors:
: 1273337 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-23 16:35 PDT by Josh Brackett
Modified: 2016-05-16 17:42 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Shows bug (306 bytes, text/html)
2010-07-23 16:36 PDT, Josh Brackett
no flags Details

Description Josh Brackett 2010-07-23 16:35:42 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)

I would like to scale input boxes including select boxes when the user focuses the input box.  Select boxes change behavior when I add a transform to the focus though.

<style type="text/css">
    select:focus {
      -moz-transform: scale(1.05);
      -webkit-transform: scale(1.05);
    }
</style>

Reproducible: Always

Steps to Reproduce:
1. Apply style
2. Click on select box
3. Click again to view options
Actual Results:  
Have to click the select box twice.  First one focuses it, second time opens it.

Expected Results:  
1. Apply style
2. Click on select box and see options
Comment 1 Josh Brackett 2010-07-23 16:36:54 PDT
Created attachment 459960 [details]
Shows bug
Comment 2 Tyler Downer [:Tyler] 2011-06-03 17:34:15 PDT
This bug was reported using a pre-release version of Firefox 4. Now that Firefox 4.0.1 final has been released, can you please update and retest your bug? A fresh profile would be a good starting place to test, 
http://support.mozilla.com/kb/Managing+profiles. If you continue to see the issue, can you please update this bug with your results?

Filter: firefox4prebugsunco
Comment 3 Josh Brackett 2011-06-03 17:53:58 PDT
(In reply to comment #2)
> This bug was reported using a pre-release version of Firefox 4. Now that
> Firefox 4.0.1 final has been released, can you please update and retest your
> bug? A fresh profile would be a good starting place to test, 
> http://support.mozilla.com/kb/Managing+profiles. If you continue to see the
> issue, can you please update this bug with your results?
> 
> Filter: firefox4prebugsunco

The issue remains with Firefox 4.0.1.  No update to the test case is needed.
Comment 4 Boris Zbarsky [:bz] (still a bit busy) 2011-06-06 12:17:51 PDT
This is the usual issue where reframing the <select> messes with click handling.  In particular, what's happening here is that you click, the <select> opens the dropdown, then the whole <select> rendering object is destroyed and recreated because of the transform setting....

You can work around this by using |select { -moz-transform: scale(1); }| in your stylesheet, so the scale change won't need to reframe.
Comment 5 Josh Brackett 2011-06-06 17:04:12 PDT
(In reply to comment #4)
> This is the usual issue where reframing the <select> messes with click
> handling.  In particular, what's happening here is that you click, the
> <select> opens the dropdown, then the whole <select> rendering object is
> destroyed and recreated because of the transform setting....
> 
> You can work around this by using |select { -moz-transform: scale(1); }| in
> your stylesheet, so the scale change won't need to reframe.

Thank you for the comment and work around Boris.
Comment 6 Robert Longson 2016-05-16 17:40:58 PDT
*** Bug 1273337 has been marked as a duplicate of this bug. ***
Comment 7 Robert Longson 2016-05-16 17:42:49 PDT
*** Bug 1273337 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.