You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>In the absence of more specific rules, an object's
1152
-
<i>intrinsic dimensions</i> are resolved to a <i>concrete object size</i> as
1153
-
follows:</p>
1151
+
<p>In the absence of more specific rules, an object's <i>intrinsic dimensions</i> are resolved to a <i>concrete object size</i> as follows:</p>
1154
1152
1155
1153
<ul>
1156
-
<li>If the <i>specified size</i> is a definite width and height, the
1157
-
<i>concrete object size</i> is given that width and height.</li>
1154
+
<li>If the <i>specified size</i> is a definite width and height, the <i>concrete object size</i> is given that width and height.</li>
1158
1155
1159
-
<li>If the <i>specified size</i> has only a width or height, but not both,
1160
-
then the <i>concrete object size</i> is given that specified width or height.
1161
-
The other dimension is calculated as follows:
1156
+
<li>If the <i>specified size</i> has only a width or height, but not both, then the <i>concrete object size</i> is given that specified width or height. The other dimension is calculated as follows:
1162
1157
1163
1158
<ol>
1164
-
<li>If the object has an <i>intrinsic aspect ratio</i>, the missing
1165
-
dimension of the <i>concrete object size</i> is calculated using the
1166
-
<i>intrinsic aspect-ratio</i> and the present dimension.</li>
1159
+
<li>If the object has an <i>intrinsic aspect ratio</i>, the missing dimension of the <i>concrete object size</i> is calculated using the <i>intrinsic aspect-ratio</i> and the present dimension.</li>
1167
1160
1168
-
<li>Otherwise, if the missing dimension is present in the object's
1169
-
<i>intrinsic dimensions</i>, the missing dimension is taken from the
1170
-
object's <i>intrinsic dimensions</i>.</li>
1161
+
<li>Otherwise, if the missing dimension is present in the object's <i>intrinsic dimensions</i>, the missing dimension is taken from the object's <i>intrinsic dimensions</i>.</li>
1171
1162
1172
-
<li>Otherwise, the missing dimension of the <i>concrete object size</i>
1173
-
is taken from the <i>default object size</i>.</li>
1163
+
<li>Otherwise, the missing dimension of the <i>concrete object size</i> is taken from the <i>default object size</i>.</li>
1174
1164
</ol>
1175
1165
</li>
1176
1166
1177
-
<li>If the <i>specified size</i> has neither a definite width nor height, and
1178
-
has no additional contraints, the dimensions of the <i>concrete object size</i>
1179
-
are calculated as follows:
1167
+
<li>If the <i>specified size</i> has neither a definite width nor height, and has no additional contraints, the dimensions of the <i>concrete object size</i> are calculated as follows:
1180
1168
1181
1169
<ol>
1182
-
<li>If the object has only an <i>intrinsic aspect ratio</i>, the
1183
-
<i>concrete object size</i> must have that aspect ratio, and additionally
1184
-
be as large as possible without either its height or width exceeding
1185
-
the height or width of the <i>default object size</i>. Otherwise,
1186
-
the width and height of the <i>concrete object size</i> is the same
1187
-
as the object's <i>intrinsic width</i> and <i>intrinsic height</i>,
1188
-
if they exist.</li>
1189
-
1190
-
<li>If the <i>concrete object size</i> is still missing a width or height,
1191
-
and the object has an <i>intrinsic aspect ratio</i>, the missing dimension
1192
-
is calculated from the present dimension and the <i>intrinsic aspect ratio</i>.
1193
-
Otherwise, each missing dimension is taken from the <i>default object size</i>.</li>
1170
+
<li>If the object has only an <i>intrinsic aspect ratio</i>, the <i>concrete object size</i> must have that aspect ratio, and additionally be as large as possible without either its height or width exceeding the height or width of the <i>default object size</i>. Otherwise, the width and height of the <i>concrete object size</i> is the same as the object's <i>intrinsic width</i> and <i>intrinsic height</i>, if they exist.</li>
1171
+
1172
+
<li>If the <i>concrete object size</i> is still missing a width or height, and the object has an <i>intrinsic aspect ratio</i>, the missing dimension is calculated from the present dimension and the <i>intrinsic aspect ratio</i>. Otherwise, each missing dimension is taken from the <i>default object size</i>.</li>
1194
1173
</ol>
1195
1174
</li>
1196
1175
</ul>
1197
1176
1198
-
<p>If the <i>specified size</i> has additional constraints, the
1199
-
<i>concrete object size</i> must be sized to satisfy those constraints.
1200
-
For example, the 'min-width', 'min-height', 'max-width', and 'max-height'
1201
-
properties specify slightly more complex handling for sizing replaced
1202
-
elements, and ''background-repeat: round'' can further adjust
1203
-
the size calculated by 'background-size' so that the image fits a whole
1204
-
number of times into the background positioning area.</p>
1177
+
<p>If the <i>specified size</i> has additional constraints, the <i>concrete object size</i> must be sized to satisfy those constraints. For example, the 'min-width', 'min-height', 'max-width', and 'max-height'properties specify slightly more complex handling for sizing replaced elements, and ''background-repeat: round'' can further adjust the size calculated by 'background-size' so that the image fits a whole number of times into the background positioning area.</p>
0 commit comments