Skip to content

Commit b2ab876

Browse files
committed
fixup: [spec] npm run build
1 parent b908c41 commit b2ab876

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
@@ -1915,6 +1915,23 @@
19151915
margin: 0 auto;
19161916
}
19171917
1918+
#metadata-block {
1919+
margin: 4em 0;
1920+
padding: 10px;
1921+
border: 1px solid #ee8421;
1922+
}
1923+
1924+
#metadata-block h1 {
1925+
font-size: 1.5em;
1926+
margin-top: 0;
1927+
}
1928+
1929+
#metadata-block > ul {
1930+
list-style-type: none;
1931+
margin: 0;
1932+
padding: 0;
1933+
}
1934+
19181935
span[aria-hidden='true'] {
19191936
font-size: 0;
19201937
white-space: pre;
@@ -3253,6 +3270,7 @@
32533270
32543271
#ecma-logo {
32553272
background: var(--figure-background);
3273+
width: 500px;
32563274
}
32573275
</style><style>@media print {
32583276
@font-face {
@@ -3326,6 +3344,7 @@
33263344
33273345
:root {
33283346
--page-number-style: decimal;
3347+
-prince-change-line-breaks-for-pagination: yes; /* see https://www.princexml.com/doc/prince-for-books/#pagination-fine-tuning */
33293348
}
33303349
33313350
@page {
@@ -3334,16 +3353,16 @@
33343353
margin-bottom: 20mm;
33353354
margin-inside: 19mm;
33363355
margin-outside: 13mm;
3337-
-prince-page-fill: prefer-fill;
3356+
-prince-page-fill: prefer-balance; /* see https://www.princexml.com/doc/prince-for-books/#the-property--prince-page-fill */
33383357
3339-
/* Uncomment when producing WIP versions of final standards */
3358+
/* Uncomment when producing WIP versions of final standards, see https://www.princexml.com/doc/paged/#page-regions */
33403359
/*
33413360
@prince-overlay {
33423361
color: rgba(0,0,0,0.15);
3343-
content: "WORK IN PROGRESS";
3362+
content: "DRAFT";
33443363
font-family: Arial;
33453364
font-weight: bolder;
3346-
font-size: 100pt;
3365+
font-size: 200pt;
33473366
transform: rotate(-60deg);
33483367
}
33493368
*/
@@ -3453,7 +3472,7 @@
34533472
line-height: 1.15;
34543473
}
34553474
3456-
h1, h2, h3, h4, h5, h6 { -prince-bookmark-level: none }
3475+
h1, h2, h3, h4, h5, h6 { -prince-bookmark-level: none } /* see https://www.princexml.com/doc/prince-output/#pdf-bookmarks */
34573476
34583477
.copyright-notice + h1.title {
34593478
break-before: recto;
@@ -3473,15 +3492,24 @@
34733492
text-wrap: pretty;
34743493
overflow-wrap: break-word;
34753494
hyphens: auto;
3476-
orphans: 2;
3477-
widows: 2;
3495+
orphans: 2, -prince-prefer 3; /* see https://www.princexml.com/doc/prince-for-books/#pagination-goals */
3496+
widows: 2, -prince-prefer 3;
34783497
}
34793498
34803499
h1 {
34813500
text-wrap: balance;
34823501
line-height: 1.4;
34833502
}
34843503
3504+
pre:has(> code) {
3505+
margin: 0;
3506+
}
3507+
3508+
p + pre:has(+ p) {
3509+
padding-top: 0;
3510+
padding-bottom: 0;
3511+
}
3512+
34853513
emu-alg {
34863514
display: block; /* Can't render block elements inside inline elements. */
34873515
}
@@ -3520,6 +3548,10 @@
35203548
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 */
35213549
}
35223550
3551+
emu-normative-optional {
3552+
break-inside: avoid;
3553+
}
3554+
35233555
emu-normative-optional emu-clause[id] {
35243556
margin-top: 0;
35253557
}
@@ -3538,6 +3570,10 @@
35383570
min-width: 4.5em;
35393571
}
35403572
3573+
emu-note table td {
3574+
background-color: white;
3575+
}
3576+
35413577
emu-note p,
35423578
emu-table td p {
35433579
text-align: left;
@@ -3566,7 +3602,6 @@
35663602
}
35673603
35683604
emu-clause p:first-of-type {
3569-
margin-bottom: 0;
35703605
orphans: 3;
35713606
}
35723607
@@ -3686,7 +3721,7 @@
36863721
}
36873722
36883723
caption {
3689-
-prince-caption-page: first;
3724+
-prince-caption-page: first; /* see https://www.princexml.com/doc/css-props/#prop-prince-caption-page */
36903725
}
36913726
36923727
/* do not break inside of small tables */
@@ -3727,6 +3762,11 @@
37273762
height: auto;
37283763
}
37293764
3765+
.attributes-tag {
3766+
break-before: avoid-page;
3767+
break-after: avoid-page;
3768+
}
3769+
37303770
#spec-container {
37313771
max-width: initial;
37323772
}
@@ -3822,8 +3862,8 @@
38223862
border: 1px solid black;
38233863
padding: 1em;
38243864
page: copyright;
3825-
page-break-before: always;
3826-
page-break-after: always;
3865+
break-before: page;
3866+
break-after: page;
38273867
}
38283868
38293869
.secnum {

0 commit comments

Comments
 (0)