Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327957 - padding values in CSS file (via Use CSS File) not propagated from .table element
Summary: padding values in CSS file (via Use CSS File) not propagated from .table element
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 17:05 EDT by Richard A. Polunsky CLA
Modified: 2010-10-26 20:16 EDT (History)
2 users (show)

See Also:


Attachments
TESTBUG.CSS with .table element defined (649 bytes, text/plain)
2010-10-15 17:05 EDT, Richard A. Polunsky CLA
no flags Details
TESTBUG2.CSS with .table-detail element also defined (689 bytes, text/plain)
2010-10-15 17:06 EDT, Richard A. Polunsky CLA
no flags Details
My rptdesign file (22.07 KB, text/plain)
2010-10-15 17:06 EDT, Richard A. Polunsky CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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