[jira] [Commented] (FOP-2578) Add support for the background shorthand property

2016-02-18 Thread Glenn Adams (JIRA)

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

Glenn Adams commented on FOP-2578:
--

yes, i agree this is no more than a one day project (coding plus writing tests)

> Add support for the background shorthand property
> -
>
> Key: FOP-2578
> URL: https://issues.apache.org/jira/browse/FOP-2578
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 2.1
>Reporter: Vincent Massol
>
> The following input doesn't display any image in the PDF generated by FOP:
> {code}
>  background="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)
>  no-repeat right center">
>role="html:p">helloworld
>
> 
> {code}
> While the following does:
> {code}
>  background-image="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)"
>  background-repeat="no-repeat" background-position="right center">
>role="html:p">helloworld
>
> 
> {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)


[jira] [Commented] (FOP-2578) Add support for the background shorthand property

2016-02-18 Thread Andreas L. Delmelle (JIRA)

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

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

Actually, I don't think it is that difficult to add, given that, apart from 
background-attachment, all the other base or shorthand properties are already 
implemented. Not sure why it was never done. Perhaps simply because there was 
not enough demand, and priorities and such...

For someone looking at taking a crack at this, the existing pair 
{{o.a.f.fo.properties.FontShorthandParser}} and 
{{o.a.f.fo.properties.FontShorthandProperty}} can serve to get some idea on how 
to implement such shorthands. 
The only part I am a bit uncertain about is the fact that this is actually a 
'shorthand shorthand' if you will (i.e. background-position is in itself 
already a shorthand). Not sure how much complexity that would add.

Just my 2 cents...

> Add support for the background shorthand property
> -
>
> Key: FOP-2578
> URL: https://issues.apache.org/jira/browse/FOP-2578
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 2.1
>Reporter: Vincent Massol
>
> The following input doesn't display any image in the PDF generated by FOP:
> {code}
>  background="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)
>  no-repeat right center">
>role="html:p">helloworld
>
> 
> {code}
> While the following does:
> {code}
>  background-image="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)"
>  background-repeat="no-repeat" background-position="right center">
>role="html:p">helloworld
>
> 
> {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)


[jira] [Commented] (FOP-2578) Add support for the background shorthand property

2016-02-18 Thread Glenn Adams (JIRA)

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

Glenn Adams commented on FOP-2578:
--

ok, thanks; feel free to post a patch that adds this support

> Add support for the background shorthand property
> -
>
> Key: FOP-2578
> URL: https://issues.apache.org/jira/browse/FOP-2578
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 2.1
>Reporter: Vincent Massol
>
> The following input doesn't display any image in the PDF generated by FOP:
> {code}
>  background="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)
>  no-repeat right center">
>role="html:p">helloworld
>
> 
> {code}
> While the following does:
> {code}
>  background-image="url(http://semiticsoft.com/resources/front_end/images/Icon-Globe-Small.gif;)"
>  background-repeat="no-repeat" background-position="right center">
>role="html:p">helloworld
>
> 
> {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)