Skip to content

Commit 6d8a95c

Browse files
committed
[css2] Images with intrinsic width but no intrinsic ratio now get that width
by default. Analogous for images with intrinsic height but no intrinsic ratio. (Issue 12) http://csswg.inkedblade.net/spec/css2.1#issue-12 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402800
1 parent b3b9008 commit 6d8a95c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

css2/visudet.src

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.121 2007-11-13 14:27:25 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.122 2007-11-13 14:47:38 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -317,6 +317,11 @@ doesn't itself depend on the replaced element's width, then the used
317317
value of 'width' is calculated from the constraint equation used for
318318
block-level, non-replaced elements in normal flow.
319319

320+
<p>Otherwise, if <span class="propinst-width">'width'</span> has a
321+
computed value of 'auto', and the element has an intrinsic width, then
322+
that intrinsic width is the used value of <span
323+
class="propinst-width">'width'</span>.
324+
320325
<p>Otherwise, if <span class="propinst-width">'width'</span> has a
321326
computed value of 'auto', but none of the conditions above are met,
322327
then the used value of <span class="propinst-width">'width'</span>
@@ -928,6 +933,11 @@ the used value of <span class="propinst-height">'height'</span> is:
928933

929934
<blockquote><p>(used width) / (intrinsic ratio)</blockquote>
930935

936+
<p>Otherwise, if <span class="propinst-height">'height'</span> has a
937+
computed value of 'auto', and the element has an intrinsic height,
938+
then that intrinsic height is the used value of <span
939+
class="propinst-height">'height'</span>.
940+
931941
<p>Otherwise, if <span class="propinst-height">'height'</span> has a
932942
computed value of 'auto', but none of the conditions above are met,
933943
then the used value of <span class="propinst-height">'height'</span>

0 commit comments

Comments
 (0)