Skip to content

Commit 41c69e9

Browse files
committed
fixup: [spec] npm run build
1 parent 194939f commit 41c69e9

File tree

1 file changed

+51
-11
lines changed

1 file changed

+51
-11
lines changed

index.html

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,23 @@
19121912
margin: 0 auto;
19131913
}
19141914
1915+
#metadata-block {
1916+
margin: 4em 0;
1917+
padding: 10px;
1918+
border: 1px solid #ee8421;
1919+
}
1920+
1921+
#metadata-block h1 {
1922+
font-size: 1.5em;
1923+
margin-top: 0;
1924+
}
1925+
1926+
#metadata-block > ul {
1927+
list-style-type: none;
1928+
margin: 0;
1929+
padding: 0;
1930+
}
1931+
19151932
span[aria-hidden='true'] {
19161933
font-size: 0;
19171934
white-space: pre;
@@ -3250,6 +3267,7 @@
32503267
32513268
#ecma-logo {
32523269
background: var(--figure-background);
3270+
width: 500px;
32533271
}
32543272
</style><style>@media print {
32553273
@font-face {
@@ -3323,6 +3341,7 @@
33233341
33243342
:root {
33253343
--page-number-style: decimal;
3344+
-prince-change-line-breaks-for-pagination: yes; /* see https://www.princexml.com/doc/prince-for-books/#pagination-fine-tuning */
33263345
}
33273346
33283347
@page {
@@ -3331,16 +3350,16 @@
33313350
margin-bottom: 20mm;
33323351
margin-inside: 19mm;
33333352
margin-outside: 13mm;
3334-
-prince-page-fill: prefer-fill;
3353+
-prince-page-fill: prefer-balance; /* see https://www.princexml.com/doc/prince-for-books/#the-property--prince-page-fill */
33353354
3336-
/* Uncomment when producing WIP versions of final standards */
3355+
/* Uncomment when producing WIP versions of final standards, see https://www.princexml.com/doc/paged/#page-regions */
33373356
/*
33383357
@prince-overlay {
33393358
color: rgba(0,0,0,0.15);
3340-
content: "WORK IN PROGRESS";
3359+
content: "DRAFT";
33413360
font-family: Arial;
33423361
font-weight: bolder;
3343-
font-size: 100pt;
3362+
font-size: 200pt;
33443363
transform: rotate(-60deg);
33453364
}
33463365
*/
@@ -3450,7 +3469,7 @@
34503469
line-height: 1.15;
34513470
}
34523471
3453-
h1, h2, h3, h4, h5, h6 { -prince-bookmark-level: none }
3472+
h1, h2, h3, h4, h5, h6 { -prince-bookmark-level: none } /* see https://www.princexml.com/doc/prince-output/#pdf-bookmarks */
34543473
34553474
.copyright-notice + h1.title {
34563475
break-before: recto;
@@ -3470,15 +3489,24 @@
34703489
text-wrap: pretty;
34713490
overflow-wrap: break-word;
34723491
hyphens: auto;
3473-
orphans: 2;
3474-
widows: 2;
3492+
orphans: 2, -prince-prefer 3; /* see https://www.princexml.com/doc/prince-for-books/#pagination-goals */
3493+
widows: 2, -prince-prefer 3;
34753494
}
34763495
34773496
h1 {
34783497
text-wrap: balance;
34793498
line-height: 1.4;
34803499
}
34813500
3501+
pre:has(> code) {
3502+
margin: 0;
3503+
}
3504+
3505+
p + pre:has(+ p) {
3506+
padding-top: 0;
3507+
padding-bottom: 0;
3508+
}
3509+
34823510
emu-alg {
34833511
display: block; /* Can't render block elements inside inline elements. */
34843512
}
@@ -3517,6 +3545,10 @@
35173545
break-after: initial; /* it's okay to break after the last item in a list, even if it's also the first item in the list */
35183546
}
35193547
3548+
emu-normative-optional {
3549+
break-inside: avoid;
3550+
}
3551+
35203552
emu-normative-optional emu-clause[id] {
35213553
margin-top: 0;
35223554
}
@@ -3535,6 +3567,10 @@
35353567
min-width: 4.5em;
35363568
}
35373569
3570+
emu-note table td {
3571+
background-color: white;
3572+
}
3573+
35383574
emu-note p,
35393575
emu-table td p {
35403576
text-align: left;
@@ -3563,7 +3599,6 @@
35633599
}
35643600
35653601
emu-clause p:first-of-type {
3566-
margin-bottom: 0;
35673602
orphans: 3;
35683603
}
35693604
@@ -3683,7 +3718,7 @@
36833718
}
36843719
36853720
caption {
3686-
-prince-caption-page: first;
3721+
-prince-caption-page: first; /* see https://www.princexml.com/doc/css-props/#prop-prince-caption-page */
36873722
}
36883723
36893724
/* do not break inside of small tables */
@@ -3724,6 +3759,11 @@
37243759
height: auto;
37253760
}
37263761
3762+
.attributes-tag {
3763+
break-before: avoid-page;
3764+
break-after: avoid-page;
3765+
}
3766+
37273767
#spec-container {
37283768
max-width: initial;
37293769
}
@@ -3819,8 +3859,8 @@
38193859
border: 1px solid black;
38203860
padding: 1em;
38213861
page: copyright;
3822-
page-break-before: always;
3823-
page-break-after: always;
3862+
break-before: page;
3863+
break-after: page;
38243864
}
38253865
38263866
.secnum {

0 commit comments

Comments
 (0)