Bug 208183 - display:none from a css style doesn't work when used in a highlight rule
Summary: display:none from a css style doesn't work when used in a highlight rule
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 01:19 EDT by Man Min Yan CLA
Modified: 2007-11-09 04:38 EST (History)
2 users (show)

See Also:


Attachments
Sample rptdesign which illustrates the problem. (76 bytes, text/css)
2007-10-31 01:19 EDT, Man Min Yan CLA
no flags Details
Sample rptdesign which illustrates the problem. (11.14 KB, application/xml)
2007-10-31 01:20 EDT, Man Min Yan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Man Min Yan CLA 2007-10-31 01:19:07 EDT
Created attachment 81685 [details]
Sample rptdesign which illustrates the problem.

Build ID: M20070921-1145

Steps To Reproduce:
1. Use a css stylesheet which includes a style rule which has display:none
2. In the report, create a highlight rule that uses the above style
3. Preview the report and you'll find that the item is still displayed


More information:
I've included a small test report that illustrates the problem. The report has 2 tables: the top table applies the style to the detail row to illustrate that display:none works in this case. The bottom table uses the same styles in the highlight rules of the detail row to show that display:none does not work there.

The test.css file contains the following:
.hidethis
{
  display:none;
}
.highlightthis
{
  background-color:yellow;
}
Comment 1 Man Min Yan CLA 2007-10-31 01:20:55 EDT
Created attachment 81686 [details]
Sample rptdesign which illustrates the problem.
Comment 2 Xuelan Li CLA 2007-11-01 01:26:02 EDT
Model did not support "display" property. That is, there is no corresponding property to it when Model loads external css style sheet. Therefore, we just ignore  it.