[
https://issues.apache.org/jira/browse/FOP-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065196#comment-18065196
]
Joao Goncalves commented on FOP-3289:
-------------------------------------
I'm not sure how easy it would be to add support for the clear attribute. I saw
on the example you added that the clear attribute is on the float. Should it
not be on the block (w1aab1b1)?
I did find a workaround if you need it. I've added the workaround to your FO
and uploaded it here.
[^test_originalFixed.fo]
> The float related attribute "clear" should be supported
> -------------------------------------------------------
>
> Key: FOP-3289
> URL: https://issues.apache.org/jira/browse/FOP-3289
> Project: FOP
> Issue Type: Improvement
> Affects Versions: 2.11
> Reporter: Daniel Norberg
> Priority: Major
> Attachments: image-2026-01-12-14-50-33-854.png, image.png, test.fo,
> test_originalFixed.fo
>
>
> Currently, as stated on the home page, the float related attribute "clear" is
> not supported in FOP. This creates issues if you, for example, want to start
> a new chapter on the same page but the content flowing next to the float
> object in the previous chapter has not reached the end of the float object.
> Here is a screenshot showing the issue. I want chapter 2 to start after the
> end of the float image; chapter 2 should not be affected by the float image
> in the previous chapter. This would be possible if the clear attribute was
> supported.
> !image-2026-01-12-14-50-33-854.png!
> I have attached a simple FO (test.fo) and an image (image.png) that can be
> used for reproducing this example.
> https://xmlgraphics.apache.org/fop/fo.html#floats
--
This message was sent by Atlassian Jira
(v8.20.10#820010)