From 1f9f0ed66e0088acc3a42b874eb675d81cead735 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 1 Oct 2025 16:51:00 -0700 Subject: [PATCH 1/2] Specify daysInWeek is a calendar-specific constant --- index.html | 49 ++++++++++++++++++++++++++++++++++++++++--------- spec.emu | 7 ++++++- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index a29d70f..4734d1b 100644 --- a/index.html +++ b/index.html @@ -871,7 +871,7 @@ this.$pane.appendChild(this.$tableContainer); if (menu != null) { - menu.$specContainer.appendChild(this.$container); + menu.$specContainer.after(this.$container); } }, @@ -1203,6 +1203,9 @@ document.documentElement.classList.toggle('show-ao-annotations'); } else if (e.key === '?') { document.getElementById('shortcuts-help').classList.toggle('active'); + } else if (e.key === ';') { + let el = document.getElementById('bd75b99add5f'); + if (el != null) el.remove(); } } @@ -2250,7 +2253,7 @@ } emu-nt { - display: inline; + display: inline-block; font-style: italic; white-space: nowrap; text-indent: 0; @@ -2590,7 +2593,7 @@ } emu-table td { - background: var(--background-color); + background: transparent; } td[colspan]:not([colspan="1"]), th[colspan]:not([colspan="1"]) { @@ -2697,7 +2700,7 @@ height: 100vh; max-width: 500px; box-sizing: border-box; - background-color: var(--control-background-color); + background: var(--control-background-color); overflow: hidden; transition: opacity 0.1s linear; padding: 0 5px; @@ -3138,7 +3141,7 @@ .toolbox::after { border-color: var(--toolbox-tail-background-outside-color); - border-top-color: var(--control-background-color); + border-top-color: var(--control-border-color); border-width: 10px; margin-left: -10px; } @@ -3155,7 +3158,7 @@ left: 0; right: 0; display: none; - background-color: var(--control-background-color); + background: var(--control-background-color); z-index: 1; } @@ -3196,6 +3199,17 @@ padding-right: 5px; } +emu-normative-optional { + display: block; +} + +emu-normative-optional::before { + display: block; + color: var(--attributes-tag-foreground-color); + content: "NORMATIVE OPTIONAL"; +} + +emu-normative-optional, [normative-optional], [deprecated], [legacy] { @@ -3228,7 +3242,7 @@ outline: solid 10000px var(--control-dialog-fade-color); border-radius: 5px; border-width: 1px 1px 0 1px; - background-color: var(--control-background-color); + background: var(--control-background-color); display: none; } @@ -3534,6 +3548,18 @@ 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 */ } +emu-normative-optional { + break-inside: avoid; +} + +emu-normative-optional emu-clause[id] { + margin-top: 0; +} + +emu-normative-optional emu-alg > ol { + margin-bottom: 0; +} + emu-note { gap: initial; justify-content: space-between; @@ -4718,7 +4744,12 @@

4.1.15 Calendar Date Records

[[DaysInWeek]] a positive integer - The number of days in the date's week. + +

The number of days in the primary notion of week used by the calendar. For all calendars currently supported by this specification, this number is 7.

+ Note 6
+ Some calendars have alternate cyclic notions that are similar to the 7-day week; many of them have multiple (like the Javanese calendar). This specification does not cover such calendars but can be extended to do so in the future. +
+ [[DaysInMonth]] @@ -4740,7 +4771,7 @@

4.1.15 Calendar Date Records

a Boolean true if the date falls within a leap year, and false otherwise. - Note 6
+ Note 7
A "leap year" is a year that contains more days than other years (for solar or lunar calendars) or more months than other years (for lunisolar calendars like Hebrew or Chinese). Some calendars, especially lunisolar ones, have further variation in year length that is not represented in the output of this operation (e.g., the Hebrew calendar includes common years with 353, 354, or 355 days and leap years with 383, 384, or 385 days).
diff --git a/spec.emu b/spec.emu index 645aebf..c71ff3f 100644 --- a/spec.emu +++ b/spec.emu @@ -1008,7 +1008,12 @@ contributors: Google, Ecma International [[DaysInWeek]] a positive integer - The number of days in the date's week. + +

The number of days in the primary notion of week used by the calendar. For all calendars currently supported by this specification, this number is 7.

+ + Some calendars have alternate cyclic notions that are similar to the 7-day week; many of them have multiple (like the Javanese calendar). This specification does not cover such calendars but can be extended to do so in the future. + + [[DaysInMonth]] From f6d4dc733dcfd81ddf13f136fa5e269bcd1ce13f Mon Sep 17 00:00:00 2001 From: Manishearth Date: Wed, 1 Oct 2025 23:51:30 +0000 Subject: [PATCH 2/2] fixup: [spec] `npm run build` --- index.html | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/index.html b/index.html index 4734d1b..91cafef 100644 --- a/index.html +++ b/index.html @@ -871,7 +871,7 @@ this.$pane.appendChild(this.$tableContainer); if (menu != null) { - menu.$specContainer.after(this.$container); + menu.$specContainer.appendChild(this.$container); } }, @@ -1203,9 +1203,6 @@ document.documentElement.classList.toggle('show-ao-annotations'); } else if (e.key === '?') { document.getElementById('shortcuts-help').classList.toggle('active'); - } else if (e.key === ';') { - let el = document.getElementById('bd75b99add5f'); - if (el != null) el.remove(); } } @@ -2253,7 +2250,7 @@ } emu-nt { - display: inline-block; + display: inline; font-style: italic; white-space: nowrap; text-indent: 0; @@ -2593,7 +2590,7 @@ } emu-table td { - background: transparent; + background: var(--background-color); } td[colspan]:not([colspan="1"]), th[colspan]:not([colspan="1"]) { @@ -2700,7 +2697,7 @@ height: 100vh; max-width: 500px; box-sizing: border-box; - background: var(--control-background-color); + background-color: var(--control-background-color); overflow: hidden; transition: opacity 0.1s linear; padding: 0 5px; @@ -3141,7 +3138,7 @@ .toolbox::after { border-color: var(--toolbox-tail-background-outside-color); - border-top-color: var(--control-border-color); + border-top-color: var(--control-background-color); border-width: 10px; margin-left: -10px; } @@ -3158,7 +3155,7 @@ left: 0; right: 0; display: none; - background: var(--control-background-color); + background-color: var(--control-background-color); z-index: 1; } @@ -3199,17 +3196,6 @@ padding-right: 5px; } -emu-normative-optional { - display: block; -} - -emu-normative-optional::before { - display: block; - color: var(--attributes-tag-foreground-color); - content: "NORMATIVE OPTIONAL"; -} - -emu-normative-optional, [normative-optional], [deprecated], [legacy] { @@ -3242,7 +3228,7 @@ outline: solid 10000px var(--control-dialog-fade-color); border-radius: 5px; border-width: 1px 1px 0 1px; - background: var(--control-background-color); + background-color: var(--control-background-color); display: none; } @@ -3548,18 +3534,6 @@ 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 */ } -emu-normative-optional { - break-inside: avoid; -} - -emu-normative-optional emu-clause[id] { - margin-top: 0; -} - -emu-normative-optional emu-alg > ol { - margin-bottom: 0; -} - emu-note { gap: initial; justify-content: space-between;