[Webkit-unassigned] [Bug 13834] Checkboxes and radio buttons don't see CSS background color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 24 13:11:59 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=13834


aravind.akella at nokia.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #79961|                            |review?, commit-queue?
               Flag|                            |




--- Comment #7 from aravind.akella at nokia.com  2011-01-24 13:11:59 PST ---
Created an attachment (id=79961)
 --> (https://bugs.webkit.org/attachment.cgi?id=79961&action=review)
Patch for Qtwebkit

This is a qt specific fix for enabling background color to checkboxes & radio buttons.
Setting the palette on the QStyleoption which is passed on to QStyle::drawControl()        
Currently background color is supported in windows,plastique styles. Other styles like 
gtk,qts60,motif etc. don't support this. Running QtTestBrowser with -style 
windows/plastique option shows the background color for the checkbox.

W3C specification states background-color sets the background color of an element, and 
this property applies to all elements.
(see http://www.w3.org/TR/CSS21/colors.html#propdef-background-color)

Opera and IE are currently the only browsers that attempt to support this property for 
checkboxes and radio buttons.  Opera fills the checkbox rectangle with the color specified 
in background-color property, whereas IE creates a colored border around the checkbox 
rectangle using the background-color. With this fix QtWebkit based browsers (with 
windows/plastique styles) will behave like opera.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list