This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 118178

Summary: Problems with CSS padding
Product: obsolete Reporter: _ krystyna <krystyna>
Component: visualwebAssignee: Peter Zavadsky <pzavadsky>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Other   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test project
adjusted project with the Page2 better showing the problem

Description _ krystyna 2007-10-09 03:23:31 UTC
NetBeans IDE Dev (Build 200710081200)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04


This test fails to show green bar in designer. Bar renders in preview browser and at runtime.
Use the attached project. This test is from http://www.w3.org/Style/CSS/Test/CSS2.1/20061011/t0804-c5506-ipadn-t-00-b-
a.xht and requires Ahem font to be installed - see www.hixie.ch/resources/fonts/
Comment 1 _ krystyna 2007-10-09 03:24:35 UTC
Created attachment 50460 [details]
Test project
Comment 2 Peter Zavadsky 2007-10-10 00:01:58 UTC
Yes, it is there, I need to have a closer look at it.
Comment 3 Peter Zavadsky 2007-10-10 23:24:05 UTC
Also here the html was copied into webjsfui:form, that is incorrect, I adjusted the example.

The first problem seems to be here, the size of the font used in the div. In the designer the batik parses the size to
1.0, which makes the line virtually invisible.

But the browser shows it larger, looking into it.
Comment 4 Peter Zavadsky 2007-10-11 00:08:11 UTC
In the example there is a mistake in the style, it provides:
font: 20px/1 Ahem

it should be:
font: 20px Ahem

After fixing that, one can see the problem, that the first row is not green as expected.
Comment 5 Peter Zavadsky 2007-10-11 00:11:21 UTC
Created attachment 50639 [details]
adjusted project with the Page2 better showing the problem
Comment 6 Peter Zavadsky 2007-10-11 00:13:07 UTC
Also discovered issue with refreshing (the transient style were kept), fixing that part first:
Checking in visualweb/insync/src/org/netbeans/modules/visualweb/insync/models/FacesModel.java;
/cvs/visualweb/insync/src/org/netbeans/modules/visualweb/insync/models/FacesModel.java,v  <--  FacesModel.java
new revision: 1.23; previous revision: 1.22
done
Comment 7 _ krystyna 2007-10-11 00:29:48 UTC
The construction :
font: 20px/1 Ahem
is valid and the "1" refers to <line-height>
You changed it because we do not support that?
Comment 8 Peter Zavadsky 2007-10-11 00:31:26 UTC
Now we can see that the padding does continue to the previous row to overlap the letter.
Currently this implementation doesn't count with this kind of overlap. I also think this case is very minor, and very
unusual corner case. Please, downgrade this.
Comment 9 Peter Zavadsky 2007-10-11 00:39:46 UTC
Krys, where did you find that construct is valid, I was trying to look into the spec, but didn't find anything like
that. It might be valid, I just don't know about that. 
In any case, the parser which we use (batik) doesn't support it. Also that would be a separate issue.
Comment 10 Peter Zavadsky 2007-10-11 00:48:29 UTC
This issue is about that current implementation layout doesn't take into account padding, borders, margins of  parts of
texts in line (span typically).
Comment 11 Peter Zavadsky 2007-10-11 00:49:14 UTC
*** Issue 118274 has been marked as a duplicate of this issue. ***
Comment 12 Peter Zavadsky 2007-10-11 01:00:31 UTC
*** Issue 118296 has been marked as a duplicate of this issue. ***
Comment 13 _ krystyna 2007-10-11 01:30:52 UTC
Peter,CSS2.1 spec, search at:
15.8 Shorthand font property: the 'font' property
http://www.w3.org/TR/CSS21/fonts.html
Comment 14 _ krystyna 2007-10-11 01:46:26 UTC
Downgrading
Comment 15 Peter Zavadsky 2007-10-11 01:57:23 UTC
Yes, the font thing is there, please, file a separate issue for that one (low priority please).
Comment 16 Peter Zavadsky 2008-11-17 21:49:52 UTC
There is no current plan to resolve it. Passing to 'later'.