Bug 63161

Summary: Canvas in layer obscures overlapping span
Product: WebKit Reporter: Matthew Delaney <mdelaney7>
Component: CanvasAssignee: Matthew Delaney <mdelaney7>
Status: RESOLVED FIXED    
Severity: Normal CC: mdelaney7, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch oliver: review+

Matthew Delaney
Reported 2011-06-22 11:29:41 PDT
I'm attaching a patch with accompanying testcase that should show the span atop the canvas. Without the patch, if the canvas is in its own compositing layer then it will be incorrectly rendered atop the span.
Attachments
Patch (23.65 KB, patch)
2011-06-22 11:36 PDT, Matthew Delaney
no flags
Patch (19.64 KB, patch)
2011-06-22 12:34 PDT, Matthew Delaney
no flags
Patch (19.68 KB, patch)
2011-06-22 12:38 PDT, Matthew Delaney
no flags
Patch (19.92 KB, patch)
2011-06-22 13:24 PDT, Matthew Delaney
no flags
Patch (19.76 KB, patch)
2011-06-22 13:37 PDT, Matthew Delaney
oliver: review+
Matthew Delaney
Comment 1 2011-06-22 11:36:02 PDT
Simon Fraser (smfr)
Comment 2 2011-06-22 11:41:07 PDT
Comment on attachment 98208 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98208&action=review > LayoutTests/compositing/layer-creation/spanOverlapsCanvas.html:34 > + html, body { > + width: 480px; > + height: 640px; > + } > + body { > + margin :0px; > + padding: 0px; > + } > + #headerbar { > + width: 200px; > + height: 40px; > + background-color: #333333; > + position: absolute; > + } > + #testaction { > + color: #FFFFFF; > + } This CSS is weirdly indented. > LayoutTests/compositing/layer-creation/spanOverlapsCanvas.html:38 > + <div id="headerbar"><span id='testlabel'></span><span id='testaction'>This text should be visible.</a></div> Please avoid text in the pixel output. Also, avoid scrollbars in the pixel output. I also think this could use layerTreeAsText(). However, you'll have to deal with different platforms having different results.
Matthew Delaney
Comment 3 2011-06-22 12:34:30 PDT
Matthew Delaney
Comment 4 2011-06-22 12:37:06 PDT
Uggh, CSS is still junky indented. Fixing again now.
Matthew Delaney
Comment 5 2011-06-22 12:38:44 PDT
Simon Fraser (smfr)
Comment 6 2011-06-22 13:05:47 PDT
Comment on attachment 98218 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98218&action=review > LayoutTests/compositing/layer-creation/spanOverlapsCanvas.html:25 > + background-color: #FF0000; Please use green, not red (and use names, not hex values for common colors).
Matthew Delaney
Comment 7 2011-06-22 13:24:06 PDT
Matthew Delaney
Comment 8 2011-06-22 13:28:32 PDT
Read that comment on color values backwards - definitely need more sleep...New patch it a second.
Matthew Delaney
Comment 9 2011-06-22 13:37:11 PDT
Matthew Delaney
Comment 10 2011-06-22 13:39:05 PDT
Note You need to log in before you can comment on or make changes to this bug.