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

Bug 327957

Summary: padding values in CSS file (via Use CSS File) not propagated from .table element
Product: z_Archived Reporter: Richard A. Polunsky <rpolunsky>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, omk8421
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
TESTBUG.CSS with .table element defined
none
TESTBUG2.CSS with .table-detail element also defined
none
My rptdesign file none

Description Richard A. Polunsky CLA 2010-10-15 17:05:12 EDT
Build Identifier: 3.4.1 (irrelevant since using the BIRT RCP)

Using a CSS file with the .table element defined, padding values are ignored.  If padding is defined at the .table-detail element, those values are recognized in HTML output but not PDF output.  Observed in 2.5.0, 2.5.2 and 2.6.1.  Values defined at .table element should by documentation propagate to table-header and table-detail.

Reproducible: Always

Steps to Reproduce:
1) Remove All Templates

2) Add back blank_report template after removing the 'report' style definition

3) Create a new report

   * Note that crosstab and crosstab-cell styles are defined in the new report;
     Where do these come from?

4) Use the Classic Models data source and Orders for the dataset;
   Drag the dataset into the report canvas

5) Check the padding in the first detail cell: 1 point all around.
   Inspect Advanced Properties: this value is listed under "Box"
   and shows as 1pt : Inherited.  Inherited from where?

6) With the report, do a Use TESTBUG.CSS
   Note that the padding does not change in the designer.
   Note that the padding from the CSS file is not reflected
   either in run to HTML or run to PDF.

7) Change the CSS file to TESTBUG2.CSS (where table-detail is defined)
   Refresh the CSS file
   Note that the padding in the detail row now changes in HTML only.

SUMMARY

CSS interpretation in the .table element is either failing or not propagating.
Comment 1 Richard A. Polunsky CLA 2010-10-15 17:05:59 EDT
Created attachment 181015 [details]
TESTBUG.CSS with .table element defined
Comment 2 Richard A. Polunsky CLA 2010-10-15 17:06:24 EDT
Created attachment 181016 [details]
TESTBUG2.CSS with .table-detail element also defined
Comment 3 Richard A. Polunsky CLA 2010-10-15 17:06:53 EDT
Created attachment 181017 [details]
My rptdesign file
Comment 4 Julien CLA 2010-10-26 20:16:46 EDT
I get the very same issue with all kind of elements (table, cells, grid, etc). For instance, the following CSS definition won't do anything:

.grid {
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}

There will always be the default 1pt padding, unless you explicitly change it to zero using the property panel within the design editor.

Let us know if we can test anything for you.
Julien