Logging separate bug as requested:
related to same page as http://bugs.webkit.org/show_bug.cgi?id=13802 :
A small detail on the same code and page: it looks like radio buttons and checkboxes (you can see that behavior on the same page in URL in "spoken languages" after clicking on register without filling-in anything) are not taking in account the background color (red), as some other browsers do. Opera 9's behavior seems the correct one.
Test html code here as requested:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<input type="radio" style="background:red;" name="test" />test radio<br />
<input type="checkbox" style="background:red;" name="test" />test radio<br />
<input type="radio" style="background-color:red;" name="test" />test radio<br />
<input type="checkbox" style="background-color:red;" name="test" />test radio<br />
<input type="radio" style="background:red;width:40px;height:40px;" name="test" />test radio<br />
<input type="checkbox" style="background:red;width:40px;height:40px;" name="test" />test radio<br />
(wow, thanks: cool for already fixing the previous one. I actually checked and wow all the bugs i previously reported through the safari feedback form seem fixed).
Beat, please add test cases to the bug as attachments. It's much easier for us to test them that way. Thanks!
Created attachment 14677 [details]
Test case from Comment #0
Confirmed with a local debug build of WebKit r21639 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
Works in Opera 9.10.
Does not work in Firefox 18.104.22.168.
No news on it since so many years ... too bad.
This issues seems to be related to another one : https://bugs.webkit.org/show_bug.cgi?id=9846
Some one still looking at this issue ?
I'm looking into this, can someone assign to me? I don't have permissions.
Created attachment 79961 [details]
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.
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.
As far as I can tell this report is Qt specific? Or do you believe all platforms behave "wrongly" here.
Apple's Mac port certainly does not respect the background color on those checkboxes. But I think this might be intentional.
I guess this isn't a Qt-specific bug and the posted patch is thus wrong.
Do FF and IE respect background color in the test case?
Comment on attachment 79961 [details]
Patch for Qtwebkit
We should either fix all platforms or none of them. It's not clear that this change is desired. Please get one of the (CC'd) CSS experts to chime in.
FF and IE don't handle the property well.
IE tries to apply it but, instead of filling the checkbox, it creates a colored border around it. And FF simply ignores it.
So far, Opera is the only browser we've tested that fills the checkbox with the background-color as expected. We think current behavior is wrong and Opera's treatment of this prop is correct, but would be nice to get feedback from CSS experts too. Is this fix desired for all platforms?
Some backstory on control styling:
See also: bug 65843.