Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 431989

Summary: Background of the client document is always white
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.3   
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2014-04-04 05:50:52 EDT
With change https://git.eclipse.org/r/23320 we render all background properties as a single CSS property "background". ClientDocument has a hard-coded white background color set in Widget.appearances.js -> "client-document". As a result, the body background image set in rwt-index.html by the server is overwriten by the white background color of the ClientDocument. Do we really need this hard-coded white background of the ClientDocument?
The issue is reproducible with Workbench Demo.
Comment 1 Ivan Furnadjiev CLA 2014-04-08 09:32:39 EDT
Removing the hard-coded white background color from Widget.appearances.js -> "client-document" solves the problem in all browsers, but IE. If no background color is set, we render transparent color (rgba(0,0,0,0)) in IE, which again overwrites the image.
Note: Currently, background image is set as "background" *attribute* of the body tag, which is deprecated [1]. We should *not* use the attribute, but CSS style.

[1] http://www.w3.org/TR/html4/index/attributes.html
Comment 2 Ivan Furnadjiev CLA 2014-04-10 06:43:35 EDT
Fixed with change https://git.eclipse.org/r/24653.