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

Bug 354503

Summary: HtmlDocumentBuilder should not have hard coded style for Note, Panel, etc‏
Product: z_Archived Reporter: patrick.boisclair
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description patrick.boisclair CLA 2011-08-11 10:18:51 EDT
Build Identifier: 1.5

The BlockType ElementInfofor Note, Panel,Info Warning and Tip have hard coded style that are impossible to overwrite in a normal CSS style file.


Reproducible: Always

Steps to Reproduce:
1. Create a wiki page
2. Add a {tip:tiltle=Tip title here}This is a tip comment{tip}
3. Render in html
4. Inspect the html and notice the embedded style

<div class="tip" style="border: 1px solid #090;background-color: #dfd;margin: 20px;padding: 0px 6px 0px 6px;"><p><b>Tip title here</b></p><p>This is a tip comment</p></div>
Comment 1 patrick.boisclair CLA 2011-08-11 10:22:59 EDT
Care should be taken in finding a solution that probably does not change the current/default behavior. I am sure people are relying on the hard coded style to be there. However, this is just my opinion.
Comment 2 David Green CLA 2011-08-11 18:29:08 EDT
Thanks for the bug Patrick.  @HtmlDocumentBuilder.setSuppressBuiltInStyles(true)@ will prevent these CSS styles from being emitted.  This setting is also available from the wikitext-to-html Ant task.  Closing as WORKSFORME.  If the setting is not sufficient for you, feel free to state your use case and propose a solution.
Comment 3 David Green CLA 2011-08-11 18:29:09 EDT
Created attachment 201364 [details]
mylyn/context/zip