Bug 28079 - Test / Verification required for fast/forms/menulist-style-color.html
Summary: Test / Verification required for fast/forms/menulist-style-color.html
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 11:57 PDT by Mike Fenton
Modified: 2009-12-27 18:10 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Fenton 2009-08-07 11:57:35 PDT
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.
Comment 1 Maciej Stachowiak 2009-12-27 18:10:29 PST
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.