Skip to content

Commit a0b32f4

Browse files
committed
[css-images] Some replaced elements (such as form controls) have an intrinsic width and height, but no aspect ratio. Fixes w3c#1044. Also linkify some nearby terms.
1 parent 9cbe2c1 commit a0b32f4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

css-images/Overview.bs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,13 +1091,17 @@ Object-Sizing Terminology {#sizing-terms}
10911091
CSS does not define how the intrinsic dimensions are found in general.
10921092

10931093
Raster images are an example of an object with all three intrinsic dimensions.
1094-
SVG images designed to scale might have only an intrinsic aspect ratio;
1095-
SVG images can also be created with only an intrinsic width or height.
1094+
SVG images designed to scale might have only an <a>intrinsic aspect ratio</a>;
1095+
SVG images can also be created with only an <a>intrinsic width</a> or <a lt="intrinsic height">height</a>.
10961096
CSS gradients, defined in this specification, are an example of an object with no intrinsic dimensions at all.
10971097
Another example of this is embedded documents,
10981098
such as the <code>&lt;iframe></code> element in HTML.
1099-
An object cannot have only two intrinsic dimensions,
1099+
In general, images cannot have only two intrinsic dimensions,
11001100
as any two automatically define the third.
1101+
However some types of replaced elements,
1102+
such as form controls,
1103+
can have an <a>intrinsic width</a> and an <a>intrinsic height</a>,
1104+
but no <a>intrinsic aspect ratio</a>.
11011105

11021106
If an object (such as an icon) has multiple sizes,
11031107
then the largest size (by area) is taken as its intrinsic size.
@@ -1107,8 +1111,7 @@ Object-Sizing Terminology {#sizing-terms}
11071111
Determine this by seeing which aspect ratio produces the largest area
11081112
when fitting it within the <a>default object size</a> using a <a>contain constraint</a> fit;
11091113
if multiple sizes tie for the largest area,
1110-
the wider size is chosen as its intrinsic size.
1111-
1114+
the widest size is chosen as its intrinsic size.
11121115

11131116
<dt><dfn>specified size</dfn>
11141117
<dd>

0 commit comments

Comments
 (0)