Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2578

Add support for the background shorthand property

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • fo/unqualified
    • None

    Description

      The following input doesn't display any image in the PDF generated by FOP:

      <fo:block role="html:div" background="url(&quot;http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif&quot;) 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>
      

      While the following does:

      <fo:block role="html:div" background-image="url(&quot;http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif&quot;)" 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>
      

      It would be nice if the "background" shortcut property could be supported:
      https://www.w3.org/wiki/CSS/Properties/background

      Thanks!

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            vmassol Vincent Massol

            Dates

              Created:
              Updated:

              Slack

                Issue deployment