This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7052 - [FO2.0Req] Border area
Summary: [FO2.0Req] Border area
Status: NEW
Alias: None
Product: XSLFO
Classification: Unclassified
Component: XSL-FO Requirements (show other bugs)
Version: 2.0 Working Draft
Hardware: PC Windows XP
: P2 enhancement
Target Milestone: ---
Assignee: Mailing list for comments on XSL (XSl-FO)
QA Contact: Mailing list for comments on XSL (XSl-FO)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 17:08 UTC by Jan Tosovsky
Modified: 2009-06-23 17:08 UTC (History)
0 users

See Also:


Attachments

Description Jan Tosovsky 2009-06-23 17:08:08 UTC
For automatic processing it is better to avoid specifying exact image size. The following code ensure proper sizing in most cases (no inline):

<fo:external-graphic src="url(image.png)" width="100%" height="auto" content-width="scale-to-fit" content-height="100%"/>

It scales down images if these don't fit available area, but retains original sizes if such area is larger. There is one drawback - it is impossible to draw border just around image itself - the border is applied to the content-size, not to the size of image (if it is smaller).

There is no way to do both at once - autosizing and bordering. 

It would be nice to have any attribute, which would override default behaviour and cause border rendering just around image itself.