RESOLVED FIXED 56023
[Chromium] Fix default single selection select's popup background on chromium/linux
https://bugs.webkit.org/show_bug.cgi?id=56023
Summary [Chromium] Fix default single selection select's popup background on chromium...
xiyuan
Reported 2011-03-09 09:42:00 PST
http://trac.webkit.org/changeset/78137 is supposed to change select (menuListButton apperance) popup background to #f7f7f7 on chromium/linux. However the css selector does not apply to default single selection select so it remains #dddddd.
Attachments
Proposed patch. (1.03 KB, patch)
2011-03-09 09:45 PST, xiyuan
tony: review-
Added a layout test. (4.69 KB, patch)
2011-03-10 12:07 PST, xiyuan
tony: review+
Fix nits. (4.71 KB, patch)
2011-03-10 12:35 PST, xiyuan
no flags
Fix indentation in js functions. (4.73 KB, patch)
2011-03-10 12:38 PST, xiyuan
tony: review+
xiyuan
Comment 1 2011-03-09 09:45:29 PST
Created attachment 85186 [details] Proposed patch.
Tony Chang
Comment 2 2011-03-09 12:11:08 PST
Comment on attachment 85186 [details] Proposed patch. A pixel test can't capture this change, right? Is this covered by a manual test? If so, can you mention the test in the ChangeLog. If not, can you add a manual test for this?
xiyuan
Comment 3 2011-03-09 13:00:32 PST
(In reply to comment #2) > (From update of attachment 85186 [details]) > A pixel test can't capture this change, right? Is this covered by a manual test? If so, can you mention the test in the ChangeLog. If not, can you add a manual test for this? Select popup (aka dropdown) is not covered in pixel tests because popup is in another render widget and this is not supported by the test infrastructure currently. I am adding a rule so that the default single selection select use #f7f7f7 background color. What do we want to manual test to test? To test that default select and select with size='0'|'1' attribute use the same popup background color? Please clarify a bit. Thanks.
Tony Chang
Comment 4 2011-03-09 13:26:16 PST
(In reply to comment #3) > I am adding a rule so that the default single selection select use #f7f7f7 background color. What do we want to manual test to test? To test that default select and select with size='0'|'1' attribute use the same popup background color? Yes, exactly, that sounds like a good manual test to have. I also wonder if it's possible to use getComputedStyle() to check this in an automated fashion. Maybe not.
xiyuan
Comment 5 2011-03-10 12:07:57 PST
Created attachment 85365 [details] Added a layout test. Added a layout test using getComputedStyle as suggested.
Tony Chang
Comment 6 2011-03-10 12:31:03 PST
Comment on attachment 85365 [details] Added a layout test. View in context: https://bugs.webkit.org/attachment.cgi?id=85365&action=review > LayoutTests/fast/html/select-dropdown-consistent-background-color.html:20 > + $('result').textContent= Nit: add a space before the = > LayoutTests/fast/html/select-dropdown-consistent-background-color.html:21 > + (default_color == size0_color && default_color == size1_color) ? "PASS" Nit: 4 space indent > LayoutTests/fast/html/select-dropdown-consistent-background-color.html:24 > + layoutTestController.dumpAsText(); Nit: 4 space indent > LayoutTests/fast/html/select-dropdown-consistent-background-color.html:34 > + <option>Item 1</option> > + <option>Item 2</option> Nit: html should probably also use a 4 space indent
xiyuan
Comment 7 2011-03-10 12:35:27 PST
Comment on attachment 85365 [details] Added a layout test. View in context: https://bugs.webkit.org/attachment.cgi?id=85365&action=review >> LayoutTests/fast/html/select-dropdown-consistent-background-color.html:20 >> + $('result').textContent= > > Nit: add a space before the = Done. >> LayoutTests/fast/html/select-dropdown-consistent-background-color.html:21 >> + (default_color == size0_color && default_color == size1_color) ? "PASS" > > Nit: 4 space indent Done. >> LayoutTests/fast/html/select-dropdown-consistent-background-color.html:24 >> + layoutTestController.dumpAsText(); > > Nit: 4 space indent Done. >> LayoutTests/fast/html/select-dropdown-consistent-background-color.html:34 >> + <option>Item 2</option> > > Nit: html should probably also use a 4 space indent Done.
xiyuan
Comment 8 2011-03-10 12:35:57 PST
Created attachment 85372 [details] Fix nits.
xiyuan
Comment 9 2011-03-10 12:38:14 PST
Created attachment 85374 [details] Fix indentation in js functions.
Tony Chang
Comment 10 2011-03-10 15:46:37 PST
WebKit Review Bot
Comment 11 2011-03-10 17:33:21 PST
http://trac.webkit.org/changeset/80777 might have broken GTK Linux 32-bit Release
Note You need to log in before you can comment on or make changes to this bug.