[ 
https://issues.apache.org/jira/browse/FOP-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143843#comment-15143843
 ] 

Andreas L. Delmelle commented on FOP-2574:
------------------------------------------


I assume, by "wrapper", you refer to the inner block, and yes, I admit it does 
not automatically take care of the case where you have lines of varying width, 
where some are larger and others do fit.

As to your question, the answer is: it depends... :)

If that is the appropriate thing to do, then yes, but it is definitely not 
always that way. While a fo:block-container is _similar to_ a div, it is not 
really the same.

Simple example of where the behaviour differs is the "margin-left", or the 
XSL-FO correlate "start-indent".
Without actually rendering, try to take a stab at what the following should 
look like:

{code:language=xml}
  <fo:block-container margin-left="2em" border="1pt solid black" width="10em">
    <fo:block>MMMM</fo:block>
        <fo:block-container><fo:block>MMMM</fo:block></fo:block-container>
  </fo:block-container>
{code}

Now, try to render it with FOP to see if that matches your expectation...

However unexpected the result, be sure that we double-checked this with the 
XSL-FO WG, and the result produced by FOP is exactly as intended. All other FO 
processors at that time rendered it more as expected, but were actually 
non-compliant in their implementation.

As to this particular case, it is possible that FOP 2.1 is wrong, but this 
seems like a question for the XSL-FO WG rather than something we just want to 
copy from existing HTML renderers.

> Right alignment doesn't work correctly
> --------------------------------------
>
>                 Key: FOP-2574
>                 URL: https://issues.apache.org/jira/browse/FOP-2574
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1
>         Environment: Window 7 x64, Java build 1.8.0_72-b15
>            Reporter: Đorđe Zeljić
>
> Simple .fo example at 
> https://gist.github.com/zeljic/d83ecee965ce89b79c2e
> doesn't work the same in 1.1 and (2.0 or 2.1) versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to