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 "Glenn Adams (JIRA)" <ji...@apache.org> on 2016/02/18 18:26:18 UTC
[jira] [Commented] (FOP-2578) Add support for the CSS "background"
property
[ https://issues.apache.org/jira/browse/FOP-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152669#comment-15152669 ]
Glenn Adams commented on FOP-2578:
----------------------------------
As you probably realize, the 'background' property is merely syntactic sugar, a shorthand. As such, its support does not add any new functionality or expressiveness that is not already supported. As is noted in [1], this property is not supported.
Could you provide a detailed justification of your request to add this support?
[1] https://xmlgraphics.apache.org/fop/compliance.html
> 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)