Bug 28079
Summary: | Test / Verification required for fast/forms/menulist-style-color.html | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mike Fenton <mifenton> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | mjs |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | All |
Mike Fenton
This new test is currently being skipped for both windows and mac which generate the same results file.
The current results generated are:
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderMenuList {SELECT} at (2,2) size 70x18 [bgcolor=#FFFFFF]
RenderBlock (anonymous) at (0,0) size 70x18
RenderText at (8,2) size 39x13
text run at (8,2) width 39: "Default"
RenderText {#text} at (74,1) size 4x18
text run at (74,1) width 4: " "
RenderMenuList {SELECT} at (80,2) size 52x18 [bgcolor=#FFFFFF]
RenderBlock (anonymous) at (0,0) size 52x18
RenderText at (8,2) size 21x13
text run at (8,2) width 21: "Red"
RenderText {#text} at (134,1) size 4x18
text run at (134,1) width 4: " "
RenderMenuList {SELECT} at (140,2) size 121x18 [bgcolor=#008000] [border: (1px solid #000000)]
RenderBlock (anonymous) at (1,1) size 119x16
RenderText at (8,1) size 90x13
text run at (8,1) width 90: "Default on green"
RenderText {#text} at (263,1) size 4x18
text run at (263,1) width 4: " "
RenderMenuList {SELECT} at (269,2) size 103x18 [color=#FF0000] [bgcolor=#008000] [border: (1px solid #FF0000)]
RenderBlock (anonymous) at (1,1) size 101x16
RenderText at (8,1) size 72x13
text run at (8,1) width 72: "Red on green"
RenderText {#text} at (0,0) size 0x0
The desired behavior should be verified on these platforms and the results added when is is confirmed that each object is drawn correctly. From the DRT output above, it appears that the red menulist is not being drawn in red.
HTML code
<select style="color:red">
<option>Red</option>
</select>
DRT Output
RenderMenuList {SELECT} at (80,2) size 52x18 [bgcolor=#FFFFFF]
RenderBlock (anonymous) at (0,0) size 52x18
RenderText at (8,2) size 21x13
text run at (8,2) width 21: "Red"
However, the color is correctly applied when done in conjunction with the background color. It should be verified whether this is drawing incorrectly, or whether the DRT output is at fault.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Maciej Stachowiak
The text indeed does not draw as red in this case, because if only the foreground color is changed, we choose to draw a standard pop-up menu and ignore all styles. That might be a bug, but in the meantime it seems useful to test the remaining results.