File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1305,8 +1305,7 @@ Sample style sheet for HTML</h2>
1305
1305
1306
1306
/* The start attribute on ol elements */
1307
1307
ol[start] {
1308
- counter-reset: list-item attr(start integer, 1);
1309
- counter-increment: list-item -1;
1308
+ counter-reset: list-item calc(attr(start integer, 1) - 1);
1310
1309
}
1311
1310
1312
1311
/* The value attribute on li elements */
@@ -1317,9 +1316,8 @@ Sample style sheet for HTML</h2>
1317
1316
1318
1317
/* Handling reversed lists */
1319
1318
ol[reversed] {
1320
- counter-reset: list-item attr(start integer, **magic**);
1319
+ counter-reset: list-item calc( attr(start integer, **magic**) + 1 );
1321
1320
/* Where **magic** is the number of child <li> elements. */
1322
- counter-increment: list-item -1;
1323
1321
}
1324
1322
ol[reversed] > li {
1325
1323
counter-increment: list-item -1;
Original file line number Diff line number Diff line change @@ -1321,8 +1321,7 @@ <h2 class="heading settled heading" data-level=10 id=ua-stylesheet><span class=s
1321
1321
1322
1322
/* The start attribute on ol elements */
1323
1323
ol[start] {
1324
- counter-reset: list-item attr(start integer, 1);
1325
- counter-increment: list-item -1;
1324
+ counter-reset: list-item calc(attr(start integer, 1) - 1);
1326
1325
}
1327
1326
1328
1327
/* The value attribute on li elements */
@@ -1333,9 +1332,8 @@ <h2 class="heading settled heading" data-level=10 id=ua-stylesheet><span class=s
1333
1332
1334
1333
/* Handling reversed lists */
1335
1334
ol[reversed] {
1336
- counter-reset: list-item attr(start integer, **magic**);
1335
+ counter-reset: list-item calc( attr(start integer, **magic**) + 1 );
1337
1336
/* Where **magic** is the number of child <li> elements. */
1338
- counter-increment: list-item -1;
1339
1337
}
1340
1338
ol[reversed] > li {
1341
1339
counter-increment: list-item -1;
You can’t perform that action at this time.
0 commit comments