[
https://issues.apache.org/jira/browse/FOP-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152712#comment-15152712
]
Vincent Massol commented on FOP-2578:
-------------------------------------
Hi Glenn. Thanks for your reply.
My use case is that we're using FOP on the XWiki project (http://xwiki.org) for
exporting wiki pages (HTML) to PDF. And inside the wiki pages users can provide
HTML syntax. And users often use "background" instead of the various
"background-*" properties. So yes, we could transform the single "background"
property into the various discrete elements (in our XHTML2FO.xsl stylesheet)
but I though it would be nicer if the FOP project would support it OOB since
it's so common. It would certainly make it easier for users of the FOP library
to get that supported.
We're also hitting a similar issue with FOP-1423.Similarly, we could convert
from "background-position" to "background-position-horizontal" and
"background-position-vertical" in our pre-processing (our XSLT) but it would
make the FOP library so much easier to use if it were done by FOP :)
Thanks for this nice project!
> Add support for the CSS "background" property
> ---------------------------------------------
>
> Key: FOP-2578
> URL: https://issues.apache.org/jira/browse/FOP-2578
> Project: FOP
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: Vincent Massol
>
> The following input doesn't display any image in the PDF generated by FOP:
> {code}
> <fo:block role="html:div"
> background="url("http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif")
> no-repeat right center">
> <fo:block space-before="0.8em" space-after="0.8em" text-indent="0em"
> role="html:p">hello<fo:block role="html:br"/>world</fo:block>
> </fo:block>
> </fo:block>
> {code}
> While the following does:
> {code}
> <fo:block role="html:div"
> background-image="url("http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif")"
> background-repeat="no-repeat" background-position="right center">
> <fo:block space-before="0.8em" space-after="0.8em" text-indent="0em"
> role="html:p">hello<fo:block role="html:br"/>world</fo:block>
> </fo:block>
> </fo:block>
> {code}
> It would be nice if the "background" shortcut property could be supported:
> https://www.w3.org/wiki/CSS/Properties/background
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)