<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/ns/docbook" version="5.0">
<title>Unit test: figure.007</title>
  <para>This is a test for image dimension, when the viewport width is given in percent.</para>
  <para>The DocBook <tag><link xmlns:xlink="http://www.w3.org/1999/xlink"
        xlink:href="https://tdg.docbook.org/tdg/5.2/imagedata">imagedata</link> Element
      states:</tag></para>
  <itemizedlist>
    <listitem>
      <para>the viewport area defines the space reserved in the flow of content for the
        image.</para>
    </listitem>
    <listitem>
      <para>The viewport area is specified by the <emphasis>width</emphasis> and
          <emphasis>depth</emphasis> attributes.</para>
    </listitem>
    <listitem>
      <para>Viewport area dimensions expressed as a percentage are a percentage of the available
        area. For example, a width of 50% when an implementation is rendering in a column 6in wide
        is equivalent to specifying a width of 3in.</para>
    </listitem>
  </itemizedlist>
  <para>For this Document, we expect the with of the available area to be <link
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:href="https://xsltng.docbook.org/guide/2.6.1/p_nominal-page-width"
        ><code>$nominal-page-width</code>
    </link>, which defaults to <code>'6in'</code>. Specifying the viewport area with
      <code>@width='50%'</code> should result in a viewport area width of 3 inch or 288 pixel
    (assuming 96 pixel per inch).</para>

<figure>
  <title>The Duck</title>
  <mediaobject>
    <imageobject>
      <imagedata fileref="../media/duck.png" align="center" width="50%"/>
    </imageobject>
  </mediaobject>
</figure>

</article>

