Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: third_party/docbook-xsl-1.78.0/params/nominal.image.width.xml

Issue 1394993002: Doing some cleanup. (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
25 following discussion, we speak of width and contentwidth, but
26 the same issues apply to depth and contentdepth.</para>
27
28 <para>A width of 50% means "half of the available space for the image."
29 That's fine. But note that in HTML, this is a dynamic property and
30 the 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".
33 But what does that mean if the stylesheets cannot assess the image's
34 actual size? Treating this as a width of 50% is one possibility, but
35 it produces behavior (dynamic scaling) that seems entirely out of
36 character with the meaning.</para>
37
38 <para>Instead, the stylesheets define a
39 <parameter>nominal.image.width</parameter> and convert percentages to
40 actual values based on that nominal size.</para>
41
42 </refsection>
43 </refentry>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698