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
#. Each :html:`<figure>` element has a unique :html:`id` attribute.
1229
1236
1230
1237
#. That attribute's name is :value:`illustration-` followed by :value:`-N`, where :value:`N` is the sequence number of the element starting at :value:`1`.
@@ -1275,24 +1282,27 @@ Images
1275
1282
1276
1283
#. An optional :html:`<figcaption>` element containing a concise context-dependent caption may follow the :html:`<img>` element within a :html:`<figure>` element. This caption depends on the surrounding context, and is not necessarily (or even ideally) identical to the :html:`<img>` element’s :html:`alt` attribute.
1277
1284
1278
-
#. All figure elements, regardless of positioning, have this CSS:
1285
+
#. All figure elements have this CSS:
1279
1286
1280
1287
.. code:: css
1281
1288
1282
1289
figure{
1283
1290
break-inside: avoid;
1291
+
margin: 1em2.5em;
1284
1292
}
1285
1293
1286
1294
figureimg{
1287
1295
display: block;
1288
1296
margin: auto;
1297
+
max-height: 100vh;
1289
1298
max-width: 100%;
1290
1299
}
1291
1300
1292
1301
figcaption{
1293
1302
font-size: smaller;
1294
1303
font-style: italic;
1295
1304
margin: 1em;
1305
+
text-align: center;
1296
1306
}
1297
1307
1298
1308
figcaptionp+p{
@@ -1306,38 +1316,6 @@ Images
1306
1316
figure.full-page{
1307
1317
break-after: page;
1308
1318
break-before: page;
1309
-
margin: 0;
1310
-
max-height: 100vh;
1311
-
text-align: center;
1312
-
}
1313
-
1314
-
@supports(display: flex){
1315
-
figure.full-page{
1316
-
display: flex;
1317
-
flex-direction: column;
1318
-
}
1319
-
1320
-
figure.full-pageimg{
1321
-
height: 100vh;
1322
-
object-fit: contain;
1323
-
}
1324
-
}
1325
-
1326
-
@supports(display: grid){
1327
-
figure.full-page{
1328
-
display: grid;
1329
-
grid-template-rows: 1frauto;
1330
-
max-height: 100%;
1331
-
}
1332
-
}
1333
-
1334
-
#. :html:`<figure>` elements that are meant to be aligned block-level with the text have this additional CSS:
1335
-
1336
-
.. code:: css
1337
-
1338
-
figure{
1339
-
margin: 1em40px;
1340
-
text-align: center;
1341
1319
}
1342
1320
1343
1321
.. class:: no-numbering
@@ -1351,52 +1329,26 @@ Examples
1351
1329
figure.full-page{
1352
1330
break-after: page;
1353
1331
break-before: page;
1354
-
margin: 0;
1355
-
max-height: 100vh;
1356
-
text-align: center;
1357
-
}
1358
-
1359
-
@supports(display: flex){
1360
-
figure.full-page{
1361
-
display: flex;
1362
-
flex-direction: column;
1363
-
}
1364
-
1365
-
figure.full-pageimg{
1366
-
height: 100vh;
1367
-
object-fit: contain;
1368
-
}
1369
-
}
1370
-
1371
-
@supports(display: grid){
1372
-
figure.full-page{
1373
-
display: grid;
1374
-
grid-template-rows: 1frauto;
1375
-
max-height: 100%;
1376
-
}
1377
-
}
1378
-
1379
-
/* If the image is meant to be aligned block-level with the text, use this selector... */
0 commit comments