source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/nominal.image.width.xml@ f6e9c180

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since f6e9c180 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.7 KB
Line 
1<refentry xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 version="5.0" xml:id="nominal.image.width">
7<refmeta>
8<refentrytitle>nominal.image.width</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>nominal.image.width</refname>
13<refpurpose>The nominal image width</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="nominal.image.width.frag">
18<xsl:param name="nominal.image.width" select="6 * $pixels.per.inch"/>
19</src:fragment>
20</refsynopsisdiv>
21
22<refsection><info><title>Description</title></info>
23
24<para>Graphic widths expressed as a percentage are problematic. In the
25following discussion, we speak of width and contentwidth, but
26the same issues apply to depth and contentdepth.</para>
27
28<para>A width of 50% means "half of the available space for the image."
29That's fine. But note that in HTML, this is a dynamic property and
30the image size will vary if the browser window is resized.</para>
31
32<para>A contentwidth of 50% means "half of the actual image width".
33But what does that mean if the stylesheets cannot assess the image's
34actual size? Treating this as a width of 50% is one possibility, but
35it produces behavior (dynamic scaling) that seems entirely out of
36character with the meaning.</para>
37
38<para>Instead, the stylesheets define a
39<parameter>nominal.image.width</parameter> and convert percentages to
40actual values based on that nominal size.</para>
41
42</refsection>
43</refentry>
Note: See TracBrowser for help on using the repository browser.