<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7052</bug_id>
          
          <creation_ts>2009-06-23 17:08:08 +0000</creation_ts>
          <short_desc>[FO2.0Req] Border area</short_desc>
          <delta_ts>2009-06-23 17:08:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XSLFO</product>
          <component>XSL-FO Requirements</component>
          <version>2.0 Working Draft</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Tosovsky">j.tosovsky</reporter>
          <assigned_to name="Mailing list for comments on XSL (XSl-FO)">xsl-editors</assigned_to>
          
          
          <qa_contact name="Mailing list for comments on XSL (XSl-FO)">xsl-editors</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25676</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Tosovsky">j.tosovsky</who>
    <bug_when>2009-06-23 17:08:08 +0000</bug_when>
    <thetext>For automatic processing it is better to avoid specifying exact image size. The following code ensure proper sizing in most cases (no inline):

&lt;fo:external-graphic src=&quot;url(image.png)&quot; width=&quot;100%&quot; height=&quot;auto&quot; content-width=&quot;scale-to-fit&quot; content-height=&quot;100%&quot;/&gt;

It scales down images if these don&apos;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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>