You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/03/19 20:36:08 UTC

DO NOT REPLY [Bug 41894] New: - fo:block-container: percentage-lengths + width/height->ipd/bpd

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894

           Summary: fo:block-container: percentage-lengths + width/height-
                    >ipd/bpd
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: a_l.delmelle@pandora.be


Reported by Daniel Noll on fop-users@

The FO in attachment currently fails w/ FOP trunk, because the percentages for top/right/bottom/left 
are not resolved correctly.

I think I've found a fix, patch also attached for reference.

Can anyone confirm that the output PDF is the result one would expect? I think it's a correct 
interpretation of the Rec., but I'm not sure. With my fix, the percentages are based on the height/width 
of the outer block-container (which would generate the nearest ancestor reference area?)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894





------- Additional Comments From a_l.delmelle@pandora.be  2007-03-19 12:39 -------
Created an attachment (id=19746)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19746&action=view)
PDF result after applying the patch


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894





------- Additional Comments From a_l.delmelle@pandora.be  2007-04-05 12:54 -------
(In reply to comment #4)
> I think this is a step in the right direction, but I believe the PercentBase
> shouldn't be LengthBase.CONTAINING_REFAREA_HEIGHT but
> LengthBase.CONTAINING_BLOCK_HEIGHT. i-p-d, b-p-d, width and height are all using
> CONTAINING_BLOCK_WIDTH/HEIGHT as per the spec. top, left etc. are also defined
> in terms of the containing block, not the nearest ancestor reference area.

Aaah, OK, now I think I get it.
The spec (I only checked 1.1) explicitly alters the original CSS wording 'containing block' to 'nearest 
ancestor reference area' for interpreting top/left/bottom/right (and in the absolute-position property), 
but only where it comes to the positioning (100% to the left of /what/?), not in the definition of the 
percent-base (100% of /what/ to the left of ...?)

Subtle one, I must say. :-)

I'll adapt shortly.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894





------- Additional Comments From a_l.delmelle@pandora.be  2007-03-19 12:38 -------
Created an attachment (id=19745)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19745&action=view)
proposed fix


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894


a_l.delmelle@pandora.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19744|text/xml                    |text/plain
          mime type|                            |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894





------- Additional Comments From a_l.delmelle@pandora.be  2007-03-19 12:37 -------
Created an attachment (id=19744)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19744&action=view)
source FO


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41894] - fo:block-container: percentage-lengths + width/height->ipd/bpd

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41894





------- Additional Comments From jeremias@apache.org  2007-04-04 02:56 -------
I think this is a step in the right direction, but I believe the PercentBase
shouldn't be LengthBase.CONTAINING_REFAREA_HEIGHT but
LengthBase.CONTAINING_BLOCK_HEIGHT. i-p-d, b-p-d, width and height are all using
CONTAINING_BLOCK_WIDTH/HEIGHT as per the spec. top, left etc. are also defined
in terms of the containing block, not the nearest ancestor reference area.

In your example, that would place all three inner b-cs at the upper edge of the
block-container's content area because the block they are enclosed in doesn't
have a height in this case. Only if you remove the block between the inner and
outer b-c will the vertical positioning work again. It's what I would expect in
terms of behaviour.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.