oficina / slides Public

wip: Slides on Fiesta's spacing scale

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 4d3cdf01205d3559155e953c7cb07d5ed1b4a80a parent 4bdd576
53 files changed, +885 −282
  • AGENTS.md +18 −0
  • Makefile +33 −2
  • go.mod +17 −13
  • go.sum +10 −6
  • internal/slides/auth.go +3 −1
  • internal/slides/auth_test.go +4 −4
  • internal/slides/config.go +10 −0
  • internal/slides/config_test.go +1 −1
  • internal/slides/credits/notices.json +2 −2
  • internal/slides/decks_test.go +3 −3
  • internal/slides/home_test.go +3 −3
  • internal/slides/keymail_home_test.go +15 −2
  • internal/slides/mailqueue_test.go +1 −1
  • internal/slides/presenter_window.go +2 −2
  • internal/slides/presenting_position_test.go +1 −1
  • internal/slides/replay_long_test.go +1 −1
  • internal/slides/signin_door_helpers_test.go +1 −1
  • internal/slides/signin_door_states_test.go +3 −2
  • internal/slides/snapshot_fallback_test.go +1 −1
  • internal/slides/snapshot_test.go +1 −1
  • internal/slides/static/brand/brand.css +1 −1
  • internal/slides/static/decks.css +9 −10
  • internal/slides/static/editor.css +98 −87
  • internal/slides/static/presenter.css +66 −66
  • internal/slides/static/slides.css +18 −18
  • internal/slides/static/tokens.css +84 −0
  • internal/slides/team_fixture_test.go +1 −1
  • internal/slides/templates/agents.html +1 −1
  • internal/slides/templates/credits.html +14 −1
  • internal/slides/templates/deck_delete.html +1 −1
  • internal/slides/templates/deck_export.html +2 −2
  • internal/slides/templates/deck_new.html +1 −1
  • internal/slides/templates/deck_notes.html +3 −1
  • internal/slides/templates/deck_settings.html +7 −5
  • internal/slides/templates/decks.html +8 −8
  • internal/slides/templates/export_status.html +4 −2
  • internal/slides/templates/home_link.html +1 −1
  • internal/slides/templates/layout.html +4 −2
  • internal/slides/templates/present_pairing.html +1 −1
  • internal/slides/templates/remote.html +5 −5
  • internal/slides/templates/share.html +4 −4
  • internal/slides/templates/viewer.html +21 −12
  • internal/slides/thumbs_test.go +1 −1
  • internal/slidestest/browser_rhythm_test.go +284 −0
  • internal/slidestest/browser_test.go +1 −0
  • internal/slidestest/fonts_browser_test.go +1 −0
  • internal/slidestest/fonts_engines_browser_test.go +1 −1
  • internal/slidestest/harness_test.go +1 −0
  • internal/slidestest/keymail_signin_test.go +9 −0
  • internal/slidestest/leaving_browser_test.go +1 −1
  • internal/slidestest/list_test.go +1 −1
  • internal/slidestest/saving_browser_test.go +1 −1
  • internal/slidestest/spacing_test.go +100 −0

CI passed — run details

CI log
=== gate ===
=== rust: fmt
=== rust: clippy
    Updating crates.io index
 Downloading crates ...
  Downloaded cfg-if v1.0.4
  Downloaded ahash v0.8.12
  Downloaded dashmap v6.2.1
  Downloaded arc-swap v1.9.2
  Downloaded arrayvec v0.7.8
  Downloaded crossbeam-utils v0.8.22
  Downloaded bitflags v2.13.1
  Downloaded async-trait v0.1.92
  Downloaded autocfg v1.5.1
  Downloaded async-lock v3.4.2
  Downloaded smallstr v0.3.1
  Downloaded libm v0.2.16
  Downloaded wasmi_collections v0.32.3
  Downloaded itoa v1.0.18
  Downloaded paste v1.0.15
  Downloaded version_check v0.9.5
  Downloaded equivalent v1.0.2
  Downloaded num-derive v0.4.2
  Downloaded string-interner v0.17.0
  Downloaded thiserror-impl v2.0.20
  Downloaded num-traits v0.2.19
  Downloaded scopeguard v1.2.0
  Downloaded downcast-rs v1.2.1
  Downloaded multi-stash v0.2.0
  Downloaded zerocopy v0.8.56
  Downloaded pin-project-lite v0.2.17
  Downloaded parking v2.2.1
  Downloaded event-listener-strategy v0.5.4
  Downloaded indexmap-nostd v0.4.0
  Downloaded lock_api v0.4.14
  Downloaded thiserror v2.0.20
  Downloaded zmij v1.0.23
  Downloaded rustversion v1.0.23
  Downloaded wasmi_core v0.32.3
  Downloaded parking_lot_core v0.9.12
  Downloaded quote v1.0.47
  Downloaded foldhash v0.2.0
  Downloaded once_cell v1.21.4
  Downloaded serde_json v1.0.151
  Downloaded unicode-ident v1.0.24
  Downloaded semver v1.0.28
  Downloaded spin v0.9.9
  Downloaded event-listener v5.4.2
  Downloaded proc-macro2 v1.0.107
  Downloaded smallvec v1.15.2
  Downloaded serde_core v1.0.229
  Downloaded serde_derive v1.0.229
  Downloaded indexmap v2.14.1
  Downloaded serde v1.0.229
  Downloaded memchr v2.8.3
  Downloaded hashbrown v0.14.5
  Downloaded hashbrown v0.17.1
  Downloaded wasmparser-nostd v0.100.2
  Downloaded wasmparser v0.258.0
  Downloaded yrs v0.23.5
  Downloaded wasmi v0.32.3
  Downloaded syn v3.0.4
  Downloaded syn v2.0.119
  Downloaded libc v0.2.189
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling version_check v0.9.5
   Compiling zerocopy v0.8.56
    Checking cfg-if v1.0.4
   Compiling serde v1.0.229
    Checking once_cell v1.21.4
    Checking smallvec v1.15.2
   Compiling libc v0.2.189
   Compiling autocfg v1.5.1
   Compiling parking_lot_core v0.9.12
    Checking parking v2.2.1
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling rustversion v1.0.23
    Checking pin-project-lite v0.2.17
    Checking event-listener v5.4.2
   Compiling serde_json v1.0.151
   Compiling thiserror v2.0.20
   Compiling paste v1.0.15
   Compiling libm v0.2.16
   Compiling ahash v0.8.12
   Compiling num-traits v0.2.19
    Checking scopeguard v1.2.0
    Checking event-listener-strategy v0.5.4
    Checking itoa v1.0.18
    Checking memchr v2.8.3
    Checking foldhash v0.2.0
    Checking lock_api v0.4.14
    Checking smallstr v0.3.1
    Checking async-lock v3.4.2
    Checking indexmap-nostd v0.4.0
    Checking equivalent v1.0.2
    Checking downcast-rs v1.2.1
    Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/vendor/fastrand-2.5.0)
    Checking spin v0.9.9
    Checking arrayvec v0.7.8
    Checking wasmparser-nostd v0.100.2
    Checking semver v1.0.28
    Checking bitflags v2.13.1
    Checking multi-stash v0.2.0
    Checking arc-swap v1.9.2
   Compiling syn v3.0.4
   Compiling syn v2.0.119
    Checking wasmi_core v0.32.3
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.1
   Compiling num-derive v0.4.2
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
    Checking hashbrown v0.14.5
    Checking dashmap v6.2.1
    Checking string-interner v0.17.0
    Checking yrs v0.23.5
    Checking wasmparser v0.258.0
    Checking wasmi_collections v0.32.3
    Checking wasmi v0.32.3
    Checking slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.06s
=== the embedded wasm must be built from these sources
wasm-stamp: internal/slides/core/testdata/slides_core.wasm was built from these inputs
=== wasm: the artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
 Downloading crates ...
  Downloaded getrandom v0.4.3
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling cfg-if v1.0.4
   Compiling rustversion v1.0.23
   Compiling getrandom v0.4.3
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling parking_lot_core v0.9.12
   Compiling pin-project-lite v0.2.17
   Compiling smallvec v1.15.2
   Compiling scopeguard v1.2.0
   Compiling serde_json v1.0.151
   Compiling serde v1.0.229
   Compiling thiserror v2.0.20
   Compiling itoa v1.0.18
   Compiling hashbrown v0.14.5
   Compiling once_cell v1.21.4
   Compiling event-listener v5.4.2
   Compiling lock_api v0.4.14
   Compiling memchr v2.8.3
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/vendor/fastrand-2.5.0)
   Compiling smallstr v0.3.1
   Compiling event-listener-strategy v0.5.4
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.4
   Compiling thiserror-impl v2.0.20
   Compiling serde_derive v1.0.229
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core)
    Finished `release` profile [optimized] target(s) in 10.13s
core/target/wasm32-unknown-unknown/release/slides_core.wasm (787887 bytes)
=== the embedded wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling parking v2.2.1
   Compiling pin-project-lite v0.2.17
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling crossbeam-utils v0.8.22
   Compiling zmij v1.0.23
   Compiling foldhash v0.2.0
   Compiling itoa v1.0.18
   Compiling memchr v2.8.3
   Compiling arc-swap v1.9.2
   Compiling num-traits v0.2.19
   Compiling thiserror v2.0.20
   Compiling lock_api v0.4.14
   Compiling libm v0.2.16
   Compiling event-listener v5.4.2
   Compiling equivalent v1.0.2
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/vendor/fastrand-2.5.0)
   Compiling smallstr v0.3.1
   Compiling downcast-rs v1.2.1
   Compiling indexmap-nostd v0.4.0
   Compiling multi-stash v0.2.0
   Compiling arrayvec v0.7.8
   Compiling spin v0.9.9
   Compiling semver v1.0.28
   Compiling event-listener-strategy v0.5.4
   Compiling bitflags v2.13.1
   Compiling wasmparser-nostd v0.100.2
   Compiling async-lock v3.4.2
   Compiling parking_lot_core v0.9.12
   Compiling wasmi_core v0.32.3
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling hashbrown v0.17.1
   Compiling indexmap v2.14.1
   Compiling wasmparser v0.258.0
   Compiling ahash v0.8.12
   Compiling hashbrown v0.14.5
   Compiling dashmap v6.2.1
   Compiling string-interner v0.17.0
   Compiling wasmi_collections v0.32.3
   Compiling yrs v0.23.5
   Compiling wasmi v0.32.3
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 11.29s
     Running unittests src/lib.rs (core/target/debug/deps/slides_core-e2842964c29de994)

running 31 tests
test layout::tests::aside_region_rect ... ok
test check::tests::the_empty_document_passes ... ok
test layout::tests::heading_region_rect ... ok
test layout::tests::default_region_by_kind ... ok
test layout::tests::media_region_rect ... ok
test layout::tests::body_region_rect_narrows_for_an_aside ... ok
test markdown::tests::empty_input_is_no_paragraphs_and_lines_keep_blanks ... ok
test markdown::tests::inline_marks ... ok
test markdown::tests::marks_nest_and_links_carry_marks ... ok
test markdown::tests::paragraphs_split_on_blank_lines_and_list_markers ... ok
test layout::tests::to_canvas_narrows_body_when_an_aside_is_present ... ok
test layout::tests::to_flow_is_a_no_op_when_already_in_order ... ok
test layout::tests::to_flow_classifies_by_position_and_kind ... ok
test schema::tests::an_href_map_without_a_string_url_reads_as_no_link ... ok
test schema::tests::an_empty_map_reads_as_a_set_mark ... ok
test check::tests::what_the_ops_write_passes ... ok
test check::tests::an_element_inside_a_paragraph_is_reported ... ok
test check::tests::bare_text_at_fragment_level_is_reported ... ok
test schema::tests::href_is_written_as_a_one_key_map_and_reads_back ... ok
test check::tests::a_non_paragraph_child_is_reported ... ok
test schema::tests::href_written_as_a_plain_string_still_reads_back ... ok
test check::tests::y_prosemirror_shapes_pass ... ok
test layout::tests::to_flow_orders_y_then_x ... ok
test layout::tests::to_canvas_splits_a_shared_region_equally_and_sets_z_by_index ... ok
test check::tests::an_unknown_formatting_attribute_is_reported ... ok
test view::tests::assets_are_typed_or_skipped ... ok
test view::tests::malformed_background_is_the_default ... ok
test view::tests::step_items_talk_and_arrive_outside_their_vocabularies_are_absent ... ok
test view::tests::malformed_fonts_are_null ... ok
test view::tests::malformed_box_is_null_and_phone_keeps_only_typed_fields ... ok
test layout::tests::to_flow_keeps_a_concurrent_text_edit ... ok

test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-0da85e8553d154e5)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/ops.rs (core/target/debug/deps/ops-ac5209169f357f96)

running 19 tests
test add_slide_then_view_lists_it ... ok
test ops_are_atomic ... ok
test add_block_with_markdown_produces_runs ... ok
test a_deck_without_the_fields_has_no_such_keys_in_its_view ... ok
test layout_switch_assigns_boxes ... ok
test set_block_refuses_a_step_of_zero_negative_or_non_finite ... ok
test set_slide_refuses_an_unknown_talk ... ok
test remove_block_drops_it_from_columns_children ... ok
test columns_children_must_name_blocks_on_the_slide ... ok
test columns_children_have_one_parent_and_no_cycles ... ok
test duplicate_slide_remaps_columns_children ... ok
test set_block_step_round_trips_and_clears ... ok
test set_slide_talk_round_trips_and_clears ... ok
test set_block_refuses_items_on_a_non_list ... ok
test set_meta_arrive_round_trips_and_clears ... ok
test update_roundtrip ... ok
test move_block_keeps_a_concurrent_text_edit ... ok
test move_slide_keeps_a_concurrent_text_edit ... ok
test remaining_ops_roundtrip ... ok

test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

   Doc-tests slides_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== rust: fmt (pdf)
=== rust: clippy (pdf)
    Updating crates.io index
 Downloading crates ...
  Downloaded arrayref v0.3.9
  Downloaded base64 v0.22.1
  Downloaded bytemuck v1.25.2
  Downloaded adler2 v2.0.1
  Downloaded bumpalo v3.20.3
  Downloaded fontconfig-parser v0.5.8
  Downloaded euclid v0.22.14
  Downloaded fontdb v0.23.0
  Downloaded png v0.18.1
  Downloaded simd-adler32 v0.3.10
  Downloaded zerofrom v0.1.8
  Downloaded weezl v0.1.12
  Downloaded unicode-bidi v0.3.18
  Downloaded strict-num v0.1.1
  Downloaded memmap2 v0.9.11
  Downloaded zerofrom-derive v0.1.7
  Downloaded font-types v0.11.3
  Downloaded siphasher v1.0.3
  Downloaded rgb v0.8.53
  Downloaded rustc-hash v2.1.3
  Downloaded core_maths v0.1.1
  Downloaded svgtypes v0.16.1
  Downloaded data-url v0.3.2
  Downloaded krilla-svg v0.8.1
  Downloaded unicode-properties v0.1.4
  Downloaded gif v0.14.2
  Downloaded xmlwriter v0.1.0
  Downloaded float-cmp v0.9.0
  Downloaded quick-error v2.0.1
  Downloaded color_quant v1.1.0
  Downloaded unicode-bidi-mirroring v0.4.0
  Downloaded yoke-derive v0.8.2
  Downloaded unicode-ccc v0.4.0
  Downloaded stable_deref_trait v1.2.1
  Downloaded tinyvec_macros v0.1.1
  Downloaded pico-args v0.5.0
  Downloaded byteorder-lite v0.1.0
  Downloaded polycool v0.4.0
  Downloaded roxmltree v0.21.1
  Downloaded subsetter v0.2.6
  Downloaded yoke v0.8.3
  Downloaded roxmltree v0.20.0
  Downloaded synstructure v0.13.2
  Downloaded unicode-vo v0.1.0
  Downloaded xmp-writer v0.3.3
  Downloaded bytemuck_derive v1.12.0
  Downloaded simplecss v0.2.2
  Downloaded smallvec v1.16.0
  Downloaded tiny-skia-path v0.12.0
  Downloaded zune-core v0.5.3
  Downloaded fdeflate v0.3.7
  Downloaded imagesize v0.14.0
  Downloaded crc32fast v1.5.1
  Downloaded kurbo v0.13.1
  Downloaded slotmap v1.1.1
  Downloaded tiny-skia v0.12.0
  Downloaded tinyvec v1.13.2
  Downloaded ryu v1.0.23
  Downloaded log v0.4.34
  Downloaded resvg v0.47.0
  Downloaded flate2 v1.1.10
  Downloaded image-webp v0.2.4
  Downloaded unicode-script v0.5.8
  Downloaded miniz_oxide v0.9.1
  Downloaded miniz_oxide v0.8.9
  Downloaded indexmap v2.14.2
  Downloaded zune-jpeg v0.5.15
  Downloaded usvg v0.47.0
  Downloaded krilla v0.8.2
  Downloaded ttf-parser v0.25.1
  Downloaded zlib-rs v0.6.7
  Downloaded rustybuzz v0.20.1
  Downloaded skrifa v0.42.1
  Downloaded write-fonts v0.48.1
  Downloaded syn v3.0.5
  Downloaded read-fonts v0.39.2
  Downloaded pdf-writer v0.15.0
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
    Checking simd-adler32 v0.3.10
    Checking arrayvec v0.7.8
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
    Checking log v0.4.34
    Checking adler2 v2.0.1
    Checking bitflags v2.13.1
   Compiling crc32fast v1.5.1
    Checking smallvec v1.16.0
    Checking cfg-if v1.0.4
   Compiling version_check v0.9.5
   Compiling libc v0.2.189
    Checking foldhash v0.2.0
    Checking equivalent v1.0.2
    Checking memchr v2.8.3
    Checking arrayref v0.3.9
    Checking miniz_oxide v0.9.1
    Checking miniz_oxide v0.8.9
    Checking fdeflate v0.3.7
    Checking siphasher v1.0.3
    Checking unicode-script v0.5.8
    Checking polycool v0.4.0
    Checking roxmltree v0.20.0
    Checking unicode-properties v0.1.4
    Checking kurbo v0.13.1
    Checking unicode-bidi-mirroring v0.4.0
    Checking tinyvec_macros v0.1.1
   Compiling slotmap v1.1.1
    Checking unicode-ccc v0.4.0
    Checking base64 v0.22.1
    Checking tinyvec v1.13.2
    Checking imagesize v0.14.0
    Checking zune-core v0.5.3
    Checking color_quant v1.1.0
   Compiling num-traits v0.2.19
    Checking quick-error v2.0.1
    Checking flate2 v1.1.10
    Checking weezl v0.1.12
    Checking byteorder-lite v0.1.0
    Checking roxmltree v0.21.1
    Checking fontconfig-parser v0.5.8
    Checking simplecss v0.2.2
    Checking zune-jpeg v0.5.15
    Checking data-url v0.3.2
    Checking pico-args v0.5.0
    Checking image-webp v0.2.4
    Checking gif v0.14.2
    Checking stable_deref_trait v1.2.1
    Checking unicode-vo v0.1.0
    Checking ryu v1.0.23
    Checking itoa v1.0.18
    Checking png v0.18.1
    Checking rustc-hash v2.1.3
    Checking unicode-bidi v0.3.18
    Checking xmlwriter v0.1.0
    Checking pdf-writer v0.15.0
    Checking bumpalo v3.20.3
    Checking xmp-writer v0.3.3
   Compiling serde v1.0.229
    Checking semver v1.0.28
   Compiling syn v3.0.5
   Compiling syn v2.0.119
    Checking svgtypes v0.16.1
    Checking core_maths v0.1.1
    Checking ttf-parser v0.25.1
    Checking float-cmp v0.9.0
    Checking strict-num v0.1.1
    Checking memmap2 v0.9.11
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.2
    Checking fontdb v0.23.0
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
    Checking wasmparser v0.258.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
    Checking bytemuck v1.25.2
    Checking font-types v0.11.3
    Checking tiny-skia-path v0.12.0
    Checking rustybuzz v0.20.1
    Checking rgb v0.8.53
    Checking zerofrom v0.1.8
    Checking yoke v0.8.3
    Checking read-fonts v0.39.2
    Checking tiny-skia v0.12.0
    Checking usvg v0.47.0
    Checking resvg v0.47.0
    Checking skrifa v0.42.1
    Checking write-fonts v0.48.1
    Checking subsetter v0.2.6
    Checking krilla v0.8.2
    Checking krilla-svg v0.8.1
    Checking slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/pdf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.06s
=== the embedded pdf wasm must be built from these sources
wasm-stamp: internal/slides/pdfcore/testdata/slides_pdf.wasm was built from these inputs
=== wasm: the pdf artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
build-pdf-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
   Compiling arrayvec v0.7.8
   Compiling log v0.4.34
   Compiling simd-adler32 v0.3.10
   Compiling libm v0.2.16
   Compiling adler2 v2.0.1
   Compiling crc32fast v1.5.1
   Compiling smallvec v1.16.0
   Compiling bitflags v2.13.1
   Compiling cfg-if v1.0.4
   Compiling version_check v0.9.5
   Compiling arrayref v0.3.9
   Compiling memchr v2.8.3
   Compiling hashbrown v0.17.1
   Compiling unicode-properties v0.1.4
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling fdeflate v0.3.7
   Compiling polycool v0.4.0
   Compiling unicode-script v0.5.8
   Compiling tinyvec_macros v0.1.1
   Compiling equivalent v1.0.2
   Compiling unicode-ccc v0.4.0
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling siphasher v1.0.3
   Compiling slotmap v1.1.1
   Compiling tinyvec v1.13.2
   Compiling zune-core v0.5.3
   Compiling color_quant v1.1.0
   Compiling byteorder-lite v0.1.0
   Compiling num-traits v0.2.19
   Compiling kurbo v0.13.1
   Compiling flate2 v1.1.10
   Compiling memmap2 v0.9.11
   Compiling indexmap v2.14.2
   Compiling weezl v0.1.12
   Compiling quick-error v2.0.1
   Compiling base64 v0.22.1
   Compiling imagesize v0.14.0
   Compiling image-webp v0.2.4
   Compiling gif v0.14.2
   Compiling syn v3.0.5
   Compiling syn v2.0.119
   Compiling png v0.18.1
   Compiling zune-jpeg v0.5.15
   Compiling core_maths v0.1.1
   Compiling float-cmp v0.9.0
   Compiling ttf-parser v0.25.1
   Compiling strict-num v0.1.1
   Compiling roxmltree v0.21.1
   Compiling svgtypes v0.16.1
   Compiling simplecss v0.2.2
   Compiling unicode-bidi v0.3.18
   Compiling unicode-vo v0.1.0
   Compiling ryu v1.0.23
   Compiling xmlwriter v0.1.0
   Compiling stable_deref_trait v1.2.1
   Compiling itoa v1.0.18
   Compiling pico-args v0.5.0
   Compiling rustc-hash v2.1.3
   Compiling data-url v0.3.2
   Compiling pdf-writer v0.15.0
   Compiling bumpalo v3.20.3
   Compiling xmp-writer v0.3.3
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
   Compiling fontdb v0.23.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling bytemuck v1.25.2
   Compiling font-types v0.11.3
   Compiling tiny-skia-path v0.12.0
   Compiling rustybuzz v0.20.1
   Compiling rgb v0.8.53
   Compiling zerofrom v0.1.8
   Compiling yoke v0.8.3
   Compiling read-fonts v0.39.2
   Compiling tiny-skia v0.12.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling skrifa v0.42.1
   Compiling write-fonts v0.48.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/pdf)
    Finished `release` profile [optimized] target(s) in 17.04s
core/pdf/target/wasm32-unknown-unknown/release/slides_pdf.wasm (4157674 bytes)
=== the embedded pdf wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test (pdf)
   Compiling simd-adler32 v0.3.10
   Compiling arrayvec v0.7.8
   Compiling log v0.4.34
   Compiling smallvec v1.16.0
   Compiling bitflags v2.13.1
   Compiling adler2 v2.0.1
   Compiling cfg-if v1.0.4
   Compiling foldhash v0.2.0
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
   Compiling arrayref v0.3.9
   Compiling memchr v2.8.3
   Compiling equivalent v1.0.2
   Compiling num-traits v0.2.19
   Compiling bytemuck v1.25.2
   Compiling libc v0.2.189
   Compiling crc32fast v1.5.1
   Compiling tinyvec_macros v0.1.1
   Compiling unicode-script v0.5.8
   Compiling unicode-ccc v0.4.0
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling fdeflate v0.3.7
   Compiling unicode-properties v0.1.4
   Compiling polycool v0.4.0
   Compiling siphasher v1.0.3
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling roxmltree v0.20.0
   Compiling tinyvec v1.13.2
   Compiling font-types v0.11.3
   Compiling slotmap v1.1.1
   Compiling zune-core v0.5.3
   Compiling kurbo v0.13.1
   Compiling byteorder-lite v0.1.0
   Compiling flate2 v1.1.10
   Compiling float-cmp v0.9.0
   Compiling read-fonts v0.39.2
   Compiling fontconfig-parser v0.5.8
   Compiling strict-num v0.1.1
   Compiling base64 v0.22.1
   Compiling color_quant v1.1.0
   Compiling weezl v0.1.12
   Compiling imagesize v0.14.0
   Compiling quick-error v2.0.1
   Compiling tiny-skia-path v0.12.0
   Compiling image-webp v0.2.4
   Compiling zune-jpeg v0.5.15
   Compiling core_maths v0.1.1
   Compiling memmap2 v0.9.11
   Compiling png v0.18.1
   Compiling gif v0.14.2
   Compiling ttf-parser v0.25.1
   Compiling roxmltree v0.21.1
   Compiling zerofrom v0.1.8
   Compiling simplecss v0.2.2
   Compiling stable_deref_trait v1.2.1
   Compiling rustc-hash v2.1.3
   Compiling itoa v1.0.18
   Compiling unicode-bidi v0.3.18
   Compiling svgtypes v0.16.1
   Compiling pico-args v0.5.0
   Compiling unicode-vo v0.1.0
   Compiling data-url v0.3.2
   Compiling xmlwriter v0.1.0
   Compiling ryu v1.0.23
   Compiling yoke v0.8.3
   Compiling pdf-writer v0.15.0
   Compiling rgb v0.8.53
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling tiny-skia v0.12.0
   Compiling semver v1.0.28
   Compiling hashbrown v0.17.1
   Compiling serde v1.0.229
   Compiling indexmap v2.14.2
   Compiling rustybuzz v0.20.1
   Compiling fontdb v0.23.0
   Compiling wasmparser v0.258.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling skrifa v0.42.1
   Compiling write-fonts v0.48.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__rhythm/core/pdf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 18.18s
     Running unittests src/lib.rs (core/pdf/target/debug/deps/slides_pdf-7ec7cd25f86a82d7)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/pdf/target/debug/deps/no_host_imports-09d1f8ca96bf3a46)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/render.rs (core/pdf/target/debug/deps/render-888658dffec5d3c9)

running 6 tests
test a_null_zero_length_pair_is_no_frames_not_a_dereference ... ok
test text_with_no_fonts_at_all_still_renders_the_shapes ... ok
test raster_image_is_embedded ... ok
test abi_frames_round_trip ... ok
test renders_text_as_embedded_glyphs ... ok
test two_svgs_make_two_pages ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_pdf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== fixtures: node dependencies
v22.23.4
10.9.9
=== fixtures: npm ci (needs the registry — see .amadan/README.md)

added 19 packages, and audited 20 packages in 2s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 10.9.9 -> 12.2.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
npm notice To update run: npm install -g npm@12.2.3
npm notice
=== fixtures: the JS side's own tests
TAP version 13
# Subtest: one finished upload is register_asset plus the block that uses it, in one batch
ok 1 - one finished upload is register_asset plus the block that uses it, in one batch
  ---
  duration_ms: 8.977273
  type: 'test'
  ...
# Subtest: a record missing its numbers still makes an op the core accepts
ok 2 - a record missing its numbers still makes an op the core accepts
  ---
  duration_ms: 1.233495
  type: 'test'
  ...
# Subtest: unusedAssets is what no slide refers to, and remove_asset drops one
ok 3 - unusedAssets is what no slide refers to, and remove_asset drops one
  ---
  duration_ms: 4.210386
  type: 'test'
  ...
# Subtest: the Unused images list reconciles by id and names each Remove button
ok 4 - the Unused images list reconciles by id and names each Remove button
  ---
  duration_ms: 1.794296
  type: 'test'
  ...
# Subtest: an upload refusal is said in words the person can act on
ok 5 - an upload refusal is said in words the person can act on
  ---
  duration_ms: 0.231925
  type: 'test'
  ...
# Subtest: a request is the trimmed prompt, the scope, the slide and the model
ok 6 - a request is the trimmed prompt, the scope, the slide and the model
  ---
  duration_ms: 2.078153
  type: 'test'
  ...
# Subtest: an empty, blank or over-long prompt, or "this slide" with none, is never sent
ok 7 - an empty, blank or over-long prompt, or "this slide" with none, is never sent
  ---
  duration_ms: 0.589382
  type: 'test'
  ...
# Subtest: server words map onto the panel's strings, and anything else is generic
ok 8 - server words map onto the panel's strings, and anything else is generic
  ---
  duration_ms: 0.269244
  type: 'test'
  ...
# Subtest: an answer must be a list of op objects; anything else is generic
ok 9 - an answer must be a list of op objects; anything else is generic
  ---
  duration_ms: 0.862249
  type: 'test'
  ...
# Subtest: an answer is posted as JSON, applied through commit, saved, and focused
ok 10 - an answer is posted as JSON, applied through commit, saved, and focused
  ---
  duration_ms: 0.820798
  type: 'test'
  ...
# Subtest: a slide is focused only once its save is acknowledged
ok 11 - a slide is focused only once its save is acknowledged
  ---
  duration_ms: 0.267919
  type: 'test'
  ...
# Subtest: no ops is "nothing", and nothing is committed
ok 12 - no ops is "nothing", and nothing is committed
  ---
  duration_ms: 0.369504
  type: 'test'
  ...
# Subtest: every failure is a word, and nothing is applied
ok 13 - every failure is a word, and nothing is applied
  ---
  duration_ms: 1.163771
  type: 'test'
  ...
# Subtest: undo takes back the answer's own step, once
ok 14 - undo takes back the answer's own step, once
  ---
  duration_ms: 0.824494
  type: 'test'
  ...
# Subtest: a batch shaped as the server answers it applies through ops.mjs
ok 15 - a batch shaped as the server answers it applies through ops.mjs
  ---
  duration_ms: 11.753465
  type: 'test'
  ...
# Subtest: the toggle is lit while the panel is open, and opening focuses the prompt
ok 16 - the toggle is lit while the panel is open, and opening focuses the prompt
  ---
  duration_ms: 2.532658
  type: 'test'
  ...
# Subtest: a deck with no slide opens on "the whole deck"
ok 17 - a deck with no slide opens on "the whole deck"
  ---
  duration_ms: 0.491214
  type: 'test'
  ...
# Subtest: asking is busy, then says what was done and offers Undo
ok 18 - asking is busy, then says what was done and offers Undo
  ---
  duration_ms: 1.090393
  type: 'test'
  ...
# Subtest: an error is said in the catalog's words, marked, and offers no Undo
ok 19 - an error is said in the catalog's words, marked, and offers no Undo
  ---
  duration_ms: 0.802727
  type: 'test'
  ...
# Subtest: destroy takes every listener away
ok 20 - destroy takes every listener away
  ---
  duration_ms: 0.519587
  type: 'test'
  ...
# Subtest: rowsFor: a canvas box is arranged in layers and placed; a flow box by region
ok 21 - rowsFor: a canvas box is arranged in layers and placed; a flow box by region
  ---
  duration_ms: 1.770193
  type: 'test'
  ...
# Subtest: canOwnContextMenu: never in text being edited, anywhere else on a box
ok 22 - canOwnContextMenu: never in text being edited, anywhere else on a box
  ---
  duration_ms: 0.932823
  type: 'test'
  ...
# Subtest: boxKey: the box's keys, and Delete and the arrows only from the box itself
ok 23 - boxKey: the box's keys, and Delete and the arrows only from the box itself
  ---
  duration_ms: 0.337482
  type: 'test'
  ...
# Subtest: open draws only the rows that apply, and focuses the first
ok 24 - open draws only the rows that apply, and focuses the first
  ---
  duration_ms: 3.176698
  type: 'test'
  ...
# Subtest: a row runs its command and closes; a region row sets the region
ok 25 - a row runs its command and closes; a region row sets the region
  ---
  duration_ms: 1.39093
  type: 'test'
  ...
# Subtest: the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
ok 26 - the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
  ---
  duration_ms: 1.50123
  type: 'test'
  ...
# Subtest: place: the round button follows the selection, and an empty selection closes the menu
ok 27 - place: the round button follows the selection, and an empty selection closes the menu
  ---
  duration_ms: 1.341689
  type: 'test'
  ...
# Subtest: a right-click on a box opens the menu; in text being edited it is the browser's
ok 28 - a right-click on a box opens the menu; in text being edited it is the browser's
  ---
  duration_ms: 0.772936
  type: 'test'
  ...
# Subtest: the keys: from the box, from its text, and never from outside the stage
ok 29 - the keys: from the box, from its text, and never from outside the stage
  ---
  duration_ms: 1.230673
  type: 'test'
  ...
# Subtest: sync: the menu closes when the slide's layout changes, and its region checks follow the box
ok 30 - sync: the menu closes when the slide's layout changes, and its region checks follow the box
  ---
  duration_ms: 3.122313
  type: 'test'
  ...
# Subtest: a row that no longer applies to the box does nothing, and closes the menu
ok 31 - a row that no longer applies to the box does nothing, and closes the menu
  ---
  duration_ms: 0.797998
  type: 'test'
  ...
# Subtest: destroy takes every listener off the page's elements
ok 32 - destroy takes every listener off the page's elements
  ---
  duration_ms: 0.372313
  type: 'test'
  ...
# Subtest: place: a stage with no room docks the round button beside the view switch
ok 33 - place: a stage with no room docks the round button beside the view switch
  ---
  duration_ms: 0.927894
  type: 'test'
  ...
# Subtest: place: the round button follows the phone screen's scroll, and goes while its box is out of sight
ok 34 - place: the round button follows the phone screen's scroll, and goes while its box is out of sight
  ---
  duration_ms: 0.725438
  type: 'test'
  ...
# Subtest: buttonSpot: at the top end corner, inside the stage, clear of every handle
ok 35 - buttonSpot: at the top end corner, inside the stage, clear of every handle
  ---
  duration_ms: 1.669942
  type: 'test'
  ...
# Subtest: menuSpot: under its anchor, flipped and kept inside the window
ok 36 - menuSpot: under its anchor, flipped and kept inside the window
  ---
  duration_ms: 1.047671
  type: 'test'
  ...
# Subtest: buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
ok 37 - buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
  ---
  duration_ms: 87.316816
  type: 'test'
  ...
# Subtest: buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
ok 38 - buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
  ---
  duration_ms: 1.99445
  type: 'test'
  ...
# Subtest: buttonSpot: thousands of boxes, every answer fits, null only when nothing does
ok 39 - buttonSpot: thousands of boxes, every answer fits, null only when nothing does
  ---
  duration_ms: 38.956568
  type: 'test'
  ...
# Subtest: clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
ok 40 - clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
  ---
  duration_ms: 0.300646
  type: 'test'
  ...
# Subtest: buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
ok 41 - buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
  ---
  duration_ms: 0.646465
  type: 'test'
  ...
# Subtest: clampBox keeps the box inside the frame and no smaller than the minimum
ok 42 - clampBox keeps the box inside the frame and no smaller than the minimum
  ---
  duration_ms: 1.594787
  type: 'test'
  ...
# Subtest: fixBox writes four decimals
ok 43 - fixBox writes four decimals
  ---
  duration_ms: 0.304274
  type: 'test'
  ...
# Subtest: guides are the thirds plus every other block edge
ok 44 - guides are the thirds plus every other block edge
  ---
  duration_ms: 0.278159
  type: 'test'
  ...
# Subtest: snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
ok 45 - snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
  ---
  duration_ms: 0.424144
  type: 'test'
  ...
# Subtest: snapResize moves only the edges the handle drags
ok 46 - snapResize moves only the edges the handle drags
  ---
  duration_ms: 0.280979
  type: 'test'
  ...
# Subtest: moveBox and resizeBox by handle
ok 47 - moveBox and resizeBox by handle
  ---
  duration_ms: 0.275332
  type: 'test'
  ...
# Subtest: nudge: arrows move by half a per cent, Shift by two, Alt resizes
ok 48 - nudge: arrows move by half a per cent, Shift by two, Alt resizes
  ---
  duration_ms: 0.366068
  type: 'test'
  ...
# Subtest: rectBox reads a block rectangle against its frame
ok 49 - rectBox reads a block rectangle against its frame
  ---
  duration_ms: 0.314938
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
ok 50 - a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
  ---
  duration_ms: 24.032307
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
ok 51 - a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
  ---
  duration_ms: 4.570695
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (g) the refused x after the paste point
ok 52 - a paste that waited for its font is kept: (g) the refused x after the paste point
  ---
  duration_ms: 4.748656
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (c) two refused x, the paste after the second
ok 53 - a paste that waited for its font is kept: (c) two refused x, the paste after the second
  ---
  duration_ms: 3.081387
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
ok 54 - a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
  ---
  duration_ms: 3.144164
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (e) the paste over "paragraph.x"
ok 55 - a paste that waited for its font is kept: (e) the paste over "paragraph.x"
  ---
  duration_ms: 5.135917
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (f) a refused deletion elsewhere
ok 56 - a paste that waited for its font is kept: (f) a refused deletion elsewhere
  ---
  duration_ms: 2.697817
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
ok 57 - a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
  ---
  duration_ms: 3.040664
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
ok 58 - a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
  ---
  duration_ms: 6.226739
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (k) a colleague appended where the x was refused
ok 59 - a paste that waited for its font is kept: (k) a colleague appended where the x was refused
  ---
  duration_ms: 6.085825
  type: 'test'
  ...
# Subtest: a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
ok 60 - a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
  ---
  duration_ms: 1.855892
  type: 'test'
  ...
# Subtest: a paste made elsewhere carries as its own updates, not a replay
ok 61 - a paste made elsewhere carries as its own updates, not a replay
  ---
  duration_ms: 1.625607
  type: 'test'
  ...
# Subtest: the replay is one change for an undo manager tracking the carried origin
ok 62 - the replay is one change for an undo manager tracking the carried origin
  ---
  duration_ms: 2.950682
  type: 'test'
  ...
# Subtest: every update written on top of the refused text is held back, not only the first
ok 63 - every update written on top of the refused text is held back, not only the first
  ---
  duration_ms: 1.652105
  type: 'test'
  ...
# Subtest: a Backspace over the refused text is held back
ok 64 - a Backspace over the refused text is held back
  ---
  duration_ms: 0.963301
  type: 'test'
  ...
# Subtest: of an update that partly took, the part that took is posted, and nothing the server would hold pending
ok 65 - of an update that partly took, the part that took is posted, and nothing the server would hold pending
  ---
  duration_ms: 1.643568
  type: 'test'
  ...
# Subtest: an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
ok 66 - an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
  ---
  duration_ms: 2.48356
  type: 'test'
  ...
# Subtest: a paste elsewhere is posted and a keystroke after the refused x is not
ok 67 - a paste elsewhere is posted and a keystroke after the refused x is not
  ---
  duration_ms: 2.570686
  type: 'test'
  ...
# Subtest: took reads all, some and none from the update itself
ok 68 - took reads all, some and none from the update itself
  ---
  duration_ms: 1.001149
  type: 'test'
  ...
# Subtest: a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
ok 69 - a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
  ---
  duration_ms: 6.06547
  type: 'test'
  ...
# Subtest: a paste right after a refused repeated letter lands where it was made
ok 70 - a paste right after a refused repeated letter lands where it was made
  ---
  duration_ms: 2.279366
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
ok 71 - a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
  ---
  duration_ms: 2.112587
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
ok 72 - a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
  ---
  duration_ms: 1.289789
  type: 'test'
  ...
# Subtest: the keeper groups the updates of one held change into one entry, and hands the entries over once
ok 73 - the keeper groups the updates of one held change into one entry, and hands the entries over once
  ---
  duration_ms: 0.525649
  type: 'test'
  ...
# Subtest: every change made while diverged is kept, whatever it was written on
ok 74 - every change made while diverged is kept, whatever it was written on
  ---
  duration_ms: 6.165367
  type: 'test'
  ...
# Subtest: a change that cannot be kept in the middle loses nothing after it
ok 75 - a change that cannot be kept in the middle loses nothing after it
  ---
  duration_ms: 3.445683
  type: 'test'
  ...
# Subtest: a replay that cannot be made falls back to what of the change's own updates integrates
ok 76 - a replay that cannot be made falls back to what of the change's own updates integrates
  ---
  duration_ms: 1.316466
  type: 'test'
  ...
# Subtest: the carried changes undo in the steps they were made in
ok 77 - the carried changes undo in the steps they were made in
  ---
  duration_ms: 3.711246
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
ok 78 - a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
  ---
  duration_ms: 0.777259
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
ok 79 - a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
  ---
  duration_ms: 0.727604
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: a delete, then an insert past the refused text
ok 80 - a multi-step change replays each step where it was made: a delete, then an insert past the refused text
  ---
  duration_ms: 0.331538
  type: 'test'
  ...
# Subtest: a mark made over an insertion in the same change covers all of it
ok 81 - a mark made over an insertion in the same change covers all of it
  ---
  duration_ms: 0.342193
  type: 'test'
  ...
# Subtest: a multi-step change on the refused text is replayed where it was made, on the page and the server
ok 82 - a multi-step change on the refused text is replayed where it was made, on the page and the server
  ---
  duration_ms: 1.933312
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
ok 83 - an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
  ---
  duration_ms: 4.347124
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
ok 84 - an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
  ---
  duration_ms: 6.358497
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
ok 85 - an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
  ---
  duration_ms: 3.526757
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
ok 86 - an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
  ---
  duration_ms: 6.264335
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
ok 87 - an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
  ---
  duration_ms: 4.10487
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
ok 88 - an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
  ---
  duration_ms: 2.225736
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
ok 89 - an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
  ---
  duration_ms: 4.557622
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
ok 90 - an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
  ---
  duration_ms: 7.407999
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
ok 91 - an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
  ---
  duration_ms: 3.369317
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
ok 92 - an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
  ---
  duration_ms: 3.233901
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
ok 93 - an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
  ---
  duration_ms: 4.759043
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
ok 94 - an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
  ---
  duration_ms: 4.16318
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
ok 95 - an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
  ---
  duration_ms: 2.707281
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
ok 96 - an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
  ---
  duration_ms: 2.468566
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
ok 97 - an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
  ---
  duration_ms: 2.595719
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
ok 98 - an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
  ---
  duration_ms: 2.273825
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
ok 99 - an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
  ---
  duration_ms: 2.912329
  type: 'test'
  ...
# Subtest: an undo of a change saved before the refusal is still carried
ok 100 - an undo of a change saved before the refusal is still carried
  ---
  duration_ms: 1.974747
  type: 'test'
  ...
# Subtest: derivedStep turns one document into the other, and is null for the same one
ok 101 - derivedStep turns one document into the other, and is null for the same one
  ---
  duration_ms: 0.204775
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
ok 102 - carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
  ---
  duration_ms: 2066.637211
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
ok 103 - carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
  ---
  duration_ms: 3845.620916
  type: 'test'
  ...
# Subtest: a client id never collides with one the document already holds
ok 104 - a client id never collides with one the document already holds
  ---
  duration_ms: 0.375329
  type: 'test'
  ...
# Subtest: ProseMirror changes inside one window share an id; one held back there does not strand the next
ok 105 - ProseMirror changes inside one window share an id; one held back there does not strand the next
  ---
  duration_ms: 1.748915
  type: 'test'
  ...
# Subtest: typing into a block is a text change on its slide only
ok 106 - typing into a block is a text change on its slide only
  ---
  duration_ms: 8.61086
  type: 'test'
  ...
# Subtest: a block's props changing is structure on its slide
ok 107 - a block's props changing is structure on its slide
  ---
  duration_ms: 1.864965
  type: 'test'
  ...
# Subtest: adding, moving or removing a block is structure on its slide
ok 108 - adding, moving or removing a block is structure on its slide
  ---
  duration_ms: 2.773474
  type: 'test'
  ...
# Subtest: the notes are text on their slide
ok 109 - the notes are text on their slide
  ---
  duration_ms: 1.474109
  type: 'test'
  ...
# Subtest: a slide added, removed or moved is an order change
ok 110 - a slide added, removed or moved is an order change
  ---
  duration_ms: 2.579019
  type: 'test'
  ...
# Subtest: one transaction touching several things reports each once
ok 111 - one transaction touching several things reports each once
  ---
  duration_ms: 1.071929
  type: 'test'
  ...
# Subtest: what the ops write passes, and so does an empty document
ok 112 - what the ops write passes, and so does an empty document
  ---
  duration_ms: 9.455339
  type: 'test'
  ...
# Subtest: the shapes y-prosemirror and older documents write pass
ok 113 - the shapes y-prosemirror and older documents write pass
  ---
  duration_ms: 1.851837
  type: 'test'
  ...
# Subtest: an unknown formatting attribute is reported with the core's message
ok 114 - an unknown formatting attribute is reported with the core's message
  ---
  duration_ms: 2.49411
  type: 'test'
  ...
# Subtest: an element inside a paragraph, a non-paragraph child and bare text are reported
ok 115 - an element inside a paragraph, a non-paragraph child and bare text are reported
  ---
  duration_ms: 3.797211
  type: 'test'
  ...
# Subtest: the unknownmark poison shape is what the check refuses
ok 116 - the unknownmark poison shape is what the check refuses
  ---
  duration_ms: 3.934956
  type: 'test'
  ...
# Subtest: y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
ok 117 - y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
  ---
  duration_ms: 4.54647
  type: 'test'
  ...
# Subtest: the vocabulary is the five marks and nothing else
ok 118 - the vocabulary is the five marks and nothing else
  ---
  duration_ms: 0.174587
  type: 'test'
  ...
# Subtest: a reload reuses the id this tab stored for the deck
ok 119 - a reload reuses the id this tab stored for the deck
  ---
  duration_ms: 3.849816
  type: 'test'
  ...
# Subtest: two tabs, and two decks in one tab, get different ids
ok 120 - two tabs, and two decks in one tab, get different ids
  ---
  duration_ms: 1.242238
  type: 'test'
  ...
# Subtest: a stored value that is not an id, or storage that throws, gives a fresh id
ok 121 - a stored value that is not an id, or storage that throws, gives a fresh id
  ---
  duration_ms: 0.471536
  type: 'test'
  ...
# Subtest: a duplicated tab gives up the copied id; the original keeps it
ok 122 - a duplicated tab gives up the copied id; the original keeps it
  ---
  duration_ms: 6.549507
  type: 'test'
  ...
# Subtest: a reload finds no rival and keeps its id
ok 123 - a reload finds no rival and keeps its id
  ---
  duration_ms: 1.758548
  type: 'test'
  ...
# Subtest: presence switches id: beats carry the new one and the old one is somebody else
ok 124 - presence switches id: beats carry the new one and the old one is somebody else
  ---
  duration_ms: 1.175168
  type: 'test'
  ...
# Subtest: setTitle commits the deck's title, one set_meta
ok 125 - setTitle commits the deck's title, one set_meta
  ---
  duration_ms: 2.758456
  type: 'test'
  ...
# Subtest: accent-reset commits the theme's accent back, once
ok 126 - accent-reset commits the theme's accent back, once
  ---
  duration_ms: 0.242371
  type: 'test'
  ...
# Subtest: addBlock commits the kind after the selected box, then selects it; refused, selects nothing
ok 127 - addBlock commits the kind after the selected box, then selects it; refused, selects nothing
  ---
  duration_ms: 1.362192
  type: 'test'
  ...
# Subtest: addBlock with no slide on the stage commits nothing
ok 128 - addBlock with no slide on the stage commits nothing
  ---
  duration_ms: 0.394612
  type: 'test'
  ...
# Subtest: the box menu's rows into the card: Format and Position and size, for a selected box only
ok 129 - the box menu's rows into the card: Format and Position and size, for a selected box only
  ---
  duration_ms: 0.306162
  type: 'test'
  ...
# Subtest: a change that loads runs once and releases the queue in order
ok 130 - a change that loads runs once and releases the queue in order
  ---
  duration_ms: 5.956879
  type: 'test'
  ...
# Subtest: a refusal releases the queue in order and refills the inspector
ok 131 - a refusal releases the queue in order and refills the inspector
  ---
  duration_ms: 1.088492
  type: 'test'
  ...
# Subtest: a refusal whose notice throws still releases the queue
ok 132 - a refusal whose notice throws still releases the queue
  ---
  duration_ms: 1.164831
  type: 'test'
  ...
# Subtest: a change that throws still releases the queue, and is refused
ok 133 - a change that throws still releases the queue, and is refused
  ---
  duration_ms: 0.848176
  type: 'test'
  ...
# Subtest: a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
ok 134 - a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
  ---
  duration_ms: 0.993992
  type: 'test'
  ...
# Subtest: a second change during a wait is refused at once and never queued
ok 135 - a second change during a wait is refused at once and never queued
  ---
  duration_ms: 0.625355
  type: 'test'
  ...
# Subtest: free() with no wait on resolves at once
ok 136 - free() with no wait on resolves at once
  ---
  duration_ms: 2.326809
  type: 'test'
  ...
# Subtest: a wait makes the Deck settings dialog inert with the card
ok 137 - a wait makes the Deck settings dialog inert with the card
  ---
  duration_ms: 0.665597
  type: 'test'
  ...
# Subtest: the shared vectors have cases to check
ok 138 - the shared vectors have cases to check
  ---
  duration_ms: 1.196721
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck draws in nothing
ok 139 - familiesOfView: an empty deck draws in nothing
  ---
  duration_ms: 0.873207
  type: 'test'
  ...
# Subtest: familiesOfView: paper: serif headings, sans body
ok 140 - familiesOfView: paper: serif headings, sans body
  ---
  duration_ms: 0.5504
  type: 'test'
  ...
# Subtest: familiesOfView: ink: sans for both
ok 141 - familiesOfView: ink: sans for both
  ---
  duration_ms: 0.17015
  type: 'test'
  ...
# Subtest: familiesOfView: an unknown theme is paper
ok 142 - familiesOfView: an unknown theme is paper
  ---
  duration_ms: 0.147265
  type: 'test'
  ...
# Subtest: familiesOfView: a code block brings in mono
ok 143 - familiesOfView: a code block brings in mono
  ---
  duration_ms: 0.130181
  type: 'test'
  ...
# Subtest: familiesOfView: an empty code block still does
ok 144 - familiesOfView: an empty code block still does
  ---
  duration_ms: 0.284817
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a text block
ok 145 - familiesOfView: a code mark in a text block
  ---
  duration_ms: 0.303027
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a heading
ok 146 - familiesOfView: a code mark in a heading
  ---
  duration_ms: 0.521404
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a table cell
ok 147 - familiesOfView: a code mark in a table cell
  ---
  duration_ms: 0.723001
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in the notes is the chrome's
ok 148 - familiesOfView: a code mark in the notes is the chrome's
  ---
  duration_ms: 0.248774
  type: 'test'
  ...
# Subtest: familiesOfView: bold, italic, highlight and links stay in the family
ok 149 - familiesOfView: bold, italic, highlight and links stay in the family
  ---
  duration_ms: 1.055663
  type: 'test'
  ...
# Subtest: familiesOfView: the inspector's system heading drops serif
ok 150 - familiesOfView: the inspector's system heading drops serif
  ---
  duration_ms: 0.225086
  type: 'test'
  ...
# Subtest: familiesOfView: system faces for both draw in no web face
ok 151 - familiesOfView: system faces for both draw in no web face
  ---
  duration_ms: 0.078178
  type: 'test'
  ...
# Subtest: familiesOfView: a body override naming mono
ok 152 - familiesOfView: a body override naming mono
  ---
  duration_ms: 0.157664
  type: 'test'
  ...
# Subtest: familiesOfView: a family anywhere in a stack counts
ok 153 - familiesOfView: a family anywhere in a stack counts
  ---
  duration_ms: 0.084304
  type: 'test'
  ...
# Subtest: familiesOfView: an override that fails the allowlist is the theme's
ok 154 - familiesOfView: an override that fails the allowlist is the theme's
  ---
  duration_ms: 0.091408
  type: 'test'
  ...
# Subtest: familiesOfView: a too-long override is the theme's
ok 155 - familiesOfView: a too-long override is the theme's
  ---
  duration_ms: 0.076036
  type: 'test'
  ...
# Subtest: familiesOfView: padded overrides are trimmed
ok 156 - familiesOfView: padded overrides are trimmed
  ---
  duration_ms: 0.06346
  type: 'test'
  ...
# Subtest: familiesOfView: a family named only on a later slide's code
ok 157 - familiesOfView: a family named only on a later slide's code
  ---
  duration_ms: 0.068916
  type: 'test'
  ...
# Subtest: a stack names a family wherever it appears, in any case, quoted or not
ok 158 - a stack names a family wherever it appears, in any case, quoted or not
  ---
  duration_ms: 0.118616
  type: 'test'
  ...
# Subtest: safeFontStack is render.go's allowlist
ok 159 - safeFontStack is render.go's allowlist
  ---
  duration_ms: 0.125548
  type: 'test'
  ...
# Subtest: a section names its heading and body families
ok 160 - a section names its heading and body families
  ---
  duration_ms: 0.349598
  type: 'test'
  ...
# Subtest: a section with code in it brings in the code family
ok 161 - a section with code in it brings in the code family
  ---
  duration_ms: 0.253636
  type: 'test'
  ...
# Subtest: only the two font properties are read off a section
ok 162 - only the two font properties are read off a section
  ---
  duration_ms: 0.249233
  type: 'test'
  ...
# Subtest: nothing joins the page until all four faces of a family are in, and then all four do
ok 163 - nothing joins the page until all four faces of a family are in, and then all four do
  ---
  duration_ms: 7.712568
  type: 'test'
  ...
# Subtest: every face is a block face of the manifest's family, weight and style
ok 164 - every face is a block face of the manifest's family, weight and style
  ---
  duration_ms: 2.449684
  type: 'test'
  ...
# Subtest: a family that misses the deadline is committed and never joins, even when it arrives
ok 165 - a family that misses the deadline is committed and never joins, even when it arrives
  ---
  duration_ms: 1.393229
  type: 'test'
  ...
# Subtest: a family whose file fails is committed by the gate: wrong but stable
ok 166 - a family whose file fails is committed by the gate: wrong but stable
  ---
  duration_ms: 0.891574
  type: 'test'
  ...
# Subtest: a person's action waits for its family and then may run, once it is in
ok 167 - a person's action waits for its family and then may run, once it is in
  ---
  duration_ms: 0.720607
  type: 'test'
  ...
# Subtest: a person's action is refused when its family fails or is late, and nothing is committed
ok 168 - a person's action is refused when its family fails or is late, and nothing is committed
  ---
  duration_ms: 1.869343
  type: 'test'
  ...
# Subtest: content from elsewhere waits for a new family, then is committed past the timeout, never held
ok 169 - content from elsewhere waits for a new family, then is committed past the timeout, never held
  ---
  duration_ms: 1.493296
  type: 'test'
  ...
# Subtest: a family on screen in its web face is never committed
ok 170 - a family on screen in its web face is never committed
  ---
  duration_ms: 1.488032
  type: 'test'
  ...
# Subtest: a composition commits a family that is not in, rather than waiting
ok 171 - a composition commits a family that is not in, rather than waiting
  ---
  duration_ms: 0.689355
  type: 'test'
  ...
# Subtest: prefetch loads the families not asked for yet, one at a time, and puts none on
ok 172 - prefetch loads the families not asked for yet, one at a time, and puts none on
  ---
  duration_ms: 2.630134
  type: 'test'
  ...
# Subtest: an unknown family is no family
ok 173 - an unknown family is no family
  ---
  duration_ms: 0.43467
  type: 'test'
  ...
# Subtest: the system session is ready for everything and loads nothing
ok 174 - the system session is ready for everything and loads nothing
  ---
  duration_ms: 0.237545
  type: 'test'
  ...
# Subtest: a range carrying the mark is pressed; one without is not
ok 175 - a range carrying the mark is pressed; one without is not
  ---
  duration_ms: 2.386662
  type: 'test'
  ...
# Subtest: at a cursor, the stored marks decide
ok 176 - at a cursor, the stored marks decide
  ---
  duration_ms: 0.645797
  type: 'test'
  ...
# Subtest: focus moving to another place to type lets go; to a button keeps the view
ok 177 - focus moving to another place to type lets go; to a button keeps the view
  ---
  duration_ms: 0.281775
  type: 'test'
  ...
# Subtest: the whole card is the bar: its own fields keep the view
ok 178 - the whole card is the bar: its own fields keep the view
  ---
  duration_ms: 0.197597
  type: 'test'
  ...
# Subtest: the marks act on the box the card shows, and on no other
ok 179 - the marks act on the box the card shows, and on no other
  ---
  duration_ms: 0.536767
  type: 'test'
  ...
# Subtest: a view's box is the nearest block around it: a table cell's is the table
ok 180 - a view's box is the nearest block around it: a table cell's is the table
  ---
  duration_ms: 0.192067
  type: 'test'
  ...
# Subtest: an empty body is no frames
ok 181 - an empty body is no frames
  ---
  duration_ms: 1.322071
  type: 'test'
  ...
# Subtest: frames come back in order with their exact bytes
ok 182 - frames come back in order with their exact bytes
  ---
  duration_ms: 0.358887
  type: 'test'
  ...
# Subtest: a length prefix is big-endian
ok 183 - a length prefix is big-endian
  ---
  duration_ms: 0.31176
  type: 'test'
  ...
# Subtest: a truncated frame throws rather than returning a short update
ok 184 - a truncated frame throws rather than returning a short update
  ---
  duration_ms: 1.188831
  type: 'test'
  ...
# Subtest: Format writes the cookie the server reads, and flips the card and its toggles
ok 185 - Format writes the cookie the server reads, and flips the card and its toggles
  ---
  duration_ms: 3.708414
  type: 'test'
  ...
# Subtest: the View menu row toggles the card too, and keeps aria-pressed with the button
ok 186 - the View menu row toggles the card too, and keeps aria-pressed with the button
  ---
  duration_ms: 0.600339
  type: 'test'
  ...
# Subtest: the first paint is the server's: mounting writes nothing and changes nothing
ok 187 - the first paint is the server's: mounting writes nothing and changes nothing
  ---
  duration_ms: 0.549595
  type: 'test'
  ...
# Subtest: an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
ok 188 - an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
  ---
  duration_ms: 1.795386
  type: 'test'
  ...
# Subtest: an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
ok 189 - an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
  ---
  duration_ms: 0.961831
  type: 'test'
  ...
# Subtest: with a cookie already set, an old localStorage key is dropped and not applied
ok 190 - with a cookie already set, an old localStorage key is dropped and not applied
  ---
  duration_ms: 0.717286
  type: 'test'
  ...
# Subtest: with cookies blocked, Format still shows and hides the card for this page
ok 191 - with cookies blocked, Format still shows and hides the card for this page
  ---
  duration_ms: 0.585885
  type: 'test'
  ...
# Subtest: with site data blocked (localStorage throws), the toggle still works
ok 192 - with site data blocked (localStorage throws), the toggle still works
  ---
  duration_ms: 0.381655
  type: 'test'
  ...
# Subtest: showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
ok 193 - showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
  ---
  duration_ms: 2.004255
  type: 'test'
  ...
# Subtest: Format from the keyboard moves focus into the card; from a pointer it does not
ok 194 - Format from the keyboard moves focus into the card; from a pointer it does not
  ---
  duration_ms: 1.576602
  type: 'test'
  ...
# Subtest: asking to delete a slide shows a hidden card, with focus
ok 195 - asking to delete a slide shows a hidden card, with focus
  ---
  duration_ms: 0.338723
  type: 'test'
  ...
# Subtest: on https the cookie is Secure
ok 196 - on https the cookie is Secure
  ---
  duration_ms: 2.776574
  type: 'test'
  ...
# Subtest: opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
ok 197 - opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
  ---
  duration_ms: 0.482594
  type: 'test'
  ...
# Subtest: dismissed from inside the card through the View row, focus goes to the menu's button
ok 198 - dismissed from inside the card through the View row, focus goes to the menu's button
  ---
  duration_ms: 0.28694
  type: 'test'
  ...
# Subtest: a return target that can no longer take focus falls back to Format
ok 199 - a return target that can no longer take focus falls back to Format
  ---
  duration_ms: 0.341484
  type: 'test'
  ...
# Subtest: asking to delete from a strip item's menu returns focus to that menu's button
ok 200 - asking to delete from a strip item's menu returns focus to that menu's button
  ---
  duration_ms: 0.317942
  type: 'test'
  ...
# Subtest: focus into the card reaches a radio group at its checked radio
ok 201 - focus into the card reaches a radio group at its checked radio
  ---
  duration_ms: 0.200918
  type: 'test'
  ...
# Subtest: the bar's title is the one place the deck's title is edited: a change is commitTitle
ok 202 - the bar's title is the one place the deck's title is edited: a change is commitTitle
  ---
  duration_ms: 0.48448
  type: 'test'
  ...
# Subtest: a menu row's dialog opens modal, and on close focus goes to the menu's title
ok 203 - a menu row's dialog opens modal, and on close focus goes to the menu's title
  ---
  duration_ms: 0.342434
  type: 'test'
  ...
# Subtest: an Insert row adds its kind through commands.addBlock, and closes the menu
ok 204 - an Insert row adds its kind through commands.addBlock, and closes the menu
  ---
  duration_ms: 0.609332
  type: 'test'
  ...
# Subtest: View → Outline opens the Outline under the View menu's title, and leaves the card alone
ok 205 - View → Outline opens the Outline under the View menu's title, and leaves the card alone
  ---
  duration_ms: 0.347534
  type: 'test'
  ...
# Subtest: it starts on the slide, as the server rendered it
ok 206 - it starts on the slide, as the server rendered it
  ---
  duration_ms: 1.60965
  type: 'test'
  ...
# Subtest: a box selected shows the box
ok 207 - a box selected shows the box
  ---
  duration_ms: 1.584178
  type: 'test'
  ...
# Subtest: nothing selected shows the slide
ok 208 - nothing selected shows the slide
  ---
  duration_ms: 0.157502
  type: 'test'
  ...
# Subtest: the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
ok 209 - the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
  ---
  duration_ms: 0.154244
  type: 'test'
  ...
# Subtest: the caret in the notes shows the notes
ok 210 - the caret in the notes shows the notes
  ---
  duration_ms: 0.287362
  type: 'test'
  ...
# Subtest: with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
ok 211 - with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
  ---
  duration_ms: 0.170205
  type: 'test'
  ...
# Subtest: the caret back on the stage leaves the kind to the selection
ok 212 - the caret back on the stage leaves the kind to the selection
  ---
  duration_ms: 0.349483
  type: 'test'
  ...
# Subtest: reset shows the slide, from anything
ok 213 - reset shows the slide, from anything
  ---
  duration_ms: 0.263138
  type: 'test'
  ...
# Subtest: onChange hears a change of kind only, never a repeat
ok 214 - onChange hears a change of kind only, never a repeat
  ---
  duration_ms: 0.60979
  type: 'test'
  ...
# Subtest: a box, the notes, then the same box again shows the box
ok 215 - a box, the notes, then the same box again shows the box
  ---
  duration_ms: 0.623981
  type: 'test'
  ...
# Subtest: no slide left (a colleague removed the last one) shows the deck, from the notes or a box
ok 216 - no slide left (a colleague removed the last one) shows the deck, from the notes or a box
  ---
  duration_ms: 0.319209
  type: 'test'
  ...
# Subtest: a slide shown keeps the card as it was: the notes stay the notes
ok 217 - a slide shown keeps the card as it was: the notes stay the notes
  ---
  duration_ms: 0.128874
  type: 'test'
  ...
# Subtest: appearsOf: with the slide, on a press, item by item
ok 218 - appearsOf: with the slide, on a press, item by item
  ---
  duration_ms: 1.22579
  type: 'test'
  ...
# Subtest: appearsOps: On a press takes the next step after the largest
ok 219 - appearsOps: On a press takes the next step after the largest
  ---
  duration_ms: 1.248249
  type: 'test'
  ...
# Subtest: appearsOps: With the slide clears the step and the items
ok 220 - appearsOps: With the slide clears the step and the items
  ---
  duration_ms: 0.311943
  type: 'test'
  ...
# Subtest: appearsOps: Item by item is a list's, and gives it a press when it has none
ok 221 - appearsOps: Item by item is a list's, and gives it a press when it has none
  ---
  duration_ms: 0.258109
  type: 'test'
  ...
# Subtest: afterOps: the midpoint between the press and the next one, nothing renumbered
ok 222 - afterOps: the midpoint between the press and the next one, nothing renumbered
  ---
  duration_ms: 1.491268
  type: 'test'
  ...
# Subtest: afterOps: the box ends up in the press after the one chosen
ok 223 - afterOps: the box ends up in the press after the one chosen
  ---
  duration_ms: 0.303496
  type: 'test'
  ...
# Subtest: afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
ok 224 - afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
  ---
  duration_ms: 0.428332
  type: 'test'
  ...
# Subtest: appearsShown: Item by item is offered on a list alone
ok 225 - appearsShown: Item by item is offered on a list alone
  ---
  duration_ms: 0.408771
  type: 'test'
  ...
# Subtest: marksFor: press numbers in press order, not step values; a list item by item numbers each item
ok 226 - marksFor: press numbers in press order, not step values; a list item by item numbers each item
  ---
  duration_ms: 0.699225
  type: 'test'
  ...
# Subtest: deck controls are set_meta
ok 227 - deck controls are set_meta
  ---
  duration_ms: 13.460247
  type: 'test'
  ...
# Subtest: slide controls are set_slide, and background keeps its colour
ok 228 - slide controls are set_slide, and background keeps its colour
  ---
  duration_ms: 4.56515
  type: 'test'
  ...
# Subtest: move up and down are move_slide with the right after
ok 229 - move up and down are move_slide with the right after
  ---
  duration_ms: 2.156135
  type: 'test'
  ...
# Subtest: block props: value kinds, region, a shape label
ok 230 - block props: value kinds, region, a shape label
  ---
  duration_ms: 2.038756
  type: 'test'
  ...
# Subtest: box fields are set_block on the desktop and set_phone in the phone view
ok 231 - box fields are set_block on the desktop and set_phone in the phone view
  ---
  duration_ms: 2.411041
  type: 'test'
  ...
# Subtest: move block and the layer buttons
ok 232 - move block and the layer buttons
  ---
  duration_ms: 1.738912
  type: 'test'
  ...
# Subtest: add block: region after the selection on flow, a default box on canvas, a heading level that fits
ok 233 - add block: region after the selection on flow, a default box on canvas, a heading level that fits
  ---
  duration_ms: 10.116598
  type: 'test'
  ...
# Subtest: a block is named by its type and its first words
ok 234 - a block is named by its type and its first words
  ---
  duration_ms: 1.189433
  type: 'test'
  ...
# Subtest: blockChange: a control element to its op
ok 235 - blockChange: a control element to its op
  ---
  duration_ms: 2.003199
  type: 'test'
  ...
# Subtest: a segmented choice: setValue checks the radio for the value, and its change is the prop
ok 236 - a segmented choice: setValue checks the radio for the value, and its change is the prop
  ---
  duration_ms: 1.834346
  type: 'test'
  ...
# Subtest: corner radius shows for an image and a rectangle, not for a shape with no corners
ok 237 - corner radius shows for an image and a rectangle, not for a shape with no corners
  ---
  duration_ms: 3.148685
  type: 'test'
  ...
# Subtest: a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
ok 238 - a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
  ---
  duration_ms: 1.286289
  type: 'test'
  ...
# Subtest: Position and size keeps open or closed across a remount, in memory only
ok 239 - Position and size keeps open or closed across a remount, in memory only
  ---
  duration_ms: 3.472144
  type: 'test'
  ...
# Subtest: litFor: Free placement on a canvas slide, else the template
ok 240 - litFor: Free placement on a canvas slide, else the template
  ---
  duration_ms: 1.311986
  type: 'test'
  ...
# Subtest: pickOps: the four cases, op for op
ok 241 - pickOps: the four cases, op for op
  ---
  duration_ms: 0.970375
  type: 'test'
  ...
# Subtest: the pictures are the seven templates, then Free placement
ok 242 - the pictures are the seven templates, then Free placement
  ---
  duration_ms: 0.133264
  type: 'test'
  ...
# Subtest: fill lights exactly one picture: the template, or Free placement
ok 243 - fill lights exactly one picture: the template, or Free placement
  ---
  duration_ms: 2.901432
  type: 'test'
  ...
# Subtest: a choice on a flow slide commits its op, and asks nothing
ok 244 - a choice on a flow slide commits its op, and asks nothing
  ---
  duration_ms: 1.668181
  type: 'test'
  ...
# Subtest: a template on a canvas slide asks in the card first and commits nothing
ok 245 - a template on a canvas slide asks in the card first and commits nothing
  ---
  duration_ms: 2.825776
  type: 'test'
  ...
# Subtest: its action commits both ops in one commit call
ok 246 - its action commits both ops in one commit call
  ---
  duration_ms: 0.996512
  type: 'test'
  ...
# Subtest: cancel commits nothing and lights Free placement again
ok 247 - cancel commits nothing and lights Free placement again
  ---
  duration_ms: 1.52081
  type: 'test'
  ...
# Subtest: choosing Free placement again while asked withdraws the question
ok 248 - choosing Free placement again while asked withdraws the question
  ---
  duration_ms: 1.035723
  type: 'test'
  ...
# Subtest: fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
ok 249 - fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
  ---
  duration_ms: 1.354469
  type: 'test'
  ...
# Subtest: fill on another slide, or none, withdraws the question
ok 250 - fill on another slide, or none, withdraws the question
  ---
  duration_ms: 1.046816
  type: 'test'
  ...
# Subtest: Escape in a row's popover closes it, focuses its row, and goes no further
ok 251 - Escape in a row's popover closes it, focuses its row, and goes no further
  ---
  duration_ms: 0.895509
  type: 'test'
  ...
# Subtest: destroy takes every listener off the form
ok 252 - destroy takes every listener off the form
  ---
  duration_ms: 0.516047
  type: 'test'
  ...
# Subtest: open resolves to the button that closed it and the trimmed field
ok 253 - open resolves to the button that closed it and the trimmed field
  ---
  duration_ms: 1.582042
  type: 'test'
  ...
# Subtest: a second open while the dialog is up joins the first
ok 254 - a second open while the dialog is up joins the first
  ---
  duration_ms: 0.200226
  type: 'test'
  ...
# Subtest: a missing dialog mounts as nothing
ok 255 - a missing dialog mounts as nothing
  ---
  duration_ms: 0.132147
  type: 'test'
  ...
# Subtest: a tab advances its own cursor only when its POST is the very next row
ok 256 - a tab advances its own cursor only when its POST is the very next row
  ---
  duration_ms: 1.371948
  type: 'test'
  ...
# Subtest: the cursor never moves backwards when a response is overtaken by this tab's own write
ok 257 - the cursor never moves backwards when a response is overtaken by this tab's own write
  ---
  duration_ms: 0.612662
  type: 'test'
  ...
# Subtest: a later response still carries the cursor forward
ok 258 - a later response still carries the cursor forward
  ---
  duration_ms: 0.380343
  type: 'test'
  ...
# Subtest: a burst of notifications collapses into one fetch at a time
ok 259 - a burst of notifications collapses into one fetch at a time
  ---
  duration_ms: 0.242211
  type: 'test'
  ...
# Subtest: an event naming a seq the tab already has fetches nothing
ok 260 - an event naming a seq the tab already has fetches nothing
  ---
  duration_ms: 0.360261
  type: 'test'
  ...
# Subtest: a stopped subscriber drops a response that arrives late
ok 261 - a stopped subscriber drops a response that arrives late
  ---
  duration_ms: 0.29172
  type: 'test'
  ...
# Subtest: stop closes the stream, and start opens exactly one
ok 262 - stop closes the stream, and start opens exactly one
  ---
  duration_ms: 0.309467
  type: 'test'
  ...
# Subtest: a hidden tab closes its stream on a shortened deadline, and activity reopens it
ok 263 - a hidden tab closes its stream on a shortened deadline, and activity reopens it
  ---
  duration_ms: 0.838497
  type: 'test'
  ...
# Subtest: switching away and back inside the grace never drops the stream, so nothing has to be caught up
ok 264 - switching away and back inside the grace never drops the stream, so nothing has to be caught up
  ---
  duration_ms: 0.885962
  type: 'test'
  ...
# Subtest: a visible tab that is only being READ closes when idle and comes back on any activity
ok 265 - a visible tab that is only being READ closes when idle and comes back on any activity
  ---
  duration_ms: 0.71198
  type: 'test'
  ...
# Subtest: activity while streaming defers the idle close rather than reopening anything
ok 266 - activity while streaming defers the idle close rather than reopening anything
  ---
  duration_ms: 0.299162
  type: 'test'
  ...
# Subtest: a stream failure is never reported as a save failure, and heals on activity
ok 267 - a stream failure is never reported as a save failure, and heals on activity
  ---
  duration_ms: 1.044479
  type: 'test'
  ...
# Subtest: an empty response advances the cursor without applying anything
ok 268 - an empty response advances the cursor without applying anything
  ---
  duration_ms: 0.202973
  type: 'test'
  ...
# Subtest: a failed fetch leaves the cursor alone so the next notification retries it
ok 269 - a failed fetch leaves the cursor alone so the next notification retries it
  ---
  duration_ms: 0.212938
  type: 'test'
  ...
# Subtest: a decode failure retries once through the raw log, then gives up
ok 270 - a decode failure retries once through the raw log, then gives up
  ---
  duration_ms: 0.197144
  type: 'test'
  ...
# Subtest: updatesURL spells the query string exactly, in particular raw as the literal raw=1
ok 271 - updatesURL spells the query string exactly, in particular raw as the literal raw=1
  ---
  duration_ms: 0.1527
  type: 'test'
  ...
# Subtest: leaving the page closes the stream at once, and coming back reopens it and catches up
ok 272 - leaving the page closes the stream at once, and coming back reopens it and catches up
  ---
  duration_ms: 0.349768
  type: 'test'
  ...
# Subtest: a page left before its subscriber starts never opens a stream
ok 273 - a page left before its subscriber starts never opens a stream
  ---
  duration_ms: 0.144521
  type: 'test'
  ...
# Subtest: moves vectors
    # Subtest: next through a slide
    ok 1 - next through a slide
      ---
      duration_ms: 1.829298
      type: 'test'
      ...
    # Subtest: next through a slide to its last press
    ok 2 - next through a slide to its last press
      ---
      duration_ms: 0.182127
      type: 'test'
      ...
    # Subtest: next across slides with no steps
    ok 3 - next across slides with no steps
      ---
      duration_ms: 0.412452
      type: 'test'
      ...
    # Subtest: next across slides skips full only and parked in core
    ok 4 - next across slides skips full only and parked in core
      ---
      duration_ms: 0.357995
      type: 'test'
      ...
    # Subtest: next across slides shows full only in full
    ok 5 - next across slides shows full only in full
      ---
      duration_ms: 0.275204
      type: 'test'
      ...
    # Subtest: next across slides skips parked in full
    ok 6 - next across slides skips parked in full
      ---
      duration_ms: 0.197267
      type: 'test'
      ...
    # Subtest: next from a step above the count leaves the slide
    ok 7 - next from a step above the count leaves the slide
      ---
      duration_ms: 0.147048
      type: 'test'
      ...
    # Subtest: next at the end of the talk stays
    ok 8 - next at the end of the talk stays
      ---
      duration_ms: 0.304427
      type: 'test'
      ...
    # Subtest: back through a slide
    ok 9 - back through a slide
      ---
      duration_ms: 0.574692
      type: 'test'
      ...
    # Subtest: back lands fully built
    ok 10 - back lands fully built
      ---
      duration_ms: 1.596972
      type: 'test'
      ...
    # Subtest: back lands fully built on a full only slide in full
    ok 11 - back lands fully built on a full only slide in full
      ---
      duration_ms: 0.269655
      type: 'test'
      ...
    # Subtest: back across a slide with no steps
    ok 12 - back across a slide with no steps
      ---
      duration_ms: 0.117211
      type: 'test'
      ...
    # Subtest: back at the start of the talk stays
    ok 13 - back at the start of the talk stays
      ---
      duration_ms: 0.075511
      type: 'test'
      ...
    # Subtest: back at the start skips a full only first slide in core
    ok 14 - back at the start skips a full only first slide in core
      ---
      duration_ms: 0.070715
      type: 'test'
      ...
    # Subtest: first
    ok 15 - first
      ---
      duration_ms: 0.063562
      type: 'test'
      ...
    # Subtest: first in core skips a full only first slide
    ok 16 - first in core skips a full only first slide
      ---
      duration_ms: 0.058918
      type: 'test'
      ...
    # Subtest: first in full
    ok 17 - first in full
      ---
      duration_ms: 0.055419
      type: 'test'
      ...
    # Subtest: last
    ok 18 - last
      ---
      duration_ms: 0.053023
      type: 'test'
      ...
    # Subtest: last skips a parked last slide
    ok 19 - last skips a parked last slide
      ---
      duration_ms: 0.06018
      type: 'test'
      ...
    # Subtest: goto lands at step 0
    ok 20 - goto lands at step 0
      ---
      duration_ms: 0.0629
      type: 'test'
      ...
    # Subtest: goto the current slide goes back to step 0
    ok 21 - goto the current slide goes back to step 0
      ---
      duration_ms: 0.053572
      type: 'test'
      ...
    # Subtest: goto a full only slide from core switches to full
    ok 22 - goto a full only slide from core switches to full
      ---
      duration_ms: 0.055125
      type: 'test'
      ...
    # Subtest: goto a parked slide changes nothing
    ok 23 - goto a parked slide changes nothing
      ---
      duration_ms: 0.049727
      type: 'test'
      ...
    # Subtest: goto a missing slide changes nothing
    ok 24 - goto a missing slide changes nothing
      ---
      duration_ms: 0.04915
      type: 'test'
      ...
    # Subtest: goto with no slide changes nothing
    ok 25 - goto with no slide changes nothing
      ---
      duration_ms: 0.067021
      type: 'test'
      ...
    # Subtest: mode flips core to full and keeps the position
    ok 26 - mode flips core to full and keeps the position
      ---
      duration_ms: 0.053915
      type: 'test'
      ...
    # Subtest: mode flips full to core on a full only slide and keeps the position
    ok 27 - mode flips full to core on a full only slide and keeps the position
      ---
      duration_ms: 0.050496
      type: 'test'
      ...
    # Subtest: mode keeps black
    ok 28 - mode keeps black
      ---
      duration_ms: 0.047701
      type: 'test'
      ...
    # Subtest: next on a full only slide in core steps through it
    ok 29 - next on a full only slide in core steps through it
      ---
      duration_ms: 0.218177
      type: 'test'
      ...
    # Subtest: next on a full only slide in core leaves by its place in the deck
    ok 30 - next on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.083781
      type: 'test'
      ...
    # Subtest: back on a full only slide in core leaves by its place in the deck
    ok 31 - back on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.076385
      type: 'test'
      ...
    # Subtest: next on a parked slide leaves by its place in the deck
    ok 32 - next on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.06686
      type: 'test'
      ...
    # Subtest: back on a parked slide leaves by its place in the deck
    ok 33 - back on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.063922
      type: 'test'
      ...
    # Subtest: next from a missing slide lands where settle would
    ok 34 - next from a missing slide lands where settle would
      ---
      duration_ms: 0.177397
      type: 'test'
      ...
    # Subtest: black turns the screen black
    ok 35 - black turns the screen black
      ---
      duration_ms: 0.140517
      type: 'test'
      ...
    # Subtest: black again lifts it
    ok 36 - black again lifts it
      ---
      duration_ms: 0.076667
      type: 'test'
      ...
    # Subtest: next lifts black
    ok 37 - next lifts black
      ---
      duration_ms: 0.07578
      type: 'test'
      ...
    # Subtest: next at the end lifts black and stays
    ok 38 - next at the end lifts black and stays
      ---
      duration_ms: 1.044922
      type: 'test'
      ...
    # Subtest: back lifts black
    ok 39 - back lifts black
      ---
      duration_ms: 0.101686
      type: 'test'
      ...
    # Subtest: back at the start lifts black and stays
    ok 40 - back at the start lifts black and stays
      ---
      duration_ms: 0.068212
      type: 'test'
      ...
    # Subtest: first lifts black
    ok 41 - first lifts black
      ---
      duration_ms: 0.053805
      type: 'test'
      ...
    # Subtest: last lifts black
    ok 42 - last lifts black
      ---
      duration_ms: 0.049779
      type: 'test'
      ...
    # Subtest: goto lifts black
    ok 43 - goto lifts black
      ---
      duration_ms: 0.073162
      type: 'test'
      ...
    # Subtest: an unknown move changes nothing
    ok 44 - an unknown move changes nothing
      ---
      duration_ms: 0.068128
      type: 'test'
      ...
    # Subtest: empty talk: next
    ok 45 - empty talk: next
      ---
      duration_ms: 0.092582
      type: 'test'
      ...
    # Subtest: empty talk: back
    ok 46 - empty talk: back
      ---
      duration_ms: 0.056268
      type: 'test'
      ...
    # Subtest: empty talk: first and last
    ok 47 - empty talk: first and last
      ---
      duration_ms: 0.051303
      type: 'test'
      ...
    # Subtest: empty talk: mode flips and nothing else
    ok 48 - empty talk: mode flips and nothing else
      ---
      duration_ms: 0.048117
      type: 'test'
      ...
    # Subtest: empty talk: goto a parked slide changes nothing
    ok 49 - empty talk: goto a parked slide changes nothing
      ---
      duration_ms: 0.04909
      type: 'test'
      ...
    # Subtest: start: the first slide of the core talk
    ok 50 - start: the first slide of the core talk
      ---
      duration_ms: 0.091155
      type: 'test'
      ...
    # Subtest: start skips a full only first slide
    ok 51 - start skips a full only first slide
      ---
      duration_ms: 0.064055
      type: 'test'
      ...
    # Subtest: start of an empty talk
    ok 52 - start of an empty talk
      ---
      duration_ms: 0.096557
      type: 'test'
      ...
    # Subtest: settle: a position in the talk stays
    ok 53 - settle: a position in the talk stays
      ---
      duration_ms: 0.086322
      type: 'test'
      ...
    # Subtest: settle: a step above the count clamps to the count
    ok 54 - settle: a step above the count clamps to the count
      ---
      duration_ms: 0.066271
      type: 'test'
      ...
    # Subtest: settle: a step below 0 clamps to 0
    ok 55 - settle: a step below 0 clamps to 0
      ---
      duration_ms: 0.061709
      type: 'test'
      ...
    # Subtest: settle: a parked slide becomes the next slide of the order after it
    ok 56 - settle: a parked slide becomes the next slide of the order after it
      ---
      duration_ms: 0.083283
      type: 'test'
      ...
    # Subtest: settle: a parked slide with nothing after it becomes the last
    ok 57 - settle: a parked slide with nothing after it becomes the last
      ---
      duration_ms: 0.05729
      type: 'test'
      ...
    # Subtest: settle: a missing slide with no place known becomes the last
    ok 58 - settle: a missing slide with no place known becomes the last
      ---
      duration_ms: 0.051106
      type: 'test'
      ...
    # Subtest: settle: a full only slide in core stays, its step clamped
    ok 59 - settle: a full only slide in core stays, its step clamped
      ---
      duration_ms: 0.060048
      type: 'test'
      ...
    # Subtest: settle: no slide yet becomes the first
    ok 60 - settle: no slide yet becomes the first
      ---
      duration_ms: 0.110465
      type: 'test'
      ...
    # Subtest: settle: an empty talk gives only the mode
    ok 61 - settle: an empty talk gives only the mode
      ---
      duration_ms: 0.128756
      type: 'test'
      ...
    # Subtest: settle near: deleting B from A-B-C-D lands on C
    ok 62 - settle near: deleting B from A-B-C-D lands on C
      ---
      duration_ms: 0.139775
      type: 'test'
      ...
    # Subtest: settle near: deleting the last slide lands on the new last
    ok 63 - settle near: deleting the last slide lands on the new last
      ---
      duration_ms: 0.081003
      type: 'test'
      ...
    # Subtest: settle near: deleting the only full-only slide while in core
    ok 64 - settle near: deleting the only full-only slide while in core
      ---
      duration_ms: 0.06298
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is skipped in core
    ok 65 - settle near: a full-only follower is skipped in core
      ---
      duration_ms: 0.066378
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is kept in full
    ok 66 - settle near: a full-only follower is kept in full
      ---
      duration_ms: 0.072362
      type: 'test'
      ...
    # Subtest: settle near: nothing in the mode after it gives the last
    ok 67 - settle near: nothing in the mode after it gives the last
      ---
      duration_ms: 0.0644
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one
    ok 68 - settle near: deleting all but one
      ---
      duration_ms: 0.06257
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one, from the middle
    ok 69 - settle near: deleting all but one, from the middle
      ---
      duration_ms: 0.095292
      type: 'test'
      ...
    # Subtest: settle near: -1 is no place known, the last
    ok 70 - settle near: -1 is no place known, the last
      ---
      duration_ms: 0.069721
      type: 'test'
      ...
    # Subtest: settle near: a parked slide goes by its own place, not near
    ok 71 - settle near: a parked slide goes by its own place, not near
      ---
      duration_ms: 0.091045
      type: 'test'
      ...
    # Subtest: settle near: a slide still there clamps its step as settle does
    ok 72 - settle near: a slide still there clamps its step as settle does
      ---
      duration_ms: 0.099821
      type: 'test'
      ...
    # Subtest: settle near: an empty talk gives only the mode
    ok 73 - settle near: an empty talk gives only the mode
      ---
      duration_ms: 0.066371
      type: 'test'
      ...
    1..73
ok 274 - moves vectors
  ---
  duration_ms: 20.462394
  type: 'test'
  ...
# Subtest: talkOrder leaves out parked slides, and full-only ones in core
ok 275 - talkOrder leaves out parked slides, and full-only ones in core
  ---
  duration_ms: 0.136133
  type: 'test'
  ...
# Subtest: the keys are the ones the switch used, and the new height key
ok 276 - the keys are the ones the switch used, and the new height key
  ---
  duration_ms: 1.580195
  type: 'test'
  ...
# Subtest: the cookies are the ones the server reads
ok 277 - the cookies are the ones the server reads
  ---
  duration_ms: 0.245957
  type: 'test'
  ...
# Subtest: open, close and toggle set data-state and remember open/closed in the cookie
ok 278 - open, close and toggle set data-state and remember open/closed in the cookie
  ---
  duration_ms: 1.810376
  type: 'test'
  ...
# Subtest: mounting keeps the state the server painted and writes nothing
ok 279 - mounting keeps the state the server painted and writes nothing
  ---
  duration_ms: 1.37108
  type: 'test'
  ...
# Subtest: a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
ok 280 - a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
  ---
  duration_ms: 1.185887
  type: 'test'
  ...
# Subtest: cookies and storage that throw leave the notes working for the visit
ok 281 - cookies and storage that throw leave the notes working for the visit
  ---
  duration_ms: 0.762796
  type: 'test'
  ...
# Subtest: the × closes and moves focus to the tab; the tab opens and moves focus into the notes
ok 282 - the × closes and moves focus to the tab; the tab opens and moves focus into the notes
  ---
  duration_ms: 1.807833
  type: 'test'
  ...
# Subtest: mounting does not take focus
ok 283 - mounting does not take focus
  ---
  duration_ms: 0.361678
  type: 'test'
  ...
# Subtest: HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
ok 284 - HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
  ---
  duration_ms: 0.400453
  type: 'test'
  ...
# Subtest: clampHeight: at least two lines and the head, at most half the desk
ok 285 - clampHeight: at least two lines and the head, at most half the desk
  ---
  duration_ms: 0.51299
  type: 'test'
  ...
# Subtest: the height is the remembered one, clamped, written as a CSS length and as the separator's value
ok 286 - the height is the remembered one, clamped, written as a CSS length and as the separator's value
  ---
  duration_ms: 0.582526
  type: 'test'
  ...
# Subtest: ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
ok 287 - ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
  ---
  duration_ms: 0.420893
  type: 'test'
  ...
# Subtest: dragging the top edge up makes the notes taller, within the limits, and remembers on release
ok 288 - dragging the top edge up makes the notes taller, within the limits, and remembers on release
  ---
  duration_ms: 0.382839
  type: 'test'
  ...
# Subtest: a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
ok 289 - a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
  ---
  duration_ms: 0.214177
  type: 'test'
  ...
# Subtest: a desk that shrinks after mount: the next key starts from the height now shown
ok 290 - a desk that shrinks after mount: the next key starts from the height now shown
  ---
  duration_ms: 0.267317
  type: 'test'
  ...
# Subtest: a window resize narrows what is shown and keeps the preferred height for when the room comes back
ok 291 - a window resize narrows what is shown and keeps the preferred height for when the room comes back
  ---
  duration_ms: 0.218093
  type: 'test'
  ...
# Subtest: a drag after clamping moves from the shown height on its first pixel
ok 292 - a drag after clamping moves from the shown height on its first pixel
  ---
  duration_ms: 0.245256
  type: 'test'
  ...
# Subtest: refresh() writes the tab's text: the word for notes, and the count of words when there are any
ok 293 - refresh() writes the tab's text: the word for notes, and the count of words when there are any
  ---
  duration_ms: 0.275131
  type: 'test'
  ...
# Subtest: refresh() writes nothing when the tab already says it (the server's first paint)
ok 294 - refresh() writes nothing when the tab already says it (the server's first paint)
  ---
  duration_ms: 0.244271
  type: 'test'
  ...
# Subtest: countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
ok 295 - countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
  ---
  duration_ms: 0.639075
  type: 'test'
  ...
# Subtest: empty_doc_views_as_defaults
ok 296 - empty_doc_views_as_defaults
  ---
  duration_ms: 3.829095
  type: 'test'
  ...
# Subtest: set_meta
ok 297 - set_meta
  ---
  duration_ms: 3.041769
  type: 'test'
  ...
# Subtest: slides: add, move, remove, set_slide, set_notes
ok 298 - slides: add, move, remove, set_slide, set_notes
  ---
  duration_ms: 6.918578
  type: 'test'
  ...
# Subtest: duplicate_slide
ok 299 - duplicate_slide
  ---
  duration_ms: 3.862371
  type: 'test'
  ...
# Subtest: blocks: add, move, remove, set_block
ok 300 - blocks: add, move, remove, set_block
  ---
  duration_ms: 4.78036
  type: 'test'
  ...
# Subtest: set_phone
ok 301 - set_phone
  ---
  duration_ms: 1.312771
  type: 'test'
  ...
# Subtest: table cells follow rows and cols
ok 302 - table cells follow rows and cols
  ---
  duration_ms: 1.360692
  type: 'test'
  ...
# Subtest: canvas blocks: box defaults from the region, z from the index
ok 303 - canvas blocks: box defaults from the region, z from the index
  ---
  duration_ms: 1.438348
  type: 'test'
  ...
# Subtest: assets: register and remove
ok 304 - assets: register and remove
  ---
  duration_ms: 1.328524
  type: 'test'
  ...
# Subtest: markdown: every mark, code blocks are plain lines
ok 305 - markdown: every mark, code blocks are plain lines
  ---
  duration_ms: 1.934824
  type: 'test'
  ...
# Subtest: batch_is_atomic
ok 306 - batch_is_atomic
  ---
  duration_ms: 2.20293
  type: 'test'
  ...
# Subtest: a batch applies in one transaction with the given origin
ok 307 - a batch applies in one transaction with the given origin
  ---
  duration_ms: 0.667463
  type: 'test'
  ...
# Subtest: columns_children_validated
ok 308 - columns_children_validated
  ---
  duration_ms: 1.621389
  type: 'test'
  ...
# Subtest: layout_switch_round_trip
ok 309 - layout_switch_round_trip
  ---
  duration_ms: 1.808309
  type: 'test'
  ...
# Subtest: view_matches_snapshot_fixtures
ok 310 - view_matches_snapshot_fixtures
  ---
  duration_ms: 18.063715
  type: 'test'
  ...
# Subtest: columns children have one parent and no cycles (codex 7)
ok 311 - columns children have one parent and no cycles (codex 7)
  ---
  duration_ms: 1.524929
  type: 'test'
  ...
# Subtest: canvas-to-flow keeps a concurrent text edit (codex 4)
ok 312 - canvas-to-flow keeps a concurrent text edit (codex 4)
  ---
  duration_ms: 4.16291
  type: 'test'
  ...
# Subtest: move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
ok 313 - move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
  ---
  duration_ms: 4.004361
  type: 'test'
  ...
# Subtest: move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
ok 314 - move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
  ---
  duration_ms: 2.184229
  type: 'test'
  ...
# Subtest: set_block step round-trips, fractions included, survives a duplicate and clears
ok 315 - set_block step round-trips, fractions included, survives a duplicate and clears
  ---
  duration_ms: 0.957318
  type: 'test'
  ...
# Subtest: set_block refuses a step of zero, below zero, or not finite
ok 316 - set_block refuses a step of zero, below zero, or not finite
  ---
  duration_ms: 0.81816
  type: 'test'
  ...
# Subtest: set_block refuses items on a non-list; on a list it round-trips and clears
ok 317 - set_block refuses items on a non-list; on a list it round-trips and clears
  ---
  duration_ms: 1.192216
  type: 'test'
  ...
# Subtest: set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
ok 318 - set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
  ---
  duration_ms: 1.026622
  type: 'test'
  ...
# Subtest: set_meta arrive round-trips and clears; an unknown one is refused
ok 319 - set_meta arrive round-trips and clears; an unknown one is refused
  ---
  duration_ms: 0.723182
  type: 'test'
  ...
# Subtest: a deck without the fields has no such keys in its view
ok 320 - a deck without the fields has no such keys in its view
  ---
  duration_ms: 0.403986
  type: 'test'
  ...
# Subtest: the Outline's list reconciles by id and keeps its rows
ok 321 - the Outline's list reconciles by id and keeps its rows
  ---
  duration_ms: 3.006758
  type: 'test'
  ...
# Subtest: open fills the list by kind and first words, and focuses the selected box's row
ok 322 - open fills the list by kind and first words, and focuses the selected box's row
  ---
  duration_ms: 1.109804
  type: 'test'
  ...
# Subtest: with no box on the slide it says so, and focus goes to the popover
ok 323 - with no box on the slide it says so, and focus goes to the popover
  ---
  duration_ms: 0.557944
  type: 'test'
  ...
# Subtest: a row selects its box and closes, leaving focus to the box
ok 324 - a row selects its box and closes, leaving focus to the box
  ---
  duration_ms: 0.610651
  type: 'test'
  ...
# Subtest: Escape closes it, gives focus back, and goes no further
ok 325 - Escape closes it, gives focus back, and goes no further
  ---
  duration_ms: 0.351929
  type: 'test'
  ...
# Subtest: closed by the browser (a click outside), it fills no more; destroy takes its listeners off
ok 326 - closed by the browser (a click outside), it fills no more; destroy takes its listeners off
  ---
  duration_ms: 0.38757
  type: 'test'
  ...
# Subtest: a row from the template takes its words in its label, and keeps its check
ok 327 - a row from the template takes its words in its label, and keeps its check
  ---
  duration_ms: 0.24021
  type: 'test'
  ...
# Subtest: open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
ok 328 - open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
  ---
  duration_ms: 0.868021
  type: 'test'
  ...
# Subtest: the scale is the room over the phone height, never above 1
ok 329 - the scale is the room over the phone height, never above 1
  ---
  duration_ms: 0.932168
  type: 'test'
  ...
# Subtest: the scale fits the width as well: the smaller of the two
ok 330 - the scale fits the width as well: the smaller of the two
  ---
  duration_ms: 0.183517
  type: 'test'
  ...
# Subtest: the scale never rounds up past the room it was given
ok 331 - the scale never rounds up past the room it was given
  ---
  duration_ms: 0.335824
  type: 'test'
  ...
# Subtest: mountPhoneFrame writes the scale on every frame, and again when the stages resize
ok 332 - mountPhoneFrame writes the scale on every frame, and again when the stages resize
  ---
  duration_ms: 2.108776
  type: 'test'
  ...
# Subtest: update() measures again when the room changes and the stages do not resize
ok 333 - update() measures again when the room changes and the stages do not resize
  ---
  duration_ms: 0.455324
  type: 'test'
  ...
# Subtest: waitingAt is everything whose press comes after the one given
ok 334 - waitingAt is everything whose press comes after the one given
  ---
  duration_ms: 2.749875
  type: 'test'
  ...
# Subtest: pressesWords: the count at rest, the press while playing
ok 335 - pressesWords: the count at rest, the press while playing
  ---
  duration_ms: 0.296032
  type: 'test'
  ...
# Subtest: a click plays press 1, each click the next, and one after the last shows the finished slide
ok 336 - a click plays press 1, each click the next, and one after the last shows the finished slide
  ---
  duration_ms: 3.189466
  type: 'test'
  ...
# Subtest: Esc while not playing is left alone
ok 337 - Esc while not playing is left alone
  ---
  duration_ms: 0.783735
  type: 'test'
  ...
# Subtest: reads a cookie by its exact name; absent is null
ok 338 - reads a cookie by its exact name; absent is null
  ---
  duration_ms: 0.952494
  type: 'test'
  ...
# Subtest: a cookie jar that throws reads as absent and writes nothing
ok 339 - a cookie jar that throws reads as absent and writes nothing
  ---
  duration_ms: 0.423914
  type: 'test'
  ...
# Subtest: written for a year, site-wide, Lax, and Secure on https only
ok 340 - written for a year, site-wide, Lax, and Secure on https only
  ---
  duration_ms: 0.152649
  type: 'test'
  ...
# Subtest: format: {name} and {n} interpolate; an unknown key is left as text
ok 341 - format: {name} and {n} interpolate; an unknown key is left as text
  ---
  duration_ms: 1.005222
  type: 'test'
  ...
# Subtest: a beat on connect, then one every twenty seconds
ok 342 - a beat on connect, then one every twenty seconds
  ---
  duration_ms: 1.840126
  type: 'test'
  ...
# Subtest: a move posts once, 200ms after the last of a burst, and re-arms the beat
ok 343 - a move posts once, 200ms after the last of a burst, and re-arms the beat
  ---
  duration_ms: 1.416113
  type: 'test'
  ...
# Subtest: a hidden tab stops beating; coming back posts at once
ok 344 - a hidden tab stops beating; coming back posts at once
  ---
  duration_ms: 0.420659
  type: 'test'
  ...
# Subtest: applySet leaves this tab out and answers what changed
ok 345 - applySet leaves this tab out and answers what changed
  ---
  duration_ms: 0.945631
  type: 'test'
  ...
# Subtest: a set with rubbish in it is read for what it does carry
ok 346 - a set with rubbish in it is read for what it does carry
  ---
  duration_ms: 0.256154
  type: 'test'
  ...
# Subtest: initials, and a client id per tab
ok 347 - initials, and a client id per tab
  ---
  duration_ms: 2.576046
  type: 'test'
  ...
# Subtest: the cookie's panels read and write back the same
ok 348 - the cookie's panels read and write back the same
  ---
  duration_ms: 3.078905
  type: 'test'
  ...
# Subtest: a panel moves by whole cells into free room
ok 349 - a panel moves by whole cells into free room
  ---
  duration_ms: 0.849878
  type: 'test'
  ...
# Subtest: a move stops at the edge of the grid
ok 350 - a move stops at the edge of the grid
  ---
  duration_ms: 0.460806
  type: 'test'
  ...
# Subtest: a move goes round a panel in its way when it can
ok 351 - a move goes round a panel in its way when it can
  ---
  duration_ms: 0.344355
  type: 'test'
  ...
# Subtest: a move stops at the panel in its way, never over it
ok 352 - a move stops at the panel in its way, never over it
  ---
  duration_ms: 0.737582
  type: 'test'
  ...
# Subtest: a resize keeps at least 2×2, inside the grid, clear of the others
ok 353 - a resize keeps at least 2×2, inside the grid, clear of the others
  ---
  duration_ms: 0.27545
  type: 'test'
  ...
# Subtest: every change from every arrangement stays a valid window
ok 354 - every change from every arrangement stays a valid window
  ---
  duration_ms: 8.779141
  type: 'test'
  ...
# Subtest: arrow keys move a panel a cell; with Shift they resize it
ok 355 - arrow keys move a panel a cell; with Shift they resize it
  ---
  duration_ms: 0.321976
  type: 'test'
  ...
# Subtest: the stylesheet places the panels as the server does
ok 356 - the stylesheet places the panels as the server does
  ---
  duration_ms: 0.759311
  type: 'test'
  ...
# Subtest: each of the eight buttons is one cell of one change
ok 357 - each of the eight buttons is one cell of one change
  ---
  duration_ms: 0.68653
  type: 'test'
  ...
# Subtest: a button is offered only where its change can be made
ok 358 - a button is offered only where its change can be made
  ---
  duration_ms: 0.474286
  type: 'test'
  ...
# Subtest: the live region says the panel's size and place, counted from one
ok 359 - the live region says the panel's size and place, counted from one
  ---
  duration_ms: 0.275807
  type: 'test'
  ...
# Subtest: right to left, moves are mirrored and the buttons' sizes keep their meaning
ok 360 - right to left, moves are mirrored and the buttons' sizes keep their meaning
  ---
  duration_ms: 0.24998
  type: 'test'
  ...
# Subtest: the table: each key does its one thing
ok 361 - the table: each key does its one thing
  ---
  duration_ms: 2.310004
  type: 'test'
  ...
# Subtest: a held key is not a second press
ok 362 - a held key is not a second press
  ---
  duration_ms: 0.276379
  type: 'test'
  ...
# Subtest: a clicker works from inside a field, and nothing else does
ok 363 - a clicker works from inside a field, and nothing else does
  ---
  duration_ms: 1.41842
  type: 'test'
  ...
# Subtest: a number then Enter jumps
ok 364 - a number then Enter jumps
  ---
  duration_ms: 0.28217
  type: 'test'
  ...
# Subtest: modifier keys are the browser's
ok 365 - modifier keys are the browser's
  ---
  duration_ms: 0.331787
  type: 'test'
  ...
# Subtest: keys kept before the script are pressed once it mounts, in order, and only once
ok 366 - keys kept before the script are pressed once it mounts, in order, and only once
  ---
  duration_ms: 0.302044
  type: 'test'
  ...
# Subtest: brightPart is the step, or the last part when there are fewer parts than presses
ok 367 - brightPart is the step, or the last part when there are fewer parts than presses
  ---
  duration_ms: 0.812738
  type: 'test'
  ...
# Subtest: fitSize steps down a pixel to the floor and stops there
ok 368 - fitSize steps down a pixel to the floor and stops there
  ---
  duration_ms: 0.303397
  type: 'test'
  ...
# Subtest: smaller and larger step 2px between 16 and 48
ok 369 - smaller and larger step 2px between 16 and 48
  ---
  duration_ms: 0.164476
  type: 'test'
  ...
# Subtest: the cookie is percent-encoded and keeps the panels
ok 370 - the cookie is percent-encoded and keeps the panels
  ---
  duration_ms: 1.889817
  type: 'test'
  ...
# Subtest: writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
ok 371 - writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
  ---
  duration_ms: 0.598826
  type: 'test'
  ...
# Subtest: the fade is on the sides with more
ok 372 - the fade is on the sides with more
  ---
  duration_ms: 0.157194
  type: 'test'
  ...
# Subtest: a part already in view is left; otherwise its top is brought up
ok 373 - a part already in view is left; otherwise its top is brought up
  ---
  duration_ms: 0.31011
  type: 'test'
  ...
# Subtest: no query finds every slide, in talk order
ok 374 - no query finds every slide, in talk order
  ---
  duration_ms: 1.712941
  type: 'test'
  ...
# Subtest: a number finds that slide first, then the slides whose number starts with it
ok 375 - a number finds that slide first, then the slides whose number starts with it
  ---
  duration_ms: 1.477827
  type: 'test'
  ...
# Subtest: words find titles whatever their case, every word needed
ok 376 - words find titles whatever their case, every word needed
  ---
  duration_ms: 0.672305
  type: 'test'
  ...
# Subtest: a slide with no title is found by its number alone
ok 377 - a slide with no title is found by its number alone
  ---
  duration_ms: 0.194813
  type: 'test'
  ...
# Subtest: gridStep moves by one across a row and by a row up and down, and stops at the ends
ok 378 - gridStep moves by one across a row and by a row up and down, and stops at the ends
  ---
  duration_ms: 0.335489
  type: 'test'
  ...
# Subtest: presses vectors
    # Subtest: no steps: everything arrives with the slide
    ok 1 - no steps: everything arrives with the slide
      ---
      duration_ms: 1.204105
      type: 'test'
      ...
    # Subtest: ties: equal values arrive on one press, in block order
    ok 2 - ties: equal values arrive on one press, in block order
      ---
      duration_ms: 0.658783
      type: 'test'
      ...
    # Subtest: 1, 1.5, 2: a midpoint is a press between its neighbours
    ok 3 - 1, 1.5, 2: a midpoint is a press between its neighbours
      ---
      duration_ms: 0.34657
      type: 'test'
      ...
    # Subtest: values compare exactly as stored
    ok 4 - values compare exactly as stored
      ---
      duration_ms: 0.292753
      type: 'test'
      ...
    # Subtest: each: one press per item, the rest of its value with the first
    ok 5 - each: one press per item, the rest of its value with the first
      ---
      duration_ms: 0.261145
      type: 'test'
      ...
    # Subtest: each with blank items: they take no press and keep their index
    ok 6 - each with blank items: they take no press and keep their index
      ---
      duration_ms: 0.169248
      type: 'test'
      ...
    # Subtest: an empty list makes no press, with or without each
    ok 7 - an empty list makes no press, with or without each
      ---
      duration_ms: 0.146822
      type: 'test'
      ...
    # Subtest: a list without each arrives whole
    ok 8 - a list without each arrives whole
      ---
      duration_ms: 0.518739
      type: 'test'
      ...
    # Subtest: two each lists tied pair up by index, the next value after the longest
    ok 9 - two each lists tied pair up by index, the next value after the longest
      ---
      duration_ms: 0.530952
      type: 'test'
      ...
    # Subtest: each with no step arrives with the slide
    ok 10 - each with no step arrives with the slide
      ---
      duration_ms: 0.308632
      type: 'test'
      ...
    # Subtest: a blank text box makes no press; an image always shows
    ok 11 - a blank text box makes no press; an image always shows
      ---
      duration_ms: 0.121431
      type: 'test'
      ...
    # Subtest: child later than container: the child keeps its own value
    ok 12 - child later than container: the child keeps its own value
      ---
      duration_ms: 0.212984
      type: 'test'
      ...
    # Subtest: child earlier than container: the child waits, and its own press goes
    ok 13 - child earlier than container: the child waits, and its own press goes
      ---
      duration_ms: 0.137128
      type: 'test'
      ...
    # Subtest: a box two containers deep takes the latest of the three
    ok 14 - a box two containers deep takes the latest of the three
      ---
      duration_ms: 0.230377
      type: 'test'
      ...
    # Subtest: an each list in a later container starts at the container's value
    ok 15 - an each list in a later container starts at the container's value
      ---
      duration_ms: 0.882645
      type: 'test'
      ...
    # Subtest: empty columns make no press
    ok 16 - empty columns make no press
      ---
      duration_ms: 0.10455
      type: 'test'
      ...
    # Subtest: columns naming each other still settle
    ok 17 - columns naming each other still settle
      ---
      duration_ms: 0.086837
      type: 'test'
      ...
    # Subtest: columns whose children all come later arrive with the first of them
    ok 18 - columns whose children all come later arrive with the first of them
      ---
      duration_ms: 0.085396
      type: 'test'
      ...
    # Subtest: a blank child does not hold a columns box at its own value
    ok 19 - a blank child does not hold a columns box at its own value
      ---
      duration_ms: 0.069614
      type: 'test'
      ...
    # Subtest: an outer columns box waits through an inner one for its first child
    ok 20 - an outer columns box waits through an inner one for its first child
      ---
      duration_ms: 0.099538
      type: 'test'
      ...
    1..20
ok 379 - presses vectors
  ---
  duration_ms: 11.16429
  type: 'test'
  ...
# Subtest: a slide with no blocks key has no presses
ok 380 - a slide with no blocks key has no presses
  ---
  duration_ms: 0.101188
  type: 'test'
  ...
# Subtest: a resync that fails is retried with backoff until it succeeds, without ever running twice at once
ok 381 - a resync that fails is retried with backoff until it succeeds, without ever running twice at once
  ---
  duration_ms: 1.849621
  type: 'test'
  ...
# Subtest: the browser's online event retries immediately, not just on the next backoff tick
ok 382 - the browser's online event retries immediately, not just on the next backoff tick
  ---
  duration_ms: 0.299627
  type: 'test'
  ...
# Subtest: reportDivergence before any failure runs the first attempt without a caller ever calling online
ok 383 - reportDivergence before any failure runs the first attempt without a caller ever calling online
  ---
  duration_ms: 1.264043
  type: 'test'
  ...
# Subtest: a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
ok 384 - a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
  ---
  duration_ms: 74.502144
  type: 'test'
  ...
# Subtest: a network failure or a 5xx is retried, not dropped
ok 385 - a network failure or a 5xx is retried, not dropped
  ---
  duration_ms: 41.470003
  type: 'test'
  ...
# Subtest: a 500 is retried the same way a network failure is, never dropped
ok 386 - a 500 is retried the same way a network failure is, never dropped
  ---
  duration_ms: 40.334253
  type: 'test'
  ...
# Subtest: flush with nothing queued waits for the save already on the wire
ok 387 - flush with nothing queued waits for the save already on the wire
  ---
  duration_ms: 1.01433
  type: 'test'
  ...
# Subtest: an edit made while a save is on the wire waits for it, and both stay owed until answered
ok 388 - an edit made while a save is on the wire waits for it, and both stay owed until answered
  ---
  duration_ms: 2.148075
  type: 'test'
  ...
# Subtest: a flush resolves only once every earlier update is answered, whichever save answers last
ok 389 - a flush resolves only once every earlier update is answered, whichever save answers last
  ---
  duration_ms: 21.085741
  type: 'test'
  ...
# Subtest: a flush through a retry waits for the retry, and a successful retry is a save
ok 390 - a flush through a retry waits for the retry, and a successful retry is a save
  ---
  duration_ms: 1.832802
  type: 'test'
  ...
# Subtest: a network failure is retried the same way
ok 391 - a network failure is retried the same way
  ---
  duration_ms: 0.656863
  type: 'test'
  ...
# Subtest: a refusal resolves the flush false and is final; later edits still save
ok 392 - a refusal resolves the flush false and is final; later edits still save
  ---
  duration_ms: 1.369147
  type: 'test'
  ...
# Subtest: edits made during a flush are not what that flush waits for
ok 393 - edits made during a flush are not what that flush waits for
  ---
  duration_ms: 1.123859
  type: 'test'
  ...
# Subtest: the queue says saving, not ok, while an answered save leaves another to send
ok 394 - the queue says saving, not ok, while an answered save leaves another to send
  ---
  duration_ms: 0.85394
  type: 'test'
  ...
# Subtest: a save is sent keepalive, and given up if it is never answered
ok 395 - a save is sent keepalive, and given up if it is never answered
  ---
  duration_ms: 21.47898
  type: 'test'
  ...
# Subtest: a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
ok 396 - a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
  ---
  duration_ms: 1.388067
  type: 'test'
  ...
# Subtest: an update bigger than maxBatchBytes still goes, on its own
ok 397 - an update bigger than maxBatchBytes still goes, on its own
  ---
  duration_ms: 0.680345
  type: 'test'
  ...
# Subtest: a save never answered is given up, retried with a real request, and its late answer ignored
ok 398 - a save never answered is given up, retried with a real request, and its late answer ignored
  ---
  duration_ms: 0.802032
  type: 'test'
  ...
# Subtest: resume sends again at once what was on the wire as the page left, without saying it failed
ok 399 - resume sends again at once what was on the wire as the page left, without saying it failed
  ---
  duration_ms: 0.729645
  type: 'test'
  ...
# Subtest: a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
ok 400 - a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
  ---
  duration_ms: 0.895193
  type: 'test'
  ...
# Subtest: a save refused with no answer says retrying only if the server cannot be reached either
ok 401 - a save refused with no answer says retrying only if the server cannot be reached either
  ---
  duration_ms: 2.029481
  type: 'test'
  ...
# Subtest: retries the browser refuses while the server answers back off, and reset once one is answered
ok 402 - retries the browser refuses while the server answers back off, and reset once one is answered
  ---
  duration_ms: 1.408235
  type: 'test'
  ...
# Subtest: reachable tries a keepalive request, then an ordinary one
ok 403 - reachable tries a keepalive request, then an ordinary one
  ---
  duration_ms: 0.430294
  type: 'test'
  ...
# Subtest: a large save is gzipped, and goes keepalive if what is sent fits
ok 404 - a large save is gzipped, and goes keepalive if what is sent fits
  ---
  duration_ms: 2.707088
  type: 'test'
  ...
# Subtest: a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
ok 405 - a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
  ---
  duration_ms: 76.324697
  type: 'test'
  ...
# Subtest: a refused save that was not gzipped is not sent again
ok 406 - a refused save that was not gzipped is not sent again
  ---
  duration_ms: 1.949384
  type: 'test'
  ...
# Subtest: the core-written structure reads as ProseMirror marks
ok 407 - the core-written structure reads as ProseMirror marks
  ---
  duration_ms: 6.594214
  type: 'test'
  ...
# Subtest: a y-prosemirror round trip preserves bold and the link
ok 408 - a y-prosemirror round trip preserves bold and the link
  ---
  duration_ms: 2.700224
  type: 'test'
  ...
# Subtest: y-prosemirror writes href as the one-key map and marks as {}
ok 409 - y-prosemirror writes href as the one-key map and marks as {}
  ---
  duration_ms: 1.108933
  type: 'test'
  ...
# Subtest: a plain-string href, written before the map shape, still reads
ok 410 - a plain-string href, written before the map shape, still reads
  ---
  duration_ms: 0.974072
  type: 'test'
  ...
# Subtest: textFragment writes the same shape as writeText
ok 411 - textFragment writes the same shape as writeText
  ---
  duration_ms: 0.67685
  type: 'test'
  ...
# Subtest: safeHref is the server allowlist, and a disallowed href never draws an anchor
ok 412 - safeHref is the server allowlist, and a disallowed href never draws an anchor
  ---
  duration_ms: 0.486885
  type: 'test'
  ...
# Subtest: parseHash splits the slide and the block, and survives a stray %
ok 413 - parseHash splits the slide and the block, and survives a stray %
  ---
  duration_ms: 1.510268
  type: 'test'
  ...
# Subtest: destroy takes the listeners off, and a second mount leaves one of each
ok 414 - destroy takes the listeners off, and a second mount leaves one of each
  ---
  duration_ms: 1.865076
  type: 'test'
  ...
# Subtest: formatHash is the inverse
ok 415 - formatHash is the inverse
  ---
  duration_ms: 0.325277
  type: 'test'
  ...
# Subtest: selecting the selected block again is heard; a new one is too
ok 416 - selecting the selected block again is heard; a new one is too
  ---
  duration_ms: 0.768549
  type: 'test'
  ...
# Subtest: each layout makes its template and its empty blocks, and passes the gate
ok 417 - each layout makes its template and its empty blocks, and passes the gate
  ---
  duration_ms: 14.17871
  type: 'test'
  ...
# Subtest: a layout goes after the slide it is asked to follow
ok 418 - a layout goes after the slide it is asked to follow
  ---
  duration_ms: 1.673438
  type: 'test'
  ...
# Subtest: an unknown layout still makes a slide, and plain New slide follows the one before
ok 419 - an unknown layout still makes a slide, and plain New slide follows the one before
  ---
  duration_ms: 0.177121
  type: 'test'
  ...
# Subtest: refresh makes each box with no text a named group in the tab order, and leaves text to its editor
ok 420 - refresh makes each box with no text a named group in the tab order, and leaves text to its editor
  ---
  duration_ms: 4.263619
  type: 'test'
  ...
# Subtest: focus on a box with no text selects it; focus in text is the text editor's to say
ok 421 - focus on a box with no text selects it; focus in text is the text editor's to say
  ---
  duration_ms: 1.310314
  type: 'test'
  ...
# Subtest: on a canvas slide focus on a box goes on to the overlay
ok 422 - on a canvas slide focus on a box goes on to the overlay
  ---
  duration_ms: 1.737381
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay walk the boxes in the slide's order
ok 423 - Tab and Shift+Tab on the overlay walk the boxes in the slide's order
  ---
  duration_ms: 1.297499
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay pass a box that is not drawn
ok 424 - Tab and Shift+Tab on the overlay pass a box that is not drawn
  ---
  duration_ms: 1.40243
  type: 'test'
  ...
# Subtest: focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
ok 425 - focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
  ---
  duration_ms: 0.751601
  type: 'test'
  ...
# Subtest: destroy takes every listener off the stage
ok 426 - destroy takes every listener off the stage
  ---
  duration_ms: 0.41191
  type: 'test'
  ...
# Subtest: held and restore keep focus on a box across a load
ok 427 - held and restore keep focus on a box across a load
  ---
  duration_ms: 0.963465
  type: 'test'
  ...
# Subtest: held on a canvas slide is the selected box, from its overlay
ok 428 - held on a canvas slide is the selected box, from its overlay
  ---
  duration_ms: 0.598123
  type: 'test'
  ...
# Subtest: after Delete, focus goes to the next box, else the previous, else the slide
ok 429 - after Delete, focus goes to the next box, else the previous, else the slide
  ---
  duration_ms: 1.868437
  type: 'test'
  ...
# Subtest: after a move, focus in the box's text is held across the load too
ok 430 - after a move, focus in the box's text is held across the load too
  ---
  duration_ms: 0.533146
  type: 'test'
  ...
# Subtest: textBlocks finds the text-bearing blocks and skips the rest
ok 431 - textBlocks finds the text-bearing blocks and skips the rest
  ---
  duration_ms: 1.941524
  type: 'test'
  ...
# Subtest: mountTarget is the element whose children are the paragraphs
ok 432 - mountTarget is the element whose children are the paragraphs
  ---
  duration_ms: 0.246899
  type: 'test'
  ...
# Subtest: paragraphTag keeps the renderer's own markup per type
ok 433 - paragraphTag keeps the renderer's own markup per type
  ---
  duration_ms: 0.262482
  type: 'test'
  ...
# Subtest: blockFragment finds a block's text by slide and block id
ok 434 - blockFragment finds a block's text by slide and block id
  ---
  duration_ms: 7.762221
  type: 'test'
  ...
# Subtest: notesFragment finds the slide's notes
ok 435 - notesFragment finds the slide's notes
  ---
  duration_ms: 1.405488
  type: 'test'
  ...
# Subtest: blockIDs and slideIDs are the orders on the stage and the strip
ok 436 - blockIDs and slideIDs are the orders on the stage and the strip
  ---
  duration_ms: 1.633708
  type: 'test'
  ...
# Subtest: cellFragments are a table's cells, row-major
ok 437 - cellFragments are a table's cells, row-major
  ---
  duration_ms: 2.423359
  type: 'test'
  ...
# Subtest: a load that fails leaves the stage on the slide it was showing and says so
ok 438 - a load that fails leaves the stage on the slide it was showing and says so
  ---
  duration_ms: 2.280602
  type: 'test'
  ...
# Subtest: slideAfter is the slide to show once one is gone
ok 439 - slideAfter is the slide to show once one is gone
  ---
  duration_ms: 0.647425
  type: 'test'
  ...
# Subtest: the queue words map to savestatus states, failed staying failed
ok 440 - the queue words map to savestatus states, failed staying failed
  ---
  duration_ms: 0.901302
  type: 'test'
  ...
# Subtest: a dropped batch outranks the queue, for the rest of the session
ok 441 - a dropped batch outranks the queue, for the rest of the session
  ---
  duration_ms: 0.196787
  type: 'test'
  ...
# Subtest: the editor status: the save line and the load error are two lines
ok 442 - the editor status: the save line and the load error are two lines
  ---
  duration_ms: 0.347151
  type: 'test'
  ...
# Subtest: mountSaveStatus loads estilo's module and mounts it on the line
ok 443 - mountSaveStatus loads estilo's module and mounts it on the line
  ---
  duration_ms: 1.906175
  type: 'test'
  ...
# Subtest: a save-status module that will not load says so and refuses to mount
ok 444 - a save-status module that will not load says so and refuses to mount
  ---
  duration_ms: 0.505068
  type: 'test'
  ...
# Subtest: dropTarget: before puts it ahead of the item, after behind it, null means first
ok 445 - dropTarget: before puts it ahead of the item, after behind it, null means first
  ---
  duration_ms: 1.018883
  type: 'test'
  ...
# Subtest: a drop that leaves the order as it is is no move
ok 446 - a drop that leaves the order as it is is no move
  ---
  duration_ms: 0.199593
  type: 'test'
  ...
# Subtest: dropOp is the move_slide
ok 447 - dropOp is the move_slide
  ---
  duration_ms: 0.695155
  type: 'test'
  ...
# Subtest: labelFor is the slide's first heading, else the numbered fallback
ok 448 - labelFor is the slide's first heading, else the numbered fallback
  ---
  duration_ms: 6.668592
  type: 'test'
  ...
# Subtest: flush re-points every dirty thumbnail and relabels it
ok 449 - flush re-points every dirty thumbnail and relabels it
  ---
  duration_ms: 4.043351
  type: 'test'
  ...
# Subtest: destroy takes the item-menu listener off; a second mount leaves one
ok 450 - destroy takes the item-menu listener off; a second mount leaves one
  ---
  duration_ms: 0.579657
  type: 'test'
  ...
# Subtest: plan says what to add, drop and where each item goes
ok 451 - plan says what to add, drop and where each item goes
  ---
  duration_ms: 1.06312
  type: 'test'
  ...
# Subtest: sync moves only the items out of place and keeps focus
ok 452 - sync moves only the items out of place and keeps focus
  ---
  duration_ms: 2.904841
  type: 'test'
  ...
# Subtest: sync keeps the New slide row last
ok 453 - sync keeps the New slide row last
  ---
  duration_ms: 2.62394
  type: 'test'
  ...
# Subtest: relabel keeps the link's title the label
ok 454 - relabel keeps the link's title the label
  ---
  duration_ms: 1.534776
  type: 'test'
  ...
# Subtest: a contextmenu on an item opens its menu
ok 455 - a contextmenu on an item opens its menu
  ---
  duration_ms: 0.590873
  type: 'test'
  ...
# Subtest: sync renumbers both numbers after an add, a remove and a reorder
ok 456 - sync renumbers both numbers after an add, a remove and a reorder
  ---
  duration_ms: 2.720098
  type: 'test'
  ...
# Subtest: desktop view: box and size are the block; hidden and order are always the phone map
ok 457 - desktop view: box and size are the block; hidden and order are always the phone map
  ---
  duration_ms: 1.737213
  type: 'test'
  ...
# Subtest: phone view: everything goes to set_phone, carrying the rest of the map
ok 458 - phone view: everything goes to set_phone, carrying the rest of the map
  ---
  duration_ms: 0.493304
  type: 'test'
  ...
# Subtest: the ops it makes are ones the document takes
ok 459 - the ops it makes are ones the document takes
  ---
  duration_ms: 9.381821
  type: 'test'
  ...
# Subtest: phoneMap reads only the four keys, and only well-typed
ok 460 - phoneMap reads only the four keys, and only well-typed
  ---
  duration_ms: 0.195472
  type: 'test'
  ...
# Subtest: the stored view is read defensively
ok 461 - the stored view is read defensively
  ---
  duration_ms: 0.427041
  type: 'test'
  ...
# Subtest: a ready slide is put up at once, the end at once
ok 462 - a ready slide is put up at once, the end at once
  ---
  duration_ms: 1.594239
  type: 'test'
  ...
# Subtest: a preview waiting across a newer deck never puts up the new version unready
ok 463 - a preview waiting across a newer deck never puts up the new version unready
  ---
  duration_ms: 4.80125
  type: 'test'
  ...
# Subtest: a later press supersedes a preview still waiting
ok 464 - a later press supersedes a preview still waiting
  ---
  duration_ms: 1.003446
  type: 'test'
  ...
# Subtest: a press is sent once and in order
ok 465 - a press is sent once and in order
  ---
  duration_ms: 11.089382
  type: 'test'
  ...
# Subtest: a late answer does not move a window with presses waiting
ok 466 - a late answer does not move a window with presses waiting
  ---
  duration_ms: 1.51638
  type: 'test'
  ...
# Subtest: offline presses end in one resume
ok 467 - offline presses end in one resume
  ---
  duration_ms: 1.368956
  type: 'test'
  ...
# Subtest: a failed send is offline at once
ok 468 - a failed send is offline at once
  ---
  duration_ms: 0.834201
  type: 'test'
  ...
# Subtest: a stream that comes back by itself is not a split
ok 469 - a stream that comes back by itself is not a split
  ---
  duration_ms: 0.633141
  type: 'test'
  ...
# Subtest: a window that pressed nothing takes the server's position
ok 470 - a window that pressed nothing takes the server's position
  ---
  duration_ms: 0.790799
  type: 'test'
  ...
# Subtest: a press id is 22 characters of the allowed alphabet
ok 471 - a press id is 22 characters of the allowed alphabet
  ---
  duration_ms: 2.815266
  type: 'test'
  ...
# Subtest: a press given up on is numbered below the resume that replaces it
ok 472 - a press given up on is numbered below the resume that replaces it
  ---
  duration_ms: 1.339829
  type: 'test'
  ...
# Subtest: every command carries the link and a rising number
ok 473 - every command carries the link and a rising number
  ---
  duration_ms: 1.311735
  type: 'test'
  ...
# Subtest: the black screen pressed offline goes with the resume, either way
ok 474 - the black screen pressed offline goes with the resume, either way
  ---
  duration_ms: 1.694109
  type: 'test'
  ...
# Subtest: the timer is taken from the server even where the position is the same
ok 475 - the timer is taken from the server even where the position is the same
  ---
  duration_ms: 0.403304
  type: 'test'
  ...
# Subtest: a stale timer never undoes a press still waiting for its answer
ok 476 - a stale timer never undoes a press still waiting for its answer
  ---
  duration_ms: 0.923638
  type: 'test'
  ...
# Subtest: linkAt reads the link under the cursor and nothing elsewhere
ok 477 - linkAt reads the link under the cursor and nothing elsewhere
  ---
  duration_ms: 2.617968
  type: 'test'
  ...
# Subtest: setLink marks the selection
ok 478 - setLink marks the selection
  ---
  duration_ms: 2.415731
  type: 'test'
  ...
# Subtest: setLink on a collapsed cursor inside a link replaces that link
ok 479 - setLink on a collapsed cursor inside a link replaces that link
  ---
  duration_ms: 0.952873
  type: 'test'
  ...
# Subtest: setLink with nothing selected and no link does nothing
ok 480 - setLink with nothing selected and no link does nothing
  ---
  duration_ms: 0.349799
  type: 'test'
  ...
# Subtest: removeLink clears the link under the cursor
ok 481 - removeLink clears the link under the cursor
  ---
  duration_ms: 0.723146
  type: 'test'
  ...
# Subtest: the keymap binds every documented shortcut
ok 482 - the keymap binds every documented shortcut
  ---
  duration_ms: 0.252546
  type: 'test'
  ...
# Subtest: Mod-b toggles bold through the keymap
ok 483 - Mod-b toggles bold through the keymap
  ---
  duration_ms: 0.844611
  type: 'test'
  ...
# Subtest: setLink refuses an address outside the allowlist and writes nothing
ok 484 - setLink refuses an address outside the allowlist and writes nothing
  ---
  duration_ms: 1.673241
  type: 'test'
  ...
# Subtest: the state machine runs choose → sign → put → register → op
ok 485 - the state machine runs choose → sign → put → register → op
  ---
  duration_ms: 3.0486
  type: 'test'
  ...
# Subtest: a file the deck will not take never reaches the network
ok 486 - a file the deck will not take never reaches the network
  ---
  duration_ms: 0.680487
  type: 'test'
  ...
# Subtest: alt text is required before the bytes move, unless the image is decorative
ok 487 - alt text is required before the bytes move, unless the image is decorative
  ---
  duration_ms: 0.462489
  type: 'test'
  ...
# Subtest: a step that fails stops the ones after it and reports its own code
ok 488 - a step that fails stops the ones after it and reports its own code
  ---
  duration_ms: 0.560923
  type: 'test'
  ...
# Subtest: a failure that is not ours still becomes an UploadError
ok 489 - a failure that is not ours still becomes an UploadError
  ---
  duration_ms: 0.557613
  type: 'test'
  ...
# Subtest: a second pick while one is in flight is refused, not raced
ok 490 - a second pick while one is in flight is refused, not raced
  ---
  duration_ms: 0.428901
  type: 'test'
  ...
# Subtest: an unreadable size is zero rather than a failure
ok 491 - an unreadable size is zero rather than a failure
  ---
  duration_ms: 0.501757
  type: 'test'
  ...
# Subtest: a per-call applyOp wins, so an upload lands on the block it was chosen for
ok 492 - a per-call applyOp wins, so an upload lands on the block it was chosen for
  ---
  duration_ms: 0.271291
  type: 'test'
  ...
# Subtest: checkFile takes exactly the four types
ok 493 - checkFile takes exactly the four types
  ---
  duration_ms: 0.927104
  type: 'test'
  ...
# Subtest: sha256Hex is the hex digest of the bytes
ok 494 - sha256Hex is the hex digest of the bytes
  ---
  duration_ms: 11.009186
  type: 'test'
  ...
# Subtest: refusal reads this app's JSON error shape, and survives one that is not
ok 495 - refusal reads this app's JSON error shape, and survives one that is not
  ---
  duration_ms: 0.482473
  type: 'test'
  ...
# Subtest: malformed fonts are null
ok 496 - malformed fonts are null
  ---
  duration_ms: 3.792735
  type: 'test'
  ...
# Subtest: a malformed background is the theme default
ok 497 - a malformed background is the theme default
  ---
  duration_ms: 1.917632
  type: 'test'
  ...
# Subtest: a malformed box is null
ok 498 - a malformed box is null
  ---
  duration_ms: 1.307296
  type: 'test'
  ...
# Subtest: the phone layer keeps only its typed fields, order as a whole number
ok 499 - the phone layer keeps only its typed fields, order as a whole number
  ---
  duration_ms: 0.940181
  type: 'test'
  ...
# Subtest: assets are typed or skipped
ok 500 - assets are typed or skipped
  ---
  duration_ms: 0.55717
  type: 'test'
  ...
# Subtest: every poison update is deterministic bytes that apply to any deck
ok 501 - every poison update is deterministic bytes that apply to any deck
  ---
  duration_ms: 9.424151
  type: 'test'
  ...
# Subtest: step, items, talk and arrive outside their vocabularies are absent
ok 502 - step, items, talk and arrive outside their vocabularies are absent
  ---
  duration_ms: 0.921125
  type: 'test'
  ...
1..502
# tests 595
# suites 0
# pass 595
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 8182.908715
=== the vectors must match a fresh generation
canvas: 27 ops, 4191 bytes
columns: 23 ops, 3134 bytes
every-block: 36 ops, 3180 bytes
table: 14 ops, 1509 bytes
title-only: 6 ops, 1136 bytes
=== the editor bundle must match a fresh build
wrote internal/slides/static/editor.703499261afc631a.js (438158 bytes)
wrote internal/slides/static/fontsgate.09db91091a8e7726.js (11265 bytes)
wrote internal/slides/static/fontshold.876f3d8d396da42f.js (314 bytes)
wrote internal/slides/static/presenter.7c4f44be067d1178.js (37444 bytes)
=== go: vet, gofmt, test, migration check
go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.45.0
go: downloading amadan.net/oficina/estilo.git v0.0.0-20261122204240-6238a478888e
go: downloading amadan.net/rastrillo/fiesta v1.6.1
go vet -tags browser ./internal/slidestest/
go: downloading github.com/chromedp/cdproto v0.158.6
go: downloading github.com/chromedp/chromedp v0.21.0
go test ./...
ok  	amadan.net/oficina/slides/cmd/slides	1.860s
?   	amadan.net/oficina/slides/cmd/slides-contract	[no test files]
?   	amadan.net/oficina/slides/gen	[no test files]
ok  	amadan.net/oficina/slides/gen/locales	0.005s
ok  	amadan.net/oficina/slides/internal/slides	88.710s
ok  	amadan.net/oficina/slides/internal/slides/assist	0.012s
ok  	amadan.net/oficina/slides/internal/slides/core	3.383s
ok  	amadan.net/oficina/slides/internal/slides/deck	0.005s
ok  	amadan.net/oficina/slides/internal/slides/fonts	0.010s
?   	amadan.net/oficina/slides/internal/slides/icons	[no test files]
?   	amadan.net/oficina/slides/internal/slides/keymailtest	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/layout	0.018s
ok  	amadan.net/oficina/slides/internal/slides/live	0.008s
ok  	amadan.net/oficina/slides/internal/slides/pdfcore	5.168s
ok  	amadan.net/oficina/slides/internal/slides/present	0.006s
ok  	amadan.net/oficina/slides/internal/slides/render	0.020s
ok  	amadan.net/oficina/slides/internal/slides/svg	0.014s
?   	amadan.net/oficina/slides/internal/slides/teamstate	[no test files]
ok  	amadan.net/oficina/slides/internal/slidestest	91.189s
?   	amadan.net/oficina/slides/scripts/writeestilo	[no test files]
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
go tool fiesta spacing \
	-skip tokens.css -skip shell.css -skip theme.css -skip busy.css -skip brand/brand.css \
	internal/slides/static
go: downloading golang.org/x/net v0.58.0
python3 scripts/credits.py --check
credits: checked
gate: ok
diff --git a/AGENTS.md b/AGENTS.md
index d933004..89d96ea 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -619,6 +619,24 @@ rather than serving an editor that disagrees with the server.
never `class="rst-*"`. This app's own attributes are `slides-*`.
- WCAG 2.2 AA with no exemptions: 24×24 targets, 320px reflow, colour
never the only carrier of state, `alt` on every image.
+- **Spacing is the scale's** (Paul, 2026-11-22: no ad-hoc spacing).
+ A page's blocks sit in Fiesta's `rst-stack` (layout.html's `<main
+ rst-page rst-stack>`, and a box, section or form with blocks of its
+ own), with `rst-section` where a section opens and `rst-actions` for
+ a row of buttons; never hand margins between blocks. Every other
+ margin, padding and gap is `var(--rst-sp-N)`, or says why not with
+ `/* spacing-allow: why */`: the slide itself (slides.css: the deck's
+ cqw, percentages and its type's em, not the page's), what is drawn
+ over the stage, estilo's inspector and menu geometry, the presenter's
+ notes in their own em. `make spacing` (in `make ci`) checks static/;
+ `TestEveryStylesheetIsOnTheSpacingScale` checks the templates'
+ `<style>` blocks, which the tool does not read. `make browser` runs
+ Fiesta's rhythm audit (`TestEveryScreenKeepsTheRhythm`) over every
+ screen at 1440 and 390px, reading around the slide (`rhythmCanvas`)
+ and nothing else; a new screen joins its list. A hidden input between
+ two of a stack's blocks hides the first from the stack's rule: write
+ hidden inputs first. A stack's `position: fixed` or `absolute` child
+ still takes its margin: zero it.
- `CGO_ENABLED=0` throughout. The stack is cgo-free by design and the
binary that ships is `linux/arm64`.
- A save is a keepalive request, at most 32KiB, and gzipped from 1KB
diff --git a/Makefile b/Makefile
index cc08ddc..f757087 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ RELEASE_BIN := releases/$(APP)-$(RELEASE_GOOS)-$(RELEASE_GOARCH)
# make release VERSION=v0.1.0
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null)
-.PHONY: build release version-check test vet fmt-check migration-check ci
+.PHONY: build release version-check test vet fmt-check migration-check spacing browser ci
# build is the compile check: with more than one package matched, go
# build discards the output, so this catches a broken package without
@@ -86,8 +86,12 @@ version-check:
test:
go test ./...
+# Also vets the browser-tagged tests: they are outside `make ci`, and a
+# drive that no longer compiles would otherwise be found by whoever next
+# runs make browser.
vet:
go vet ./...
+ go vet -tags browser ./internal/slidestest/
fmt-check:
@out=$$(gofmt -l .); if [ -n "$$out" ]; then echo "gofmt needed:"; echo "$$out"; exit 1; fi
@@ -115,7 +119,34 @@ migration-check:
# fails the build the moment models.go and migrations/ disagree,
# instead of at boot on whatever machine notices next. If the app
# declares manifest resources, also add: rastrillo generate --check
-ci: vet fmt-check test migration-check
+ci: vet fmt-check test migration-check spacing
+
+# spacing is Fiesta's spacing gate (rastrillo v0.45.0, Fiesta 1.6; Paul,
+# 2026-11-22: no ad-hoc spacing): every margin, padding and gap in this
+# app's own stylesheets is a step of the scale, var(--rst-sp-N), or says
+# why not with /* spacing-allow: why */. The skipped files are vendored,
+# somebody else's to space: tokens.css and shell.css are rastrillo's
+# (rastrillo doctor), theme.css and busy.css estilo's (go run
+# ./scripts/writeestilo), brand/brand.css estilo's brand/distribute.py.
+# The templates' <style> blocks, which this tool does not read, are
+# TestEveryStylesheetIsOnTheSpacingScale's (make test). The rhythm audit,
+# its runtime half, is make browser.
+spacing:
+ go tool fiesta spacing \
+ -skip tokens.css -skip shell.css -skip theme.css -skip busy.css -skip brand/brand.css \
+ internal/slides/static
+
+# browser runs Fiesta's rhythm audit over every screen in a real
+# Chromium (internal/slidestest/browser_rhythm_test.go): the gaps
+# between a page's blocks are steps of the scale, no text rests on a
+# control, and a heading sits closer to its content than to what comes
+# before. The rest of the browser drive is `go test -tags browser
+# ./internal/slidestest/` (AGENTS.md, Fonts: Tests), run when you touch a
+# slide surface. The Chromium is RASTRILLO_CHROME; on a Mac the
+# Playwright cache's is used when it is unset.
+RASTRILLO_CHROME ?= $(shell ls -d "$(HOME)"/Library/Caches/ms-playwright/chromium-*/chrome-mac*/Chromium.app/Contents/MacOS/Chromium "$(HOME)"/Library/Caches/ms-playwright/chromium-*/chrome-mac*/"Google Chrome for Testing.app"/Contents/MacOS/"Google Chrome for Testing" 2>/dev/null | tail -1)
+browser:
+ CGO_ENABLED=0 RASTRILLO_CHROME="$(RASTRILLO_CHROME)" go test -count=1 -tags browser -run 'KeepsTheRhythm' ./internal/slidestest/
.PHONY: credits credits-check
credits:
diff --git a/go.mod b/go.mod
index 3e2efee..bd825d0 100644
--- a/go.mod
+++ b/go.mod
@@ -6,13 +6,14 @@ toolchain go1.26.5
require (
amadan.net/oficina/agent-access.git v0.0.0-20261024232549-8ed8ba826000
- amadan.net/oficina/estilo.git v0.0.0-20261121233240-468fab16e803
+ amadan.net/oficina/estilo.git v0.0.0-20261122204240-6238a478888e
amadan.net/oficina/home/connect v0.0.0-20261121235253-98726fac99a7
amadan.net/oficina/home/dashboard v0.0.0-20261024234842-3774eb68f816
amadan.net/oficina/home/handoff v0.0.0-20261121235253-98726fac99a7
amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2
- amadan.net/rastrillo/rastrillo v0.42.0
+ amadan.net/rastrillo/fiesta v1.6.1
+ amadan.net/rastrillo/rastrillo v0.45.0
github.com/chromedp/cdproto v0.158.6
github.com/chromedp/chromedp v0.21.0
github.com/go-chi/chi/v5 v5.3.2
@@ -27,7 +28,6 @@ require (
)
require (
- amadan.net/rastrillo/fiesta v1.5.0 // indirect
amadan.net/rastrillo/rastrillo/money v0.1.0 // indirect
github.com/BurntSushi/toml v1.6.0 // indirect
github.com/carlosframework/rastrillo v0.23.0 // indirect
@@ -50,6 +50,7 @@ require (
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
github.com/zalando/go-keyring v0.2.8 // indirect
golang.org/x/mod v0.38.0 // indirect
+ golang.org/x/net v0.58.0 // indirect
golang.org/x/sync v0.22.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.41.0 // indirect
@@ -62,13 +63,16 @@ require (
modernc.org/sqlite v1.55.0 // indirect
)
-// The CLI this app's own gate runs: make migration-check, and
-// rastrillo generate once the app declares manifest resources. It is
-// declared as a tool so that go mod tidy records the CLI's build
-// dependencies in go.sum alongside the app's own. Nothing an app
-// imports reaches, say, the TOML parser behind manifest, so without
-// this line tidy prunes it and the first make ci on a clean scaffold
-// dies with "missing go.sum entry for github.com/BurntSushi/toml" —
-// a dependency that is real at go run time and invisible at tidy
-// time. Deleting this line breaks the gate, not the app.
-tool amadan.net/rastrillo/rastrillo/cmd/rastrillo
+tool (
+ amadan.net/rastrillo/fiesta/cmd/fiesta
+ // The CLI this app's own gate runs: make migration-check, and
+ // rastrillo generate once the app declares manifest resources. It is
+ // declared as a tool so that go mod tidy records the CLI's build
+ // dependencies in go.sum alongside the app's own. Nothing an app
+ // imports reaches, say, the TOML parser behind manifest, so without
+ // this line tidy prunes it and the first make ci on a clean scaffold
+ // dies with "missing go.sum entry for github.com/BurntSushi/toml" —
+ // a dependency that is real at go run time and invisible at tidy
+ // time. Deleting this line breaks the gate, not the app.
+ amadan.net/rastrillo/rastrillo/cmd/rastrillo
+)
diff --git a/go.sum b/go.sum
index 43a759d..3105c07 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
amadan.net/oficina/agent-access.git v0.0.0-20261024232549-8ed8ba826000 h1:L07nc+dmLI7c1PBkSkbnrjOK5f8p6OBbA/yTxznxCAw=
amadan.net/oficina/agent-access.git v0.0.0-20261024232549-8ed8ba826000/go.mod h1:Ph9PIa3VE1IEaUzZiQH6D+IQ6HThWWGfVr0ecMMgrFA=
-amadan.net/oficina/estilo.git v0.0.0-20261121233240-468fab16e803 h1:yl1LyYZW3/722xRPnXMu5veg4sZGjyDMJFLqOWST0ws=
-amadan.net/oficina/estilo.git v0.0.0-20261121233240-468fab16e803/go.mod h1:2UFIFrbTrhew8EFM0C94WmTo2OASM2pHEgT4jzeE/s8=
+amadan.net/oficina/estilo.git v0.0.0-20261122204240-6238a478888e h1:g2EvXlQAleAEFsc4yIBvS7ycMG3GyuEySEOia0yo8nY=
+amadan.net/oficina/estilo.git v0.0.0-20261122204240-6238a478888e/go.mod h1:2UFIFrbTrhew8EFM0C94WmTo2OASM2pHEgT4jzeE/s8=
amadan.net/oficina/home/connect v0.0.0-20261121235253-98726fac99a7 h1:hytRIC++gbCt0rLcNn2O+EcPKkBdnfEodINDo8gT6jw=
amadan.net/oficina/home/connect v0.0.0-20261121235253-98726fac99a7/go.mod h1:B45bHBZF5AtFJqy4d1qSDNDOqYcNkSz1qD20TLF1DI8=
amadan.net/oficina/home/dashboard v0.0.0-20261024234842-3774eb68f816 h1:AFDuOio0MxNxN9ZWVc3lul1QHkNjNUCO56kXpe/Fw3I=
@@ -12,10 +12,10 @@ amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2 h1:yKUTS0nOiVw
amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2/go.mod h1:gqshuXyDtFZUCYbhuZyV3Epc51pUcsLbpqAqiA5UiXg=
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2 h1:0PQiRUkC+9cbTHE67Y4/SmW1sPH1NNWNwTceNFyMjTY=
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2/go.mod h1:dXBZeB2ic33SIZiGUCzafmviUT8TYWgzSYZvo2rM6zA=
-amadan.net/rastrillo/fiesta v1.5.0 h1:wKfTsL5zRMofJBAqOxNlCY7aCtgHCtfwvTPBMA+ZA20=
-amadan.net/rastrillo/fiesta v1.5.0/go.mod h1:LpO391W1dIRUxOIKklHm+bGyWXtlFyBRRPQCysb9LjY=
-amadan.net/rastrillo/rastrillo v0.42.0 h1:RJ0ecpdb2kMqwW9216bBpUqzpboxLYKb/51wq/+ceyo=
-amadan.net/rastrillo/rastrillo v0.42.0/go.mod h1:0bufVMz8D4aWvxvJjehW70T8Jsvytrp1YEwoIzFTKm8=
+amadan.net/rastrillo/fiesta v1.6.1 h1:WYgHt652+uQj6eR0Y0JLin+XrdRPGk1WPW7o0lSrc94=
+amadan.net/rastrillo/fiesta v1.6.1/go.mod h1:LpO391W1dIRUxOIKklHm+bGyWXtlFyBRRPQCysb9LjY=
+amadan.net/rastrillo/rastrillo v0.45.0 h1:zJfxetxg/H/CkCBFIvdGQbiATQ0hV3JR7H82AMk4bmM=
+amadan.net/rastrillo/rastrillo v0.45.0/go.mod h1:Vk7QL+RePyKtcP+7XclR9hpSDp/CjrVo37TENKifaFY=
amadan.net/rastrillo/rastrillo/money v0.1.0 h1:MxU4oqNrW8abxRTkgZBv24OYNpFnvonajNqeLIzmmaM=
amadan.net/rastrillo/rastrillo/money v0.1.0/go.mod h1:cmgkjBEIQh1pFSYvQk0UU6oPYS8kSDypdT9+t4Flx0U=
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
@@ -98,10 +98,14 @@ github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zI
github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4=
github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPccHs=
github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0=
+golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
+golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
golang.org/x/image v0.44.0 h1:+tDekMZED9+LrtB3G5xzRggpVh9CARjZqROla3R3R+I=
golang.org/x/image v0.44.0/go.mod h1:V8K3KE9KKKE+pLpQDOeN18w9oacNSvy1tDOirTu4xtY=
golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk=
golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40=
+golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
+golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU=
golang.org/x/oauth2 v0.35.0 h1:Mv2mzuHuZuY2+bkyWXIHMfhNdJAdwW3FuWeCPYN5GVQ=
golang.org/x/oauth2 v0.35.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
diff --git a/internal/slides/auth.go b/internal/slides/auth.go
index c9baa70..042fdc3 100644
--- a/internal/slides/auth.go
+++ b/internal/slides/auth.go
@@ -286,7 +286,9 @@ func newAuthPlugin(cfg Config, writer *sql.DB, list allowlist, mailer *mailQueue
SigninOneWay: true,
SigninPath: connect.SigninPath,
ForgetPath: signinForgetPath,
- Logger: cfg.Logger,
+ // Nil in every deployment (Config.KeymailServers).
+ KeymailServers: cfg.KeymailServers,
+ Logger: cfg.Logger,
})
}
diff --git a/internal/slides/auth_test.go b/internal/slides/auth_test.go
index 8865cf0..fb8e555 100644
--- a/internal/slides/auth_test.go
+++ b/internal/slides/auth_test.go
@@ -17,7 +17,7 @@ import (
// replacement path nor an expired sealed intent is allowed to select where a
// completed sign-in goes.
func TestRememberedReturnRejectsTamperAndExpiry(t *testing.T) {
- a, _, err := newApp(testDB(t), Config{Env: EnvDevelopment, Origin: "https://slides.example.test", Logger: quietLogger()})
+ a, _, err := newApp(testDB(t), Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Origin: "https://slides.example.test", Logger: quietLogger()})
if err != nil {
t.Fatal(err)
}
@@ -86,7 +86,7 @@ func countCreates(t *testing.T, g *gorm.DB) func() int {
// insert.
func TestEnsureUserWritesOnceOnly(t *testing.T) {
d := testDB(t)
- if a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
+ if a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
t.Fatalf("newApp: %v", err)
} else {
t.Cleanup(func() { a.Close() })
@@ -137,7 +137,7 @@ func TestEnsureUserWritesOnceOnly(t *testing.T) {
// disjoint sets of decks depending on which one a request found.
func TestEnsureUserNormalizesTheAddress(t *testing.T) {
d := testDB(t)
- if a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
+ if a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
t.Fatalf("newApp: %v", err)
} else {
t.Cleanup(func() { a.Close() })
@@ -172,7 +172,7 @@ func TestEnsureUserNormalizesTheAddress(t *testing.T) {
// create a row owning decks that nobody could ever sign in as.
func TestEnsureUserRefusesAnEmptyAddress(t *testing.T) {
d := testDB(t)
- if a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
+ if a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()}); err != nil {
t.Fatalf("newApp: %v", err)
} else {
t.Cleanup(func() { a.Close() })
diff --git a/internal/slides/config.go b/internal/slides/config.go
index 372a218..0df1424 100644
--- a/internal/slides/config.go
+++ b/internal/slides/config.go
@@ -138,6 +138,16 @@ type Config struct {
// Logger defaults to slog.Default().
Logger *slog.Logger
+ // KeymailServers is rastrillo/auth's Config.KeymailServers, and nil
+ // in every deployment (cmd/slides never sets it): any server an
+ // address's own _keymail delegation names, dialed only at a public
+ // address by a client auth clones from http.DefaultTransport
+ // (rastrillo v0.45.0). The tests list their in-process Keymail
+ // fixtures here (keymailtest), which answer behind a replaced
+ // DefaultTransport that clone cannot be made from; listed, auth
+ // reaches a server through its guard over DefaultTransport instead.
+ KeymailServers []string
+
// AI is the editor assistant's configuration (config_ai.go):
// SLIDES_AI, SLIDES_TENSORX_API_KEY, SLIDES_AI_MODELS and the
// development-only SLIDES_AI_DEV_BASE_URL. The zero value is off.
diff --git a/internal/slides/config_test.go b/internal/slides/config_test.go
index c8b1568..cc9f07f 100644
--- a/internal/slides/config_test.go
+++ b/internal/slides/config_test.go
@@ -38,7 +38,7 @@ func testDB(t *testing.T) *db.DB {
// question about what New stored, which the *http.ServeMux New returns
// cannot answer.
func TestDevelopmentStoresTheResolvedConfig(t *testing.T) {
- a, _, err := newApp(testDB(t), Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(testDB(t), Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
diff --git a/internal/slides/credits/notices.json b/internal/slides/credits/notices.json
index 3ecda27..ff08d92 100644
--- a/internal/slides/credits/notices.json
+++ b/internal/slides/credits/notices.json
@@ -90,7 +90,7 @@
},
{
"Name": "amadan.net/rastrillo/fiesta",
- "Version": "v1.5.0",
+ "Version": "v1.6.1",
"SourceURL": "https://amadan.net/rastrillo/fiesta",
"Notices": [
{
@@ -101,7 +101,7 @@
},
{
"Name": "amadan.net/rastrillo/rastrillo",
- "Version": "v0.42.0",
+ "Version": "v0.45.0",
"SourceURL": "https://amadan.net/rastrillo/rastrillo",
"Notices": [
{
diff --git a/internal/slides/decks_test.go b/internal/slides/decks_test.go
index 6438cac..f9e6001 100644
--- a/internal/slides/decks_test.go
+++ b/internal/slides/decks_test.go
@@ -22,7 +22,7 @@ import (
// and the document come out unchanged, seq included.
func TestSettingsRowAndDocumentChangeTogether(t *testing.T) {
d := testDB(t)
- a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
@@ -96,7 +96,7 @@ func TestSettingsRowAndDocumentChangeTogether(t *testing.T) {
// moved, and editDeck from the stale row must land on its retry.
func TestConcurrentWritersConflictThenRetry(t *testing.T) {
d := testDB(t)
- a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
@@ -181,7 +181,7 @@ func TestConcurrentWritersConflictThenRetry(t *testing.T) {
// is still called what it was given.
func TestBlankOpeningSlideIsEmptyToTypeInto(t *testing.T) {
d := testDB(t)
- a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
diff --git a/internal/slides/home_test.go b/internal/slides/home_test.go
index fec2576..9987a84 100644
--- a/internal/slides/home_test.go
+++ b/internal/slides/home_test.go
@@ -50,7 +50,7 @@ func homeFixtureDirectory(t *testing.T, directory string) (*http.ServeMux, *app,
t.Fatal(err)
}
raw, _ := json.Marshal(map[string]string{"test": base64.StdEncoding.EncodeToString(key.SignPub())})
- cfg := Config{Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: []string{"owner@example.com"}, Home: &connect.Credentials{Issuer: "https://home.example.com", ConsumerID: "slides-test", KeysBase64: base64.StdEncoding.EncodeToString(raw), DEKBase64: base64.StdEncoding.EncodeToString(bytes.Repeat([]byte{8}, 32)), Directory: directory}}
+ cfg := Config{KeymailServers: testKeymailServers, Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: []string{"owner@example.com"}, Home: &connect.Credentials{Issuer: "https://home.example.com", ConsumerID: "slides-test", KeysBase64: base64.StdEncoding.EncodeToString(raw), DEKBase64: base64.StdEncoding.EncodeToString(bytes.Repeat([]byte{8}, 32)), Directory: directory}}
mux, a, err := New(d, cfg)
if err != nil {
t.Fatal(err)
@@ -279,7 +279,7 @@ func TestHomeDifferentEmailKeepsThePage(t *testing.T) {
}
func TestHomeInvalidConfigurationDoesNotMigrate(t *testing.T) {
d := testDB(t)
- _, _, err := New(d, Config{Env: EnvDevelopment, Origin: homeTestOrigin, Home: &connect.Credentials{Issuer: "https://home.example.com"}})
+ _, _, err := New(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Origin: homeTestOrigin, Home: &connect.Credentials{Issuer: "https://home.example.com"}})
if err == nil {
t.Fatal("partial config accepted")
}
@@ -410,7 +410,7 @@ func TestHomePolicyTracksActualFrameworkAndStandalone(t *testing.T) {
t.Fatal("Home CSP drift", path, got, want)
}
}
- plain, app, err := New(testDB(t), Config{Env: EnvDevelopment, Origin: homeTestOrigin})
+ plain, app, err := New(testDB(t), Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Origin: homeTestOrigin})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slides/keymail_home_test.go b/internal/slides/keymail_home_test.go
index 6c8d731..bd4bbe9 100644
--- a/internal/slides/keymail_home_test.go
+++ b/internal/slides/keymail_home_test.go
@@ -54,7 +54,7 @@ func TestMain(m *testing.M) {
// form-action is 'self' plus the Home issuer — and a non-permitted one
// that Keymail verified is refused on the local door, not in bare text.
func TestHomeLocalKeymailIsAContinuationAndRefusesAtTheDoor(t *testing.T) {
- const host = "keymail.home.test"
+ const host = keymailHomeHost
member, stranger := "owner@"+host, "stranger@"+host
km := keymailtest.Serve(t, host, member, stranger)
@@ -64,7 +64,7 @@ func TestHomeLocalKeymailIsAContinuationAndRefusesAtTheDoor(t *testing.T) {
}
raw, _ := json.Marshal(map[string]string{"test": base64.StdEncoding.EncodeToString(key.SignPub())})
mail := &homeTestMail{}
- mux, a, err := New(testDB(t), Config{Mailer: mail, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(),
+ mux, a, err := New(testDB(t), Config{KeymailServers: testKeymailServers, Mailer: mail, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(),
AllowedAddresses: []string{member},
Home: &connect.Credentials{Issuer: "https://home.example.com", ConsumerID: "slides-test",
KeysBase64: base64.StdEncoding.EncodeToString(raw), DEKBase64: base64.StdEncoding.EncodeToString(bytes.Repeat([]byte{8}, 32))}})
@@ -128,3 +128,16 @@ func TestHomeLocalKeymailIsAContinuationAndRefusesAtTheDoor(t *testing.T) {
}
}
}
+
+// testKeymailServers is Config.KeymailServers for every app this
+// package's tests build: the Keymail fixture's host. Since rastrillo
+// v0.45.0 an unlisted server is dialed through a client auth clones from
+// http.DefaultTransport, which TestMain has replaced with keymailtest's
+// (not an *http.Transport, so the clone panics). Listed, auth reaches the
+// fixture through its guard over that same DefaultTransport; deployments
+// list nothing.
+var testKeymailServers = []string{keymailHomeHost}
+
+// keymailHomeHost is the Keymail fixture TestHomeLocalKeymailIsAContinuationAndRefusesAtTheDoor
+// signs in through.
+const keymailHomeHost = "keymail.home.test"
diff --git a/internal/slides/mailqueue_test.go b/internal/slides/mailqueue_test.go
index 3740fdb..d2f2ccb 100644
--- a/internal/slides/mailqueue_test.go
+++ b/internal/slides/mailqueue_test.go
@@ -189,7 +189,7 @@ func TestMailQueueCloseIsBoundedAndStopsTheWorker(t *testing.T) {
// stops its worker — no test that builds an app and closes it leaves
// one running behind it.
func TestAppCloseStopsTheMailWorker(t *testing.T) {
- _, a, err := New(testDB(t), Config{Env: EnvDevelopment, Origin: "http://localhost:8091", Logger: quietLogger()})
+ _, a, err := New(testDB(t), Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Origin: "http://localhost:8091", Logger: quietLogger()})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slides/presenter_window.go b/internal/slides/presenter_window.go
index 80bfece..0b1d7ef 100644
--- a/internal/slides/presenter_window.go
+++ b/internal/slides/presenter_window.go
@@ -167,13 +167,13 @@ func (p presenterPrefs) css() template.CSS {
// of the panels' box, less the panel's padding (16px each side, 8px
// top and bottom), at 16:9. In the default window Next is half of it
// (presenter.css), so Now also leaves Next's panel, under its 24px
- // label and 10px gap, room for that half. In a window somebody
+ // label and 8px gap (--rst-sp-2), room for that half. In a window somebody
// arranged, Next fills its own panel.
now, next := p.Panels[0], p.Panels[1]
room := fmt.Sprintf("%d / %d * 100cqw - 32px, (%d / %d * 100cqh - 16px) * 16 / 9",
now.W, presenterGrid, now.H, presenterGrid)
if p.Panels == defaultPresenterPrefs.Panels {
- room += fmt.Sprintf(", (%d / %d * 100cqh - 50px) * 2 * 16 / 9", next.H, presenterGrid)
+ room += fmt.Sprintf(", (%d / %d * 100cqh - 48px) * 2 * 16 / 9", next.H, presenterGrid)
}
fmt.Fprintf(&b, " [presenter-panel] { --p-now: min(%s); }\n", room)
if p.Panels != defaultPresenterPrefs.Panels {
diff --git a/internal/slides/presenting_position_test.go b/internal/slides/presenting_position_test.go
index 781e0ce..1dd0b96 100644
--- a/internal/slides/presenting_position_test.go
+++ b/internal/slides/presenting_position_test.go
@@ -23,7 +23,7 @@ import (
// about who may write and in what order, not where a press lands.
func presentingApp(t *testing.T, token string) (*http.ServeMux, *app, Presentation) {
t.Helper()
- mux, a, err := New(testDB(t), Config{Env: EnvDevelopment, Origin: "http://localhost:8091", Logger: quietLogger()})
+ mux, a, err := New(testDB(t), Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Origin: "http://localhost:8091", Logger: quietLogger()})
if err != nil {
t.Fatalf("New: %v", err)
}
diff --git a/internal/slides/replay_long_test.go b/internal/slides/replay_long_test.go
index 1c6abf7..8968a65 100644
--- a/internal/slides/replay_long_test.go
+++ b/internal/slides/replay_long_test.go
@@ -13,7 +13,7 @@ import (
func TestAuthoritativeLogBeyondCoreRetentionLimit(t *testing.T) {
db := testDB(t)
- a, _, err := newApp(db, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(db, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slides/signin_door_helpers_test.go b/internal/slides/signin_door_helpers_test.go
index 73d5cfe..de6d12c 100644
--- a/internal/slides/signin_door_helpers_test.go
+++ b/internal/slides/signin_door_helpers_test.go
@@ -24,7 +24,7 @@ import (
func newStandaloneBrowser(t *testing.T) (*homeBrowser, User) {
t.Helper()
d := testDB(t)
- mux, a, err := New(d, Config{Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: []string{"owner@example.com"}})
+ mux, a, err := New(d, Config{KeymailServers: testKeymailServers, Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: []string{"owner@example.com"}})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slides/signin_door_states_test.go b/internal/slides/signin_door_states_test.go
index bff54af..fb1d13d 100644
--- a/internal/slides/signin_door_states_test.go
+++ b/internal/slides/signin_door_states_test.go
@@ -68,13 +68,14 @@ func TestSmartDoorStatesWithHome(t *testing.T) {
not: []string{">Email</span>"}},
{name: "Keymail remembered", path: "/signin",
record: &lastsignin.Record{Method: lastsignin.MethodKeymail, Address: "bob@example.com"},
- want: []string{"Continue to Keymail", `name="expect" value="keymail"`, "as <bdi>bob@example.com</bdi>", otherWays}},
+ // rastrillo's own words since v0.45.0, which never name Keymail.
+ want: []string{"Continue as <bdi>bob@example.com</bdi>", `name="expect" value="keymail"`, otherWays}},
{name: "problem", path: "/signin?err=expired", record: oficina,
want: []string{"That link has expired or was already used.", emailField},
not: []string{oficinaButton},
title: "Problem signing in to Slides"},
{name: "a failed Keymail keeps force", path: "/signin?err=keymail&force=1",
- want: []string{"Keymail couldn't confirm it's you.", `name="force" value="1"`, "Send me a link instead"}},
+ want: []string{"We couldn't confirm it's you.", `name="force" value="1"`, "Send me a link instead"}},
{name: "removed", path: "/signin?err=removed", record: oficina,
want: []string{appProblem, removedText, emailField},
not: []string{oficinaButton, "Something went wrong"},
diff --git a/internal/slides/snapshot_fallback_test.go b/internal/slides/snapshot_fallback_test.go
index 18432a6..de70297 100644
--- a/internal/slides/snapshot_fallback_test.go
+++ b/internal/slides/snapshot_fallback_test.go
@@ -8,7 +8,7 @@ import (
func TestUnreadableSnapshotFallsBackToAuthoritativeLog(t *testing.T) {
db := testDB(t)
- a, _, err := newApp(db, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(db, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slides/snapshot_test.go b/internal/slides/snapshot_test.go
index ab6fae9..ad1a726 100644
--- a/internal/slides/snapshot_test.go
+++ b/internal/slides/snapshot_test.go
@@ -16,7 +16,7 @@ import (
// byte-for-byte the same deck, it is a second, wrong copy of the truth.
func TestSnapshotWrittenAtBoundaryAndUsedOnOpen(t *testing.T) {
d := testDB(t)
- a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
diff --git a/internal/slides/static/brand/brand.css b/internal/slides/static/brand/brand.css
index 27e25ad..475fb08 100644
--- a/internal/slides/static/brand/brand.css
+++ b/internal/slides/static/brand/brand.css
@@ -3,7 +3,7 @@
[estilo-brand] {
display: inline-flex;
align-items: center;
- gap: .5rem;
+ gap: var(--rst-sp-2);
min-block-size: 24px;
}
[estilo-brand-icon] {
diff --git a/internal/slides/static/decks.css b/internal/slides/static/decks.css
index 8d7f120..bb37b05 100644
--- a/internal/slides/static/decks.css
+++ b/internal/slides/static/decks.css
@@ -28,7 +28,6 @@ body:has([slides-decks]) {
align-items: center;
justify-content: space-between;
gap: var(--rst-sp-3) var(--rst-sp-5);
- margin-block-end: var(--rst-sp-5);
}
[slides-decks-head] h1 {
margin: 0;
@@ -62,7 +61,7 @@ body:has([slides-decks]) {
flex: 1 1 auto;
min-inline-size: 0;
min-block-size: 40px;
- padding-inline-start: 40px;
+ padding-inline-start: var(--rst-sp-6);
border-color: transparent;
border-radius: var(--rst-radius-pill);
background: light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06));
@@ -116,8 +115,13 @@ body:has([slides-decks]) {
[slides-decks-actions] {
display: contents;
}
+ /* As tall as New deck beside it, so search, on the line under
+ them, is one step below both. */
[slides-decks-head] h1 {
flex: 1 1 auto;
+ align-self: stretch;
+ display: flex;
+ align-items: center;
}
[slides-search] {
order: 3;
@@ -154,7 +158,6 @@ body:has([slides-decks]) {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: var(--rst-sp-5) var(--rst-sp-4);
- margin: 0 0 var(--rst-sp-6);
padding: 0;
list-style: none;
}
@@ -186,7 +189,7 @@ body:has([slides-decks]) {
[slides-tile] {
display: flex;
flex-direction: column;
- gap: 2px;
+ gap: var(--rst-sp-1);
min-inline-size: 0;
color: var(--rst-text);
text-decoration: none;
@@ -198,7 +201,7 @@ body:has([slides-decks]) {
}
[slides-tile] [slides-cover] {
inline-size: 100%;
- margin-block-end: var(--rst-sp-3);
+ margin-block-end: var(--rst-sp-2);
border-radius: 6px;
box-shadow:
0 0 0 1px light-dark(rgb(23 32 60 / 0.08), rgb(255 255 255 / 0.08)),
@@ -255,7 +258,7 @@ body:has([slides-decks]) {
}
[rst-row] [slides-cover] {
inline-size: 72px;
- margin-block: 2px;
+ margin-block: var(--rst-sp-1);
box-shadow:
0 0 0 1px light-dark(rgb(23 32 60 / 0.10), rgb(255 255 255 / 0.10)),
0 1px 2px rgb(23 32 60 / 0.08),
@@ -319,9 +322,5 @@ body:has([slides-decks]) {
/* The way back out of a result page, under the results: it is about the
list being shown, not about the controls that produced it. */
[slides-search-clear] {
- margin-block-start: var(--rst-sp-6);
font-size: var(--rst-fs-sm);
}
-[slides-decks] [rst-empty] {
- margin-block-start: var(--rst-sp-6);
-}
diff --git a/internal/slides/static/editor.css b/internal/slides/static/editor.css
index 152a7c6..655e63c 100644
--- a/internal/slides/static/editor.css
+++ b/internal/slides/static/editor.css
@@ -211,11 +211,11 @@
color: var(--rst-text-muted);
font-size: var(--rst-fs-xs);
font-weight: 600;
- margin: 6px 12px 2px;
+ margin: var(--rst-sp-2) var(--rst-sp-3) var(--rst-sp-1);
}
[slides-menu-glyph] {
display: inline-flex;
- margin-inline-end: 10px;
+ margin-inline-end: var(--rst-sp-2);
}
[slides-menu-glyph] svg {
block-size: 18px;
@@ -225,12 +225,12 @@
align-items: center;
display: flex;
flex: none;
- gap: 8px;
+ gap: var(--rst-sp-2);
}
[slides-head-end] [estilo-save-status] {
color: var(--rst-text-muted);
font-size: var(--rst-fs-sm);
- margin-inline-end: 4px;
+ margin-inline-end: var(--rst-sp-1);
text-align: end;
}
/* "Saved" is news, not a state to keep reading: it shows for two seconds
@@ -258,7 +258,7 @@
@media (max-width: 799.98px) {
[slides-history] {
background: var(--rst-surface-2);
- padding: 2px;
+ padding: 2px; /* spacing-allow: the pill's 2px track round its two buttons */
}
[slides-history] button {
align-items: center;
@@ -291,7 +291,7 @@
inset 0 1px 0 light-dark(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.06)),
inset 0 -1px 0 light-dark(rgb(23 32 60 / 0.05), rgb(0 0 0 / 0.2)),
0 1px 2px rgb(23 32 60 / 0.06);
- padding: 2px;
+ padding: 2px; /* spacing-allow: the pill's 2px track round its two buttons, 28px in all */
}
[slides-history] [estilo-bar-control] > button {
block-size: 24px;
@@ -299,7 +299,7 @@
color: var(--rst-text);
min-block-size: 24px;
min-inline-size: 30px;
- padding: 0 3px;
+ padding: 0 var(--rst-sp-1);
}
[slides-history] [estilo-bar-control] > button svg {
block-size: 16px;
@@ -351,8 +351,8 @@
cursor: pointer;
display: inline-flex;
font: 600 var(--rst-fs-base)/1 var(--rst-font, system-ui), sans-serif;
- gap: 6px;
- padding: 0 14px 0 12px;
+ gap: var(--rst-sp-2);
+ padding: 0 var(--rst-sp-4) 0 var(--rst-sp-3);
}
[slides-head-tool]:hover {
background: var(--rst-surface-2);
@@ -376,10 +376,10 @@
[slides-present-form] [rst-btn] {
block-size: 36px;
border-radius: var(--rst-radius-pill);
- padding-inline: 16px;
+ padding-inline: var(--rst-sp-4);
}
[slides-present-form] [rst-btn] {
- gap: 6px;
+ gap: var(--rst-sp-2);
}
[slides-present-form] [rst-btn] .icon {
block-size: 14px;
@@ -388,7 +388,7 @@
}
[slides-head-end] > [estilo-account] {
box-shadow: -9px 0 0 -8px var(--rst-line);
- padding-inline-start: 8px;
+ padding-inline-start: var(--rst-sp-2);
}
/* Narrower windows keep every control and drop words: the toggle and
Present become their icons (each keeps its name for a reader), the
@@ -405,7 +405,7 @@
}
[slides-head-tool],
[slides-present-form] [rst-btn] {
- padding-inline: 10px;
+ padding-inline: var(--rst-sp-3);
}
/* "Saved" at rest leaves the screen to make room, and stays in the
page (visually hidden, never display: none): it is the live
@@ -427,18 +427,18 @@
grid-template-areas: "brand title" "menus menus" "end end";
grid-template-columns: auto minmax(0, 1fr);
grid-template-rows: 3.25rem auto auto;
- padding-block-end: 6px;
+ padding-block-end: var(--rst-sp-2);
position: static;
}
[slides-head-end] {
flex-wrap: wrap;
- gap: 6px;
+ gap: var(--rst-sp-2);
justify-content: flex-end;
margin-inline-start: 0;
}
[slides-head-share] {
font-size: var(--rst-fs-base);
- padding-inline: 12px;
+ padding-inline: var(--rst-sp-3);
}
}
[slides-load-error] {
@@ -479,7 +479,7 @@
display: flex;
gap: var(--rst-sp-3);
justify-content: space-between;
- padding-block: 8px;
+ padding-block: var(--rst-sp-2);
}
[slides-keys-list] dt {
font-size: var(--rst-fs-sm);
@@ -493,7 +493,7 @@
border: 1px solid var(--rst-line);
border-radius: var(--slides-radius-key);
font: 600 var(--rst-fs-xs)/1 var(--rst-font, system-ui), sans-serif;
- padding: 4px 7px;
+ padding: var(--rst-sp-1) var(--rst-sp-2);
}
[slides-keys-dialog] form > p,
[slides-deck-dialog] form > p {
@@ -510,7 +510,7 @@
}
[slides-strip] {
display: flex;
- gap: 4px;
+ gap: var(--rst-sp-1);
list-style: none;
margin: 0;
overflow-x: auto;
@@ -525,11 +525,11 @@
align-items: start;
border-radius: var(--estilo-float-radius);
box-sizing: border-box;
- column-gap: 6px;
+ column-gap: var(--rst-sp-2);
display: grid;
flex: none;
grid-template-columns: var(--slides-strip-gutter) minmax(0, 1fr);
- padding: 4px 6px 4px 0;
+ padding: var(--rst-sp-1) var(--rst-sp-2) var(--rst-sp-1) 0;
position: relative;
width: 196px;
}
@@ -549,12 +549,12 @@
[slides-strip-new] {
align-self: center;
flex: none;
- padding: 4px 6px;
+ padding: var(--rst-sp-1) var(--rst-sp-2);
}
[slides-strip-add] {
anchor-name: --slides-strip-add;
display: flex;
- gap: 2px;
+ gap: var(--rst-sp-1);
}
[slides-strip-add] > [rst-btn] {
background: none;
@@ -568,11 +568,11 @@
color: var(--rst-text);
}
[slides-strip-add] > [rst-btn]:first-child {
- gap: 6px;
- padding-inline: 6px 10px;
+ gap: var(--rst-sp-2);
+ padding-inline: var(--rst-sp-2) var(--rst-sp-3);
}
[slides-strip-add] > [slides-layouts-toggle] {
- padding-inline: 6px;
+ padding-inline: var(--rst-sp-2);
}
/* The layouts, over everything, opening upward from the New slide
row where the engine can anchor them (and in the middle of the
@@ -588,10 +588,10 @@
0 10px 20px -8px rgb(40 28 12 / 0.2),
0 28px 56px -20px rgb(40 28 12 / 0.35);
color: var(--rst-text);
- gap: 4px;
+ gap: var(--rst-sp-1);
grid-template-columns: repeat(2, minmax(0, 1fr));
inline-size: 19rem;
- padding: 8px;
+ padding: var(--rst-sp-2);
}
[slides-layout-grid]:popover-open {
display: grid;
@@ -599,7 +599,7 @@
@supports (position-area: top) {
[slides-layout-grid] {
inset: auto;
- margin: 0 0 8px;
+ margin: 0 0 var(--rst-sp-2);
position-anchor: --slides-strip-add;
position-area: top span-right;
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
@@ -614,9 +614,9 @@
cursor: pointer;
display: grid;
font-size: var(--rst-fs-xs);
- gap: 6px;
+ gap: var(--rst-sp-2);
justify-items: center;
- padding: 8px 4px;
+ padding: var(--rst-sp-2) var(--rst-sp-1);
}
[slides-layout-grid] > button:hover,
[slides-layout-grid] > button:focus-visible {
@@ -733,10 +733,10 @@
font-size: var(--slides-fs-strip-presses);
font-variant-numeric: tabular-nums;
line-height: 1.5;
- padding: 0 4px;
+ padding: 0 var(--rst-sp-1);
pointer-events: none;
position: absolute;
- right: 10px;
+ right: calc(var(--rst-sp-2) + 4px);
white-space: nowrap;
}
[slides-strip-presses]:empty {
@@ -763,7 +763,7 @@
}
[slides-strip-item][data-talk="parked"] > [slides-strip-link] {
align-items: center;
- column-gap: 6px;
+ column-gap: var(--rst-sp-2);
display: grid;
grid-column: 1 / -1;
grid-template-columns: var(--slides-strip-gutter) minmax(0, 1fr);
@@ -779,7 +779,9 @@
inline-size: auto;
line-height: 1.5;
overflow: hidden;
- padding: 3px 32px 3px 8px;
+ padding-block: var(--rst-sp-1);
+ /* spacing-allow: the end is the ⋮ button's room, so the title never runs under it */
+ padding-inline: var(--rst-sp-2) 32px;
position: static;
text-overflow: ellipsis;
}
@@ -802,7 +804,7 @@
own padding round the slide. */
--slides-stage-pane-gap: var(--rst-sp-3);
--slides-stage-bar-block-size: 28px;
- --slides-stage-inset: 14px;
+ --slides-stage-inset: var(--rst-sp-3);
display: grid;
gap: var(--slides-stage-pane-gap);
grid-area: stage;
@@ -854,9 +856,10 @@
box-sizing: border-box;
display: grid;
grid-template-rows: minmax(0, 1fr);
+ /* spacing-allow: estilo's inspector inset (desk.css), so the card lines up with the floating inspector */
margin: 0 var(--estilo-inspector-inset, 12px) var(--estilo-inspector-inset, 12px);
min-block-size: 0;
- padding: 12px;
+ padding: var(--rst-sp-3);
position: relative;
}
/* In Desktop view the slide is as wide as the stage less its padding
@@ -897,10 +900,10 @@
the focused notes' outline (outline-offset 3px) needs inside it. Its
end padding is the ×'s column. */
[slides-notes-body] {
- margin: -5px;
+ margin: -5px; /* spacing-allow: gives back the padding below, the focus outline's room */
min-block-size: 0;
overflow-y: auto;
- padding: 5px calc(5px + 28px) 5px 5px;
+ padding: 5px calc(5px + 28px) 5px 5px; /* spacing-allow: the notes' focus outline (offset 3px) and, at the end, the ×'s 28px column */
scrollbar-width: thin;
}
[slides-notes] {
@@ -960,6 +963,7 @@
display: none;
}
[slides-stage-pane]:has(> [slides-notes-pane][data-state="closed"]:not([hidden])) {
+ /* spacing-allow: the closed notes' tab and its inset, estilo's, so the stage never runs under it */
padding-block-end: calc(var(--slides-notes-tab-block-size) + var(--estilo-inspector-inset, 12px));
}
[slides-stage-pane]:has(> [slides-notes-pane][data-state="closed"]:not([hidden])) > [slides-notes-open] {
@@ -990,7 +994,7 @@
margin: 0;
}
[slides-notes] p + p {
- margin-block-start: 0.5em;
+ margin-block-start: var(--rst-sp-3);
}
/* ProseMirror inside a block. The editable node IS the block element
@@ -1020,7 +1024,7 @@
margin: 0;
}
[slides-editor] .ProseMirror > * + * {
- margin-block-start: 0.6em;
+ margin-block-start: 0.6em; /* spacing-allow: a text block's paragraph spacing on the slide, slides.css's p + p, in the slide's own em (canvas) */
}
/* The lines the renderer joins with <br> (a heading's, a cell's) and a
list's items, which its flex gap spaces, take no margin: ProseMirror
@@ -1032,6 +1036,11 @@
[slides-editor] [data-block="code"] .ProseMirror > * + * {
margin-block-start: 0;
}
+/* The notes are the chrome's text, not a slide's: their paragraphs are
+ a step apart, bound or not ([slides-notes] p + p, above). */
+[slides-editor] [slides-notes].ProseMirror > * + * {
+ margin-block-start: var(--rst-sp-3);
+}
/* The server draws the stage's text in ProseMirror's own markup
(render/editing.go) so that the editor binding to a slide already in
@@ -1110,11 +1119,11 @@
[slides-editor][data-inspect="box"] [slides-inspector] [data-section="block"]:not([data-block-type="heading"], [data-block-type="text"], [data-block-type="list"], [data-block-type="quote"], [data-block-type="code"], [data-block-type="table"]) > [data-group="text"] {
display: none;
}
-/* The forms: a column of groups, Docs' 14px apart, with no box of
- their own. The Deck's is the Deck settings dialog's: a column of
- fields, the same 14px apart. */
+/* The forms: a column of groups, a step apart, with no box of their
+ own. The Deck's is the Deck settings dialog's: a column of fields,
+ the same step apart. */
[slides-inspector-form][rst-form] {
- gap: 14px;
+ gap: var(--rst-sp-3);
margin: 0;
max-width: none;
padding: 0;
@@ -1136,7 +1145,7 @@
[slides-inspector-form] [rst-field] {
display: flex;
flex-direction: column;
- gap: 4px;
+ gap: var(--rst-sp-1);
}
[slides-inspector-form] [rst-field-label],
[slides-inspector-form] legend {
@@ -1165,14 +1174,14 @@
[slides-inspector-form] [rst-input][type="color"] {
block-size: 28px;
border-radius: var(--rst-radius-sm);
- padding: 2px;
+ padding: 2px; /* spacing-allow: the colour well's ring inside its 28px box */
}
[slides-inspector-form] [rst-input][type="file"] {
font-size: var(--rst-fs-xs);
}
[slides-inspector-form] [rst-field-row] {
flex-wrap: nowrap;
- gap: 8px;
+ gap: var(--rst-sp-2);
}
[slides-inspector-form] [rst-field-row] > [rst-field] {
flex: 1 1 0;
@@ -1186,7 +1195,7 @@
padding: 0;
}
[slides-seg-field] > legend {
- margin-block-end: 4px;
+ margin-block-end: var(--rst-sp-1);
padding: 0;
}
/* Worded segments (Level, Size, Fit) size to their words, with room
@@ -1205,7 +1214,7 @@
[slides-layout-pick] {
border: 0;
display: grid;
- gap: 4px;
+ gap: var(--rst-sp-1);
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0;
min-inline-size: 0;
@@ -1218,7 +1227,7 @@
display: grid;
justify-items: center;
min-block-size: 24px;
- padding: 4px;
+ padding: var(--rst-sp-1);
position: relative;
}
[slides-layout-pick-item] > input {
@@ -1279,7 +1288,7 @@
engine cannot anchor). */
[slides-slide-rows] {
display: grid;
- gap: 2px;
+ gap: var(--rst-sp-1);
}
[slides-slide-row],
[slides-card-row] {
@@ -1294,7 +1303,7 @@
font-size: var(--rst-fs-sm);
justify-content: space-between;
min-block-size: 28px;
- padding: 0 6px;
+ padding: 0 var(--rst-sp-2);
}
[slides-slide-row]:is(:hover, :focus-visible),
[slides-card-row]:is(:hover, :focus-visible) {
@@ -1327,9 +1336,9 @@
0 28px 56px -20px rgb(40 28 12 / 0.35);
box-sizing: border-box;
color: var(--rst-text);
- gap: 10px;
+ gap: var(--rst-sp-3);
inline-size: min(15rem, calc(100vw - 16px));
- padding: 12px;
+ padding: var(--rst-sp-3);
}
[slides-slide-pop]:popover-open {
display: grid;
@@ -1342,7 +1351,7 @@
than the row and the card's padding); in a narrow window it is
shifted to stay inside it. */
justify-self: anchor-center;
- margin: 4px 0;
+ margin: var(--rst-sp-1) 0;
position-area: bottom;
position-try-fallbacks: flip-block;
}
@@ -1371,7 +1380,7 @@
[slides-appears] [estilo-seg-item] {
block-size: auto;
line-height: 1.2;
- padding: 4px var(--rst-sp-1);
+ padding: var(--rst-sp-1);
text-align: center;
text-wrap: balance;
}
@@ -1381,11 +1390,11 @@
}
[slides-appears-after] {
anchor-name: --slides-row-after;
- margin-block-start: 4px;
+ margin-block-start: var(--rst-sp-1);
}
[slides-after-pop]:popover-open {
- gap: 2px;
- padding: 6px;
+ gap: var(--rst-sp-1);
+ padding: var(--rst-sp-2);
}
[slides-inspector] [estilo-seg-item] .icon {
block-size: 16px;
@@ -1412,9 +1421,9 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-box-fields] {
border: 0;
display: grid;
- gap: 6px 8px;
+ gap: var(--rst-sp-2);
grid-template-columns: 1fr 1fr;
- margin: 6px 0 0;
+ margin: var(--rst-sp-2) 0 0;
min-inline-size: 0;
padding: 0;
}
@@ -1423,7 +1432,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-box-fields] > legend {
font-weight: 400;
line-height: 1.35;
- margin-block-end: 6px;
+ margin-block-end: var(--rst-sp-2);
padding: 0;
}
[slides-phone-badge] > [slides-card-row] {
@@ -1475,7 +1484,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-inspector-actions] {
display: flex;
flex-wrap: wrap;
- gap: 6px;
+ gap: var(--rst-sp-2);
}
[slides-inspector] [rst-btn="sm"],
[slides-deck-dialog] [rst-btn="sm"] {
@@ -1574,7 +1583,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-outline-none] {
color: var(--rst-text-muted);
margin: 0;
- padding: var(--estilo-item-padding-block) var(--estilo-item-padding-inline);
+ padding: var(--estilo-item-padding-block) var(--estilo-item-padding-inline); /* spacing-allow: estilo's menu row padding (menu.css), so the line sits where a row's words would */
}
/* The menu on a box (box-menu.mjs, the quieter editor §4): estilo's
@@ -1611,7 +1620,7 @@ summary[slides-card-row]::-webkit-details-marker {
line-height: 1.3;
max-inline-size: 18rem;
min-block-size: 24px;
- padding: 2px 10px;
+ padding: 0 var(--rst-sp-3);
position: absolute;
text-align: end;
z-index: 5;
@@ -1626,7 +1635,7 @@ summary[slides-card-row]::-webkit-details-marker {
card move when they change. */
@media (max-width: 1099px) {
[slides-stage-pane]:not([data-view="phone"]):has(> [slides-presses]:not([hidden])) [slides-stage] {
- padding-block-end: calc(var(--slides-stage-inset) + 1.5rem);
+ padding-block-end: calc(var(--slides-stage-inset) + 1.5rem); /* spacing-allow: the stage's own inset and the room for the playing words' second line, under the slide */
}
}
[slides-presses]:hover {
@@ -1808,7 +1817,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-phone-screen] {
overflow-x: hidden;
overflow-y: auto;
- padding: var(--slides-phone-page-top) var(--rst-sp-4) var(--rst-sp-6);
+ padding: var(--slides-phone-page-top) var(--rst-sp-4) var(--rst-sp-6); /* spacing-allow: the viewer's own top on a phone, its bar, padding and row of pills, so the slide sits where the viewer puts it */
scrollbar-width: thin;
}
[slides-stage-phone] {
@@ -1983,7 +1992,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-strip-menu] [aria-pressed] {
align-items: center;
display: flex;
- gap: 8px;
+ gap: var(--rst-sp-2);
justify-content: space-between;
}
[slides-strip-check] {
@@ -2057,7 +2066,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-presence-avatars] {
bottom: var(--rst-sp-1);
display: flex;
- gap: 2px;
+ gap: var(--rst-sp-1);
left: var(--rst-sp-1);
position: absolute;
}
@@ -2122,7 +2131,7 @@ summary[slides-card-row]::-webkit-details-marker {
font-size: var(--slides-fs-step-mark);
font-variant-numeric: tabular-nums;
line-height: 1;
- padding: 2px 4px;
+ padding: 2px 4px; /* spacing-allow: a press number in a box's margin on the stage, beside the box it numbers (canvas overlay) */
position: absolute;
transform: translateX(calc(-100% - 4px));
}
@@ -2144,7 +2153,7 @@ summary[slides-card-row]::-webkit-details-marker {
left: -2px;
max-width: calc(100% + 4px);
overflow: hidden;
- padding: 1px 6px;
+ padding: 1px 6px; /* spacing-allow: the name chip sits on the box's outline, 22px above it (canvas overlay) */
pointer-events: auto;
position: absolute;
text-overflow: ellipsis;
@@ -2226,7 +2235,8 @@ summary[slides-card-row]::-webkit-details-marker {
min-block-size: max(var(--rst-sp-4), 24px, calc(1.4em + 4px));
}
[slides-editor]:has([slides-inspector][data-state="open"]) [slides-desk] > [slides-fonts-status] {
- padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + 16px);
+ /* spacing-allow: clear of the floating inspector, estilo's width and inset, and a step */
+ padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + var(--rst-sp-4));
}
/* The strip: a surface of its own, the bar's, with a hairline on its
desk edge. The list scrolls, New slide's row at its end with it. */
@@ -2251,7 +2261,7 @@ summary[slides-card-row]::-webkit-details-marker {
}
[slides-strip-new] {
align-self: stretch;
- padding-inline-start: calc(var(--slides-strip-gutter) + 6px);
+ padding-inline-start: calc(var(--slides-strip-gutter) + var(--rst-sp-2)); /* spacing-allow: starts where the pictures do, past the number's gutter and the item's column gap */
}
[slides-strip-item][data-drop="before"] {
box-shadow: 0 -4px 0 0 var(--rst-accent);
@@ -2356,7 +2366,8 @@ summary[slides-card-row]::-webkit-details-marker {
z-index: 3;
}
[slides-editor]:has([slides-inspector][data-state="open"]) [slides-stage-pane] {
- padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + 16px);
+ /* spacing-allow: clear of the floating inspector, estilo's width and inset, and a step */
+ padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + var(--rst-sp-4));
}
}
@@ -2440,12 +2451,12 @@ summary[slides-card-row]::-webkit-details-marker {
margin: 0;
max-block-size: calc(100dvh - 84px);
overflow: auto;
- padding: 14px 18px 18px;
+ padding: var(--rst-sp-3) var(--rst-sp-4) var(--rst-sp-4);
position: fixed;
}
[slides-assist]:popover-open {
display: grid;
- gap: 12px;
+ gap: var(--rst-sp-3);
}
[slides-assist-head] {
align-items: center;
@@ -2456,7 +2467,7 @@ summary[slides-card-row]::-webkit-details-marker {
align-items: center;
display: flex;
font-size: var(--rst-fs-lg);
- gap: 8px;
+ gap: var(--rst-sp-2);
margin: 0;
}
[slides-assist-head] h2 .icon {
@@ -2475,7 +2486,7 @@ summary[slides-card-row]::-webkit-details-marker {
display: inline-flex;
inline-size: 32px;
justify-content: center;
- margin-inline-end: -6px;
+ margin-inline-end: calc(-1 * var(--rst-sp-2));
padding: 0;
}
[slides-assist-close]:hover {
@@ -2488,7 +2499,7 @@ summary[slides-card-row]::-webkit-details-marker {
}
[slides-assist-form] {
display: grid;
- gap: 12px;
+ gap: var(--rst-sp-3);
margin: 0;
}
[slides-assist-form] [rst-field] {
@@ -2500,7 +2511,7 @@ summary[slides-card-row]::-webkit-details-marker {
}
[slides-assist-choices] {
display: grid;
- gap: 10px;
+ gap: var(--rst-sp-3);
grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
[slides-assist-choices] select {
@@ -2517,12 +2528,12 @@ summary[slides-card-row]::-webkit-details-marker {
justify-content: flex-end;
}
[slides-assist-ask] {
- gap: 6px;
+ gap: var(--rst-sp-2);
min-block-size: 36px;
}
[slides-assist-outcome] {
display: grid;
- gap: 4px;
+ gap: var(--rst-sp-1);
}
[slides-assist-outcome] > p {
margin: 0;
@@ -2533,7 +2544,7 @@ summary[slides-card-row]::-webkit-details-marker {
[slides-assist-summary] {
background: var(--rst-surface-2);
border-radius: var(--estilo-float-radius);
- padding: 10px 12px;
+ padding: var(--rst-sp-2) var(--rst-sp-3);
}
[slides-assist-note] {
color: var(--rst-text-muted);
@@ -2546,10 +2557,10 @@ summary[slides-card-row]::-webkit-details-marker {
border-radius: var(--estilo-float-radius);
color: var(--rst-tone-negative-fg);
font-weight: 600;
- padding: 10px 12px;
+ padding: var(--rst-sp-2) var(--rst-sp-3);
}
[slides-assist-undo] {
- gap: 6px;
+ gap: var(--rst-sp-2);
justify-self: start;
min-block-size: 36px;
}
@@ -2562,7 +2573,7 @@ summary[slides-card-row]::-webkit-details-marker {
inline-size: 100vw;
inset: auto 0 0 0;
max-block-size: 88dvh;
- padding-block-end: max(18px, env(safe-area-inset-bottom));
+ padding-block-end: max(var(--rst-sp-4), env(safe-area-inset-bottom));
}
[slides-assist-choices] {
grid-template-columns: minmax(0, 1fr);
diff --git a/internal/slides/static/presenter.css b/internal/slides/static/presenter.css
index 0d24dc0..724b195 100644
--- a/internal/slides/static/presenter.css
+++ b/internal/slides/static/presenter.css
@@ -63,7 +63,7 @@ body {
block-size: 100dvh;
inline-size: 100%;
overflow: hidden;
- padding: 16px 28px;
+ padding: var(--rst-sp-4) var(--rst-sp-5);
background: var(--p-bg);
color: var(--p-ink);
font-family: var(--p-sans);
@@ -137,10 +137,10 @@ body {
display: flex;
flex-wrap: wrap;
align-items: center;
- gap: 8px 16px;
+ gap: var(--rst-sp-2) var(--rst-sp-4);
min-inline-size: 0;
- margin-block-end: 16px;
- padding-block-end: 12px;
+ margin-block-end: var(--rst-sp-4);
+ padding-block-end: var(--rst-sp-3);
border-block-end: 1px solid var(--p-border);
font-family: var(--p-mono);
font-variant-numeric: tabular-nums;
@@ -149,8 +149,8 @@ body {
[presenter-pos] {
display: inline-flex;
align-items: center;
- gap: 10px;
- padding: 8px 14px;
+ gap: var(--rst-sp-2);
+ padding: var(--rst-sp-2) var(--rst-sp-3);
border-radius: 8px;
font-size: 24px;
line-height: 1.2;
@@ -170,15 +170,15 @@ body {
[presenter-stepcount] {
display: inline-flex;
align-items: center;
- gap: 10px;
- padding: 6px 12px;
+ gap: var(--rst-sp-2);
+ padding: var(--rst-sp-2) var(--rst-sp-3);
border-radius: 8px;
background: var(--p-raised);
}
[presenter-track] {
display: flex;
- gap: 5px;
+ gap: var(--rst-sp-1);
inline-size: 96px;
}
@@ -200,7 +200,7 @@ body {
}
[presenter-mode] {
- padding: 4px 12px;
+ padding: var(--rst-sp-1) var(--rst-sp-3);
border-radius: 999px;
background: var(--p-raised);
color: var(--p-ink-2);
@@ -210,7 +210,7 @@ body {
}
[presenter-black] {
- padding: 4px 12px;
+ padding: var(--rst-sp-1) var(--rst-sp-3);
border-radius: 4px;
border: 1px solid var(--p-accent);
color: var(--p-accent);
@@ -282,13 +282,13 @@ body {
/* Back and Next: the scriptless presses, quiet beside the timer. */
[presenter-presses] {
display: inline-flex;
- gap: 6px;
+ gap: var(--rst-sp-2);
margin-inline-start: auto;
}
[presenter-press] {
min-block-size: 40px;
- padding: 6px 14px;
+ padding: var(--rst-sp-1) var(--rst-sp-3);
border-radius: 8px;
border: 1px solid var(--p-border);
color: var(--p-ink-2);
@@ -301,7 +301,7 @@ body {
}
[presenter-elapsed] {
- padding: 4px 14px;
+ padding: var(--rst-sp-1) var(--rst-sp-3);
border-radius: 8px;
font: 40px/1.1 var(--p-mono);
color: var(--p-ink);
@@ -356,9 +356,9 @@ body {
window's top padding, the 8px above and 8px below. */
max-block-size: calc(100dvh - 100% - 32px);
overflow-y: auto;
- padding: 8px;
+ padding: var(--rst-sp-2);
display: grid;
- gap: 2px;
+ gap: var(--rst-sp-1);
border-radius: 12px;
background: var(--p-panel);
border: 1px solid var(--p-border);
@@ -369,7 +369,7 @@ body {
[presenter-menu] button,
[presenter-menu] a {
display: block;
- padding: 10px 14px;
+ padding: var(--rst-sp-2) var(--rst-sp-3);
border-radius: 8px;
text-align: start;
color: var(--p-ink-2);
@@ -385,7 +385,7 @@ body {
inline-size: 100%;
border: 0;
border-block-start: 1px solid var(--p-border);
- margin: 4px 0;
+ margin: var(--rst-sp-1) 0;
}
/* ---- arranging (fixtures/presenter-arrange.mjs) ----
@@ -397,12 +397,12 @@ body {
[presenter-arrange-bar] {
grid-row: 2;
min-inline-size: 0;
- margin-block-end: 16px;
+ margin-block-end: var(--rst-sp-4);
display: flex;
flex-wrap: wrap;
- gap: 8px 12px;
+ gap: var(--rst-sp-2) var(--rst-sp-3);
align-items: center;
- padding: 10px 16px;
+ padding: var(--rst-sp-2) var(--rst-sp-4);
border-radius: 10px;
background: var(--p-raised);
color: var(--p-ink-2);
@@ -413,7 +413,7 @@ body {
min-inline-size: 0;
margin-inline-end: auto;
display: grid;
- gap: 2px;
+ gap: var(--rst-sp-1);
}
[presenter-arrange-words] small {
@@ -427,7 +427,7 @@ body {
[presenter-arrange-bar] button {
min-block-size: 36px;
- padding: 6px 16px;
+ padding: var(--rst-sp-1) var(--rst-sp-4);
border-radius: 8px;
border: 1px solid var(--p-border);
color: var(--p-ink);
@@ -469,12 +469,12 @@ body {
z-index: 3;
align-self: start;
inline-size: max-content;
- max-inline-size: calc(100cqw - 40px);
- margin: 12px 20px;
+ max-inline-size: calc(100cqw - 2 * var(--rst-sp-5));
+ margin: var(--rst-sp-3) var(--rst-sp-5);
display: flex;
flex-wrap: wrap;
- gap: 2px;
- padding: 4px;
+ gap: var(--rst-sp-1);
+ padding: var(--rst-sp-1);
border-radius: 10px;
background: rgb(24 24 32 / 0.95);
border: 1px solid var(--p-border);
@@ -550,7 +550,7 @@ body {
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 6fr);
- row-gap: 12px;
+ row-gap: var(--rst-sp-3);
}
@media (min-width: 720px) and (min-height: 560px) {
@@ -558,27 +558,27 @@ body {
grid-template-columns: repeat(12, minmax(0, 1fr));
grid-template-rows: repeat(12, minmax(0, 1fr));
gap: 0;
- margin: -8px -16px;
+ margin: calc(-1 * var(--rst-sp-2)) calc(-1 * var(--rst-sp-4));
}
[presenter-panel] {
- padding: 8px 16px;
+ padding: var(--rst-sp-2) var(--rst-sp-4);
}
}
[presenter-panel] {
/* Stacked: rows 5fr 3fr 6fr with two 12px gaps. Now is as wide as
its row allows, and no wider than leaves Next, under its 24px label
- and 10px gap, room for half of it. The arranged window's page
+ and 8px gap, room for half of it. The arranged window's page
<style> says the same for its own grid. */
- --p-now: min(100cqw, (100cqh - 24px) * 5 / 14 * 16 / 9, ((100cqh - 24px) * 3 / 14 - 34px) * 2 * 16 / 9);
+ --p-now: min(100cqw, (100cqh - 24px) * 5 / 14 * 16 / 9, ((100cqh - 24px) * 3 / 14 - 32px) * 2 * 16 / 9);
position: relative;
min-inline-size: 0;
min-block-size: 0;
overflow: hidden;
display: flex;
flex-direction: column;
- gap: 10px;
+ gap: var(--rst-sp-2);
}
/* The room a slide may take: 16:9 inside whatever the panel has left. */
@@ -653,7 +653,7 @@ body {
block-size: 24px;
display: flex;
align-items: center;
- gap: 8px;
+ gap: var(--rst-sp-2);
margin: 0;
flex: none;
font: 16px/1.5 var(--p-mono);
@@ -671,19 +671,19 @@ body {
background: var(--p-panel);
border: 1px solid var(--p-border);
border-radius: 12px;
- padding: 60px 32px 28px;
+ padding: 60px var(--rst-sp-5) var(--rst-sp-5); /* spacing-allow: the top is the room the notes' tools take over them (inset, padding and a 36px button) */
line-height: 1.45;
color: var(--p-ink-2);
font-family: var(--p-sans);
}
[presenter-notes] p {
- margin: 0 0 0.5em;
+ margin: 0 0 0.5em; /* spacing-allow: the notes' type is the presenter's own size (Notes size), so their paragraphs are spaced in its em */
max-inline-size: 30em;
}
[presenter-notes] section {
- padding-block: 0.35em;
+ padding-block: 0.35em; /* spacing-allow: in the notes' own em, as their paragraphs */
}
[presenter-notes] section:empty {
@@ -692,8 +692,8 @@ body {
[presenter-notes] section + section {
border-block-start: 1px solid var(--p-border);
- margin-block-start: 0.5em;
- padding-block-start: 0.6em;
+ margin-block-start: 0.5em; /* spacing-allow: in the notes' own em, as their paragraphs */
+ padding-block-start: 0.6em; /* spacing-allow: in the notes' own em, as their paragraphs */
}
[presenter-notes] section[data-part="past"],
@@ -728,8 +728,8 @@ body {
inset-block-start: 10px;
inset-inline-end: 10px;
display: flex;
- gap: 2px;
- padding: 4px;
+ gap: var(--rst-sp-1);
+ padding: var(--rst-sp-1);
border-radius: 10px;
background: rgb(24 24 32 / 0.92);
border: 1px solid var(--p-border);
@@ -770,7 +770,7 @@ body {
align-self: center;
border: 0;
background: var(--p-border);
- margin: 0 4px;
+ margin: 0 var(--rst-sp-1);
}
[presenter-empty] {
@@ -784,22 +784,22 @@ body {
@media (max-width: 719.98px), (max-height: 559.98px) {
[presenter],
[presenter-pick] {
- padding: 10px 14px;
+ padding: var(--rst-sp-2) var(--rst-sp-3);
}
[presenter-head] {
- gap: 6px 10px;
- margin-block-end: 10px;
- padding-block-end: 8px;
+ gap: var(--rst-sp-2);
+ margin-block-end: var(--rst-sp-2);
+ padding-block-end: var(--rst-sp-2);
}
[presenter-pos] {
- padding: 4px 8px;
+ padding: var(--rst-sp-1) var(--rst-sp-2);
font-size: 18px;
}
[presenter-stepcount] {
- padding: 4px 8px;
+ padding: var(--rst-sp-1) var(--rst-sp-2);
}
[presenter-track] {
@@ -818,7 +818,7 @@ body {
[presenter-press] {
min-block-size: 36px;
- padding: 4px 10px;
+ padding: var(--rst-sp-1) var(--rst-sp-2);
}
[presenter-presses] {
@@ -826,7 +826,7 @@ body {
}
[presenter-elapsed] {
- padding: 2px 8px;
+ padding: 0 var(--rst-sp-2);
font-size: 24px;
}
@@ -840,11 +840,11 @@ body {
}
[presenter-menu] {
- max-block-size: calc(100dvh - 100% - 26px);
+ max-block-size: calc(100dvh - 100% - 24px);
}
[presenter-notes] {
- padding: 52px 16px 12px;
+ padding: 52px var(--rst-sp-4) var(--rst-sp-3); /* spacing-allow: the top is the room the notes' tools take over them */
}
[presenter-next-label] {
@@ -856,14 +856,14 @@ body {
[presenter-pick] {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
- gap: 12px;
+ gap: var(--rst-sp-3);
}
[presenter-pick-head] {
display: flex;
flex-wrap: wrap;
align-items: baseline;
- gap: 8px 16px;
+ gap: var(--rst-sp-2) var(--rst-sp-4);
}
[presenter-pick-head] h1 {
@@ -881,19 +881,19 @@ body {
min-block-size: 0;
overflow-y: auto;
margin: 0;
- padding: 2px;
+ padding: 2px; /* spacing-allow: room for the items' focus ring inside the list that scrolls */
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
align-content: start;
- gap: 12px 10px;
+ gap: var(--rst-sp-3);
}
[presenter-pick-item] {
display: grid;
- gap: 6px;
+ gap: var(--rst-sp-2);
inline-size: 100%;
- padding: 6px;
+ padding: var(--rst-sp-2);
border-radius: 8px;
text-align: start;
color: var(--p-ink-2);
@@ -923,7 +923,7 @@ body {
[presenter-pick-item] b {
font: 600 14px/1.35 var(--p-mono);
- margin-inline-end: 6px;
+ margin-inline-end: var(--rst-sp-2);
}
[presenter-pick-item] em {
@@ -943,10 +943,10 @@ body {
max-inline-size: 100%;
max-block-size: calc(100dvh - 100% - 32px);
box-sizing: border-box;
- padding: 16px;
+ padding: var(--rst-sp-4);
display: grid;
grid-template-rows: auto minmax(0, 1fr);
- gap: 12px;
+ gap: var(--rst-sp-3);
border: 1px solid var(--p-border);
border-radius: 12px;
background: var(--p-panel);
@@ -962,8 +962,8 @@ body {
[presenter-picker-field] {
display: flex;
align-items: center;
- gap: 10px;
- padding: 10px 14px;
+ gap: var(--rst-sp-2);
+ padding: var(--rst-sp-2) var(--rst-sp-3);
border-radius: 8px;
background: var(--p-bg);
border: 1px solid var(--p-border);
@@ -1004,7 +1004,7 @@ body {
[presenter-picker-none] {
margin: 0;
- padding: 24px 8px;
+ padding: var(--rst-sp-5) var(--rst-sp-2);
color: var(--p-muted);
}
@@ -1015,8 +1015,8 @@ body {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
align-content: start;
- gap: 12px 10px;
- padding: 2px;
+ gap: var(--rst-sp-3);
+ padding: 2px; /* spacing-allow: room for the items' focus ring inside the grid that scrolls */
}
[presenter-picker-grid] [presenter-pick-item] {
diff --git a/internal/slides/static/slides.css b/internal/slides/static/slides.css
index 58ddff1..d27bebf 100644
--- a/internal/slides/static/slides.css
+++ b/internal/slides/static/slides.css
@@ -141,7 +141,7 @@
aspect-ratio: 16 / 9;
inline-size: 100%;
margin: 0;
- padding: var(--slides-pad);
+ padding: var(--slides-pad); /* spacing-allow: the slide's margin, 6.25% of its own frame (the deck's geometry, not the page's) */
background-color: var(--slides-bg);
color: var(--slides-fg);
font-family: var(--slides-font-body);
@@ -172,7 +172,7 @@
itself, and there is no gap to get wrong. */
[slides-frame] {
display: grid;
- gap: var(--slides-gap);
+ gap: var(--slides-gap); /* spacing-allow: the template's regions, 2.6cqw of the slide (the deck's geometry) */
grid-template-columns: minmax(0, 1fr);
align-content: start;
min-inline-size: 0;
@@ -196,7 +196,7 @@
[slides-region] {
display: flex;
flex-direction: column;
- gap: var(--slides-gap);
+ gap: var(--slides-gap); /* spacing-allow: a region's blocks, 2.6cqw of the slide (the deck's geometry) */
min-inline-size: 0;
min-block-size: 0;
}
@@ -244,7 +244,7 @@
"body aside";
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr;
- column-gap: calc(var(--slides-gap) * 1.6);
+ column-gap: calc(var(--slides-gap) * 1.6); /* spacing-allow: two columns' gutter, in the slide's cqw */
}
/* section — a chapter break: one heading, centred, over an accent bar
@@ -284,8 +284,8 @@
align-self: end;
justify-self: start;
max-inline-size: 80%;
- margin: var(--slides-pad);
- padding: calc(var(--slides-gap) / 2) var(--slides-gap);
+ margin: var(--slides-pad); /* spacing-allow: the slide's margin, a percentage of its frame */
+ padding: calc(var(--slides-gap) / 2) var(--slides-gap); /* spacing-allow: the scrim round a heading on a picture, in the slide's cqw */
border-radius: 1cqw;
/* The scrim is the slide's own background, mixed towards
transparent: it belongs to whichever theme is on. */
@@ -371,23 +371,23 @@
margin: 0;
}
[slides-block] p + p {
- margin-block-start: 0.6em;
+ margin-block-start: 0.6em; /* spacing-allow: a slide's paragraph spacing, in its own type's em */
}
[slides-block][data-block="list"] {
display: flex;
flex-direction: column;
- gap: 0.4em;
- padding-inline-start: 1.4em;
+ gap: 0.4em; /* spacing-allow: a slide list's items, in its own type's em */
+ padding-inline-start: 1.4em; /* spacing-allow: a slide list's indent, in its own type's em */
}
[slides-block][data-block="list"][data-indent="1"] {
- padding-inline-start: 3em;
+ padding-inline-start: 3em; /* spacing-allow: a slide list's indent, in its own type's em */
}
[slides-block][data-block="list"][data-indent="2"] {
- padding-inline-start: 4.6em;
+ padding-inline-start: 4.6em; /* spacing-allow: a slide list's indent, in its own type's em */
}
[slides-block][data-block="list"][data-indent="3"] {
- padding-inline-start: 6.2em;
+ padding-inline-start: 6.2em; /* spacing-allow: a slide list's indent, in its own type's em */
}
[slides-block][data-block="list"] li::marker {
color: var(--slides-accent);
@@ -397,7 +397,7 @@
font-size: var(--slides-body-l);
display: flex;
flex-direction: column;
- gap: 0.6em;
+ gap: 0.6em; /* spacing-allow: a slide quote and its caption, in its own type's em */
}
[slides-block][data-block="quote"] blockquote {
margin: 0;
@@ -454,7 +454,7 @@
[slides-block][data-block="columns"] {
display: grid;
- gap: var(--slides-gap);
+ gap: var(--slides-gap); /* spacing-allow: a slide's columns, 2.6cqw of the slide */
grid-template-columns: repeat(2, minmax(0, 1fr));
}
[slides-block][data-block="columns"][data-count="3"] {
@@ -465,7 +465,7 @@
font-size: var(--slides-code);
font-family: var(--slides-font-code);
line-height: 1.45;
- padding: 1em;
+ padding: 1em; /* spacing-allow: a slide's code block, in its own type's em */
border-radius: 0.6em;
overflow-x: auto;
tab-size: 2;
@@ -480,7 +480,7 @@
[slides-block] :not(pre) > code {
font-family: var(--slides-font-code);
font-size: 0.88em;
- padding: 0.1em 0.3em;
+ padding: 0.1em 0.3em; /* spacing-allow: inline code on a slide, in its own type's em */
border-radius: 0.25em;
background-color: color-mix(in oklab, var(--slides-fg) 10%, var(--slides-bg));
}
@@ -488,7 +488,7 @@
[slides-block] mark {
background-color: color-mix(in oklab, var(--slides-accent) 26%, var(--slides-bg));
color: inherit;
- padding: 0 0.15em;
+ padding: 0 0.15em; /* spacing-allow: a highlight on a slide, in its own type's em */
border-radius: 0.2em;
}
[slides-block] a {
@@ -508,7 +508,7 @@
[slides-block][data-block="table"] td {
text-align: start;
vertical-align: top;
- padding: 0.45em 0.7em;
+ padding: 0.45em 0.7em; /* spacing-allow: a slide table's cells, in its own type's em */
border-block-end: 1px solid color-mix(in oklab, var(--slides-fg) 22%, var(--slides-bg));
}
[slides-block][data-block="table"] th {
diff --git a/internal/slides/static/tokens.css b/internal/slides/static/tokens.css
index 3ae9664..07f8b10 100644
--- a/internal/slides/static/tokens.css
+++ b/internal/slides/static/tokens.css
@@ -2476,6 +2476,90 @@ small.rst-field__hint, small[rst-field-hint] { display: block; font-size: var(--
and every caller writes by hand, is rst-form-bar now. */
.rst-form-foot, [rst-form-foot] { display: flex; gap: var(--rst-sp-3); margin-block-start: var(--rst-sp-3); }
+/* ── stack: a page's vertical rhythm ──────────────────────────────────
+ The blocks a screen is written in, a heading, a paragraph, a hint, a
+ card, a row of buttons, are spaced by the stack they sit in and by
+ nothing else. Hand-rolled margins gave every screen its own rhythm:
+ a heading further from its own text than from the section before
+ it, a hint resting on the button under it. So a stack is a flex
+ column, where no margin collapses, every child's own block margins
+ are zeroed, and the space before each child is read off one table
+ by what it is and what it follows (DESIGN.md, "Spacing"):
+
+ after a heading (h1 to h6) --rst-sp-2
+ before an actions row, a button --rst-sp-4
+ a label or hint, then its input, or an
+ input, then its hint --rst-sp-2
+ before h1, h2 or a section, or after
+ the page header --rst-sp-5
+ before h3 to h6 --rst-sp-4
+ anything else --rst-sp-3
+
+ Higher in the table wins. Each relation sets its own custom property
+ on the child, and the one margin rule reads them in the table's
+ order through var() fallbacks, so which rule wins is written in one
+ place rather than left to specificity. Every child resets all five
+ first, so a nested stack's child never inherits its parent's answer.
+ rst-section marks a child that opens a new section; a section that
+ holds blocks of its own is a stack too, <section rst-stack
+ rst-section>.
+
+ The column's gap is the table's smallest step, --rst-sp-2, and a
+ child's block-start margin is the rest of its answer. The gap is
+ the floor: it falls only between children that are drawn, so a
+ [hidden] child, which a sibling selector cannot see past, costs the
+ block after it its relation but never leaves it touching. A hidden
+ input, a form's CSRF field, is passed over the same way, so the
+ first block after one still opens the stack flush. */
+.rst-stack, [rst-stack] { display: flex; flex-direction: column; gap: var(--rst-sp-2); }
+.rst-stack > :not([hidden]), [rst-stack] > :not([hidden]) {
+ --rst-stack-actions: initial;
+ --rst-stack-heading: initial;
+ --rst-stack-control: initial;
+ --rst-stack-section: initial;
+ --rst-stack-sub: initial;
+ margin-block: 0;
+}
+.rst-stack > :not([hidden], [type="hidden"]) + :not([hidden]), [rst-stack] > :not([hidden], [type="hidden"]) + :not([hidden]) {
+ margin-block-start: calc(var(--rst-stack-heading, var(--rst-stack-actions, var(--rst-stack-control, var(--rst-stack-section, var(--rst-stack-sub, var(--rst-sp-3)))))) - var(--rst-sp-2));
+}
+/* A column stretches its children across; a button or a picture keeps
+ its own width. */
+.rst-stack > button, [rst-stack] > button, .rst-stack > .rst-btn, [rst-stack] > [rst-btn], .rst-stack > img, [rst-stack] > img { align-self: flex-start; }
+.rst-stack > :not([hidden], [type="hidden"]) + h3, [rst-stack] > :not([hidden], [type="hidden"]) + h3,
+.rst-stack > :not([hidden], [type="hidden"]) + h4, [rst-stack] > :not([hidden], [type="hidden"]) + h4,
+.rst-stack > :not([hidden], [type="hidden"]) + h5, [rst-stack] > :not([hidden], [type="hidden"]) + h5,
+.rst-stack > :not([hidden], [type="hidden"]) + h6, [rst-stack] > :not([hidden], [type="hidden"]) + h6 { --rst-stack-sub: var(--rst-sp-4); }
+.rst-stack > :not([hidden], [type="hidden"]) + h1, [rst-stack] > :not([hidden], [type="hidden"]) + h1,
+.rst-stack > :not([hidden], [type="hidden"]) + h2, [rst-stack] > :not([hidden], [type="hidden"]) + h2,
+.rst-stack > :not([hidden], [type="hidden"]) + .rst-section, [rst-stack] > :not([hidden], [type="hidden"]) + [rst-section],
+.rst-stack > .rst-page-header + :not([hidden]), [rst-stack] > [rst-page-header] + :not([hidden]) { --rst-stack-section: var(--rst-sp-5); }
+.rst-stack > label + input:not([hidden]), [rst-stack] > label + input:not([hidden]),
+.rst-stack > label + select:not([hidden]), [rst-stack] > label + select:not([hidden]),
+.rst-stack > label + textarea:not([hidden]), [rst-stack] > label + textarea:not([hidden]),
+.rst-stack > .rst-field__help + input:not([hidden]), [rst-stack] > [rst-field-help] + input:not([hidden]),
+.rst-stack > .rst-field__help + select:not([hidden]), [rst-stack] > [rst-field-help] + select:not([hidden]),
+.rst-stack > .rst-field__help + textarea:not([hidden]), [rst-stack] > [rst-field-help] + textarea:not([hidden]),
+.rst-stack > input + .rst-field__help, [rst-stack] > input + [rst-field-help],
+.rst-stack > select + .rst-field__help, [rst-stack] > select + [rst-field-help],
+.rst-stack > textarea + .rst-field__help, [rst-stack] > textarea + [rst-field-help] { --rst-stack-control: var(--rst-sp-2); }
+.rst-stack > h1 + :not([hidden]), [rst-stack] > h1 + :not([hidden]),
+.rst-stack > h2 + :not([hidden]), [rst-stack] > h2 + :not([hidden]),
+.rst-stack > h3 + :not([hidden]), [rst-stack] > h3 + :not([hidden]),
+.rst-stack > h4 + :not([hidden]), [rst-stack] > h4 + :not([hidden]),
+.rst-stack > h5 + :not([hidden]), [rst-stack] > h5 + :not([hidden]),
+.rst-stack > h6 + :not([hidden]), [rst-stack] > h6 + :not([hidden]) { --rst-stack-heading: var(--rst-sp-2); }
+.rst-stack > :not([hidden], [type="hidden"]) + .rst-actions, [rst-stack] > :not([hidden], [type="hidden"]) + [rst-actions],
+.rst-stack > :not([hidden], [type="hidden"]) + .rst-form-foot, [rst-stack] > :not([hidden], [type="hidden"]) + [rst-form-foot],
+.rst-stack > :not([hidden], [type="hidden"]) + .rst-form-actions, [rst-stack] > :not([hidden], [type="hidden"]) + [rst-form-actions],
+.rst-stack > :not([hidden], [type="hidden"]) + button, [rst-stack] > :not([hidden], [type="hidden"]) + button,
+.rst-stack > :not([hidden], [type="hidden"]) + .rst-btn, [rst-stack] > :not([hidden], [type="hidden"]) + [rst-btn] { --rst-stack-actions: var(--rst-sp-4); }
+/* The actions row: buttons, links styled as buttons, and the one-button
+ forms a POST action needs, side by side and wrapping on a phone. A
+ form stays a box (display: contents would make it one no driver can
+ see), and a one-button form is as wide as its button. */
+.rst-actions, [rst-actions] { align-items: center; display: flex; flex-wrap: wrap; gap: var(--rst-sp-2); }
+
@media (prefers-reduced-motion: reduce) {
.rst-switch__track, [rst-switch-track], .rst-switch[data-rst-settle] .rst-switch__track, [rst-switch][data-rst-settle] [rst-switch-track], .rst-tblock > .rst-tblock__head[data-rst-settle] > .rst-switch__track, [rst-tblock] > [rst-tblock-head][data-rst-settle] > [rst-switch-track] { transition: none; }
}
diff --git a/internal/slides/team_fixture_test.go b/internal/slides/team_fixture_test.go
index 06db788..ce047c5 100644
--- a/internal/slides/team_fixture_test.go
+++ b/internal/slides/team_fixture_test.go
@@ -68,7 +68,7 @@ func teamConfigFor(t *testing.T, b roster.Bindings, key *assertioncrypto.Keypair
tcfg, dir := teammodetest.Provision(t, b)
clock := teammodetest.NewClock()
raw, _ := json.Marshal(map[string]string{"test": base64.StdEncoding.EncodeToString(key.SignPub())})
- cfg := Config{Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: allowed,
+ cfg := Config{KeymailServers: testKeymailServers, Mailer: &homeTestMail{}, Env: EnvDevelopment, Origin: homeTestOrigin, Logger: quietLogger(), AllowedAddresses: allowed,
Home: &connect.Credentials{Issuer: teamTestIssuer, ConsumerID: teamTestConsumer, KeysBase64: base64.StdEncoding.EncodeToString(raw), DEKBase64: base64.StdEncoding.EncodeToString(bytes.Repeat([]byte{8}, 32))},
Team: tcfg, teamTransport: dir, teamClock: clock}
return cfg, dir, clock
diff --git a/internal/slides/templates/agents.html b/internal/slides/templates/agents.html
index 10ee9d9..607d595 100644
--- a/internal/slides/templates/agents.html
+++ b/internal/slides/templates/agents.html
@@ -15,7 +15,7 @@
{{template "page-header" dict "L" $L "Title" .Title}}
{{if .NewToken}}
-<div rst-box>
+<div rst-box rst-stack>
{{template "callout" dict "L" $L "Tone" "warning" "Title" .NewTitle "Body" .NewHint}}
{{/* Hand-written rather than {{template "field-text"}} for one
attribute: readonly, which that partial's contract does not
diff --git a/internal/slides/templates/credits.html b/internal/slides/templates/credits.html
index 372513f..2c5f484 100644
--- a/internal/slides/templates/credits.html
+++ b/internal/slides/templates/credits.html
@@ -1,2 +1,15 @@
-{{define "page-head"}}<link rel="stylesheet" href="/static/credits.css">{{end}}
+{{define "page-head"}}<link rel="stylesheet" href="/static/credits.css">
+{{/* estilo's Colophon section is not a stack yet: its heading and its
+ list carry the browser's margins (18.8px apart). Until estilo's
+ template carries rst-stack, the section is one here. */}}
+<style>
+ [estilo-credits] {
+ display: flex;
+ flex-direction: column;
+ gap: var(--rst-sp-2);
+ }
+ [estilo-credits] > * {
+ margin-block: 0;
+ }
+</style>{{end}}
{{define "content"}}{{$L := localizer $}}{{template "estilo/credits" (withL (.Credits) $L)}}{{end}}
diff --git a/internal/slides/templates/deck_delete.html b/internal/slides/templates/deck_delete.html
index 960df70..f6025fb 100644
--- a/internal/slides/templates/deck_delete.html
+++ b/internal/slides/templates/deck_delete.html
@@ -9,7 +9,7 @@
{{define "content"}}{{$L := localizer $}}
{{template "back-nav" dict "L" $L "Href" .BackHref "Label" .BackLabel}}
{{template "page-header" dict "L" $L "Title" .Title}}
-<div rst-box>
+<div rst-box rst-stack>
<p>{{.Body}}</p>
{{template "confirm-form" dict "L" $L
"Action" .Action "Label" .Label "Danger" true
diff --git a/internal/slides/templates/deck_export.html b/internal/slides/templates/deck_export.html
index 152e5c7..531e831 100644
--- a/internal/slides/templates/deck_export.html
+++ b/internal/slides/templates/deck_export.html
@@ -12,8 +12,8 @@
{{template "back-nav" dict "L" $L "Href" .BackHref "Label" .BackLabel}}
{{template "page-header" dict "L" $L "Title" .Title}}
{{template "form-error" (withL (.Notice) $L)}}
-<form method="post" action="{{.Action}}">
- <div rst-box>
+<form method="post" action="{{.Action}}" rst-stack>
+ <div rst-box rst-stack>
<p>{{.Body}}</p>
{{template "field-check" dict "L" $L "Name" "notes" "Label" .NotesLabel "Value" "1"}}
<p rst-text-muted>{{.Held}}</p>
diff --git a/internal/slides/templates/deck_new.html b/internal/slides/templates/deck_new.html
index cccf3c4..d6d498f 100644
--- a/internal/slides/templates/deck_new.html
+++ b/internal/slides/templates/deck_new.html
@@ -7,7 +7,7 @@
not one of the six, which only a hand-made request can send. */}}
{{define "content"}}{{$L := localizer $}}
{{template "page-header" dict "L" $L "Title" .Title "Sub" .Body}}
-<div rst-box>
+<div rst-box rst-stack>
{{with .Error}}{{template "callout" dict "L" $L "Tone" "negative" "Body" .}}{{end}}
<form rst-form method="post" action="/decks">
{{template "form-foot" dict "L" $L
diff --git a/internal/slides/templates/deck_notes.html b/internal/slides/templates/deck_notes.html
index 073f10e..61b8b3a 100644
--- a/internal/slides/templates/deck_notes.html
+++ b/internal/slides/templates/deck_notes.html
@@ -16,11 +16,13 @@
<p>{{.Body}}</p>
</div>
{{range .Slides}}
+<section rst-stack rst-section>
<div rst-box-head>
<h2><a href="{{.Href}}">{{.Label}}</a></h2>
</div>
-<section rst-box>
+<div rst-box rst-stack>
{{if .Notes}}{{.Notes}}{{else}}<p>{{.Empty}}</p>{{end}}
+</div>
</section>
{{end}}
{{end}}
diff --git a/internal/slides/templates/deck_settings.html b/internal/slides/templates/deck_settings.html
index cfc77bc..b733c3a 100644
--- a/internal/slides/templates/deck_settings.html
+++ b/internal/slides/templates/deck_settings.html
@@ -27,13 +27,15 @@
"Submit" .Submit "CancelHref" .CancelHref "CancelLabel" .CancelLabel}}
</form>
</div>
-{{if .AccessHref}}<div rst-box>
+{{if .AccessHref}}<div rst-box rst-stack>
<p>{{.AccessBody}}</p>
- <p><a rst-btn href="{{.AccessHref}}">{{.AccessLabel}}</a></p>
+ <div rst-actions><a rst-btn href="{{.AccessHref}}">{{.AccessLabel}}</a></div>
</div>
-{{end}}{{if .DeleteHref}}<div rst-box-head><h2>{{.DeleteLabel}}</h2></div>
-<div rst-box>
+{{end}}{{if .DeleteHref}}<section rst-stack rst-section>
+<div rst-box-head><h2>{{.DeleteLabel}}</h2></div>
+<div rst-box rst-stack>
<p>{{.DeleteBody}}</p>
- <p><a rst-btn href="{{.DeleteHref}}">{{.DeleteLabel}}</a></p>
+ <div rst-actions><a rst-btn href="{{.DeleteHref}}">{{.DeleteLabel}}</a></div>
</div>
+</section>
{{end}}{{end}}
diff --git a/internal/slides/templates/decks.html b/internal/slides/templates/decks.html
index a13ddab..b7daf20 100644
--- a/internal/slides/templates/decks.html
+++ b/internal/slides/templates/decks.html
@@ -49,7 +49,7 @@
<span slides-row-trail>{{template "status-pill" dict "L" $L "Tone" .RungTone "Label" .RungLabel}}<time slides-row-when datetime="{{.WhenISO}}" title="{{.WhenTitle}}">{{.When}}</time></span>
</div>{{end}}
{{define "content"}}{{$L := localizer $}}
-<div slides-decks>
+<div slides-decks rst-stack>
<header slides-decks-head>
<h1>{{.Title}}</h1>
<div slides-decks-actions>
@@ -68,29 +68,29 @@
{{if .Partial}}{{/* Team mode, standing Unknown (Paul, 2026-10-28): the
list is what this person reaches without the team — the decks
granted to them — and says so, rather than the whole page
- answering 503. Rendered only then, and nothing at all otherwise. */}}<div data-partial>
+ answering 503. Rendered only then, and nothing at all otherwise. */}}<div data-partial rst-section>
{{template "callout" dict "L" $L "Tone" "warning" "Title" .PartialTitle "Body" .PartialBody}}
</div>
{{end}}
{{- if .Searching}}
{{if .Rows}}
-<div rst-list>
+<div rst-list rst-section>
{{range .Rows}}{{template "deck-row" (withL (.) $L)}}{{end}}
</div>
{{else}}
-{{template "empty-state" dict "L" $L "Title" .NoneTitle "Body" .NoneBody}}
+<div rst-section>{{template "empty-state" dict "L" $L "Title" .NoneTitle "Body" .NoneBody}}</div>
{{end}}
-<p slides-search-clear><a href="/">{{.ClearLabel}}</a></p>
+<p slides-search-clear rst-section><a href="/">{{.ClearLabel}}</a></p>
{{- else if or .Recent .Rows}}
-{{if .Recent}}<ul slides-shelf>
+{{if .Recent}}<ul slides-shelf rst-section>
{{range .Recent}}{{template "deck-tile" (withL (.) $L)}}{{end}}
</ul>{{end}}
-{{if .Rows}}<div rst-list>
+{{if .Rows}}<div rst-list rst-section>
<h2 slides-rows-label>{{.EarlierLabel}}</h2>
{{range .Rows}}{{template "deck-row" (withL (.) $L)}}{{end}}
</div>{{end}}
{{- else if not .Partial}}
-{{template "empty-state" dict "L" $L "Title" .EmptyTitle "Body" .EmptyBody}}
+<div rst-section>{{template "empty-state" dict "L" $L "Title" .EmptyTitle "Body" .EmptyBody}}</div>
{{end}}
</div>
{{end}}
diff --git a/internal/slides/templates/export_status.html b/internal/slides/templates/export_status.html
index e5d2d6e..6dacb33 100644
--- a/internal/slides/templates/export_status.html
+++ b/internal/slides/templates/export_status.html
@@ -21,16 +21,17 @@
"Name" .Name "Status" .Status "Progress" .Progress
"PollURL" .PollURL "PollSeconds" .PollSeconds "PushURL" .PushURL}}
{{- else}}
-<div slides-export>
+<div slides-export rst-stack>
{{- if .Failed}}
{{template "callout" dict "L" $L "Tone" "negative" "Title" .Name "Body" .Err "Alert" true}}
{{- else if .Gone}}
{{template "callout" dict "L" $L "Tone" "warning" "Title" .Name "Body" .Gone}}
{{- else}}
<p>{{.Done}}</p>
- <p><a rst-btn="primary lg" href="{{.DownloadHref}}">{{.DownloadLabel}}</a></p>
+ <div rst-actions><a rst-btn="primary lg" href="{{.DownloadHref}}">{{.DownloadLabel}}</a></div>
<p rst-text-muted>{{.Held}}</p>
{{- if .Warnings}}
+ <section rst-stack rst-section>
<h2>{{.WarningsLabel}}</h2>
<p>{{.WarningsBody}}</p>
<ul slides-export-warnings>
@@ -38,6 +39,7 @@
<li>{{with .Slide}}<strong>{{.}}</strong> — {{end}}{{.Detail}}</li>
{{- end}}
</ul>
+ </section>
{{- end}}
{{- end}}
<p><a href="{{.AgainHref}}">{{.AgainLabel}}</a></p>
diff --git a/internal/slides/templates/home_link.html b/internal/slides/templates/home_link.html
index 717653f..e4b8969 100644
--- a/internal/slides/templates/home_link.html
+++ b/internal/slides/templates/home_link.html
@@ -1,6 +1,6 @@
{{define "content"}}{{$L := localizer $}}{{if .Choice}}
<header rst-page-header><div rst-page-header-titles><h1>{{.Title}}</h1></div></header>
-<div rst-box>
+<div rst-box rst-stack>
<p>{{.Body}}</p>
{{- /* The member choice (Home spec 2026-11-14-oficina-id-native.md §8):
two POSTs carrying the proof's form token, neither the default. */}}
diff --git a/internal/slides/templates/layout.html b/internal/slides/templates/layout.html
index ee1533f..3535151 100644
--- a/internal/slides/templates/layout.html
+++ b/internal/slides/templates/layout.html
@@ -78,7 +78,9 @@
<body>
{{/* [estilo-shell] wraps every page and has no styling of its own. The
"main" block lets a page supply its own <main> (the projector
- surface, which is the whole viewport and not a column). */}}
+ surface, which is the whole viewport and not a column). The
+ column is Fiesta's stack (rst-stack): a page's blocks are spaced
+ by its one table, never by margins of their own. */}}
<div estilo-shell>
{{- if not .Frame.Bare}}
<a rst-skip href="#main">{{.Frame.Chrome.Labels.Skip}}</a>
@@ -88,7 +90,7 @@
Every other page takes estilo's bar as it is. */}}
{{block "bar" .}}{{$L := localizer $}}{{template "estilo-bar" (withL (.Frame.Chrome) $L)}}{{end}}
{{- end}}
-{{block "main" .}}<main rst-page id="main">
+{{block "main" .}}<main rst-page rst-stack id="main">
{{template "content" .}}
</main>{{end}}
</div>
diff --git a/internal/slides/templates/present_pairing.html b/internal/slides/templates/present_pairing.html
index 8eda3c6..7ef6eaa 100644
--- a/internal/slides/templates/present_pairing.html
+++ b/internal/slides/templates/present_pairing.html
@@ -23,7 +23,7 @@
</style>{{end}}
{{define "present-pairing"}}<div slides-pair>
{{.QR}}
- <div slides-pair-fields>
+ <div slides-pair-fields rst-stack>
<p slides-code>{{.Code}}</p>
{{/* Hand-written for one attribute, share.html's reason: readonly
is not in field-text's contract, and the field is here to be
diff --git a/internal/slides/templates/remote.html b/internal/slides/templates/remote.html
index ae803e6..4debe9f 100644
--- a/internal/slides/templates/remote.html
+++ b/internal/slides/templates/remote.html
@@ -59,16 +59,16 @@
{{define "content"}}{{$L := localizer $}}
{{template "page-header" dict "L" $L "Title" .Title "Sub" .DeckTitle}}
-<div slides-remote data-session="{{.Session}}" data-remote-token="{{.Controls.Token}}"
+<div slides-remote rst-stack data-session="{{.Session}}" data-remote-token="{{.Controls.Token}}"
data-slide="{{.Now}}"
{{- if .Stepped}} data-step="{{.Step}}" data-mode="{{.Mode}}" data-slide-id="{{.SlideID}}"{{end}}
data-blackout="{{if .Blackout}}true{{else}}false{{end}}">
<div slides-remote-preview>
- <div>
+ <div rst-stack>
<h2>{{.CurrentLabel}}</h2>
{{.Current}}
</div>
- <div>
+ <div rst-stack>
<h2>{{.NextLabel}}</h2>
{{if .HasNext}}{{.Next}}{{end}}
</div>
@@ -83,9 +83,9 @@
{{template "status-pill" dict "L" $L "Tone" "neutral" "Label" .BlackoutLabel}}
{{end}}
- <div slides-remote-commands>{{template "present-controls" (withL (.Controls) $L)}}</div>
+ <div slides-remote-commands rst-actions>{{template "present-controls" (withL (.Controls) $L)}}</div>
- <div rst-box>
+ <div rst-box rst-stack>
<h2>{{.NotesLabel}}</h2>
{{if .Notes}}{{.Notes}}{{else}}<p>{{.NoNotes}}</p>{{end}}
</div>
diff --git a/internal/slides/templates/share.html b/internal/slides/templates/share.html
index e49ef3d..d87408d 100644
--- a/internal/slides/templates/share.html
+++ b/internal/slides/templates/share.html
@@ -19,7 +19,7 @@
{{/* Who can open the deck. The owner chooses (mayChangeRung); a roster
owner on an orphan, who may share it but not move it, reads it. */}}
-<section slides-share-access aria-labelledby="slides-share-access">
+<section slides-share-access rst-stack rst-section aria-labelledby="slides-share-access">
<div rst-box-head><h2 id="slides-share-access">{{.AccessHeading}}</h2></div>
<div rst-box>
{{if .Rungs}}
@@ -35,11 +35,11 @@
</div>
</section>
-<section slides-share-links aria-labelledby="slides-share-links">
+<section slides-share-links rst-stack rst-section aria-labelledby="slides-share-links">
<div rst-box-head><h2 id="slides-share-links">{{.LinksHeading}}</h2></div>
{{if .NewURL}}
-<div rst-box>
+<div rst-box rst-stack>
{{template "callout" dict "L" $L "Tone" "warning" "Title" .NewTitle "Body" .NewHint}}
{{/* Hand-written rather than {{template "field-text"}} for one
attribute: readonly, which that partial's contract does not
@@ -89,7 +89,7 @@
</div>
{{end}}
-<form method="post" action="{{.Action}}" rst-form>
+<form method="post" action="{{.Action}}" rst-actions>
<button rst-btn="primary lg" type="submit">{{.CreateLabel}}</button>
</form>
</section>
diff --git a/internal/slides/templates/viewer.html b/internal/slides/templates/viewer.html
index e08f4bc..d1716d5 100644
--- a/internal/slides/templates/viewer.html
+++ b/internal/slides/templates/viewer.html
@@ -47,6 +47,12 @@
gap: var(--rst-sp-4);
grid-template-columns: minmax(0, 1fr);
}
+ /* The announcement is out of the flow (rst-sr-only) but still the
+ stack's first child, so the stack's rule would give the block after
+ it the margin a second block takes: that block opens the page. */
+ [rst-stack] > [slides-announce] + :not([hidden]) {
+ margin-block-start: 0;
+ }
/* The page column is a form's measure (tokens.css's 64rem); a slide
and its rail want the desk's width, as the deck list does. */
[rst-page]:has(> [slides-viewer]) {
@@ -73,9 +79,9 @@
}
[slides-tools] [rst-btn] {
border-radius: 999px;
- gap: 6px;
+ gap: var(--rst-sp-2);
min-block-size: var(--slides-pill-block-size);
- padding-inline: 16px;
+ padding-inline: var(--rst-sp-4);
}
[slides-tools] [rst-btn] .icon {
block-size: 16px;
@@ -109,9 +115,6 @@
inset-inline-end: 0;
position: absolute;
}
- [slides-viewer] [slides-stage] {
- margin-block: var(--rst-sp-3);
- }
[slides-viewer] [slides-stage] > [slides-slide] {
border-radius: 6px;
box-shadow:
@@ -149,8 +152,11 @@
background: var(--rst-surface);
border-radius: 12px;
box-shadow: 0 0 0 1px light-dark(rgb(40 28 12 / 0.07), rgb(255 255 255 / 0.07));
- margin-block: var(--rst-sp-4) 0;
- padding: 12px 18px;
+ padding: var(--rst-sp-3) var(--rst-sp-4);
+ }
+ /* The notes' paragraphs, under their summary, a step apart. */
+ [slides-viewer] details[slides-notes] > :not(summary) {
+ margin-block: var(--rst-sp-3) 0;
}
[slides-viewer] details[slides-notes] > summary {
color: var(--rst-text-muted);
@@ -171,7 +177,9 @@
list-style: none;
margin: 0;
overflow-x: auto;
- padding: 6px 6px var(--rst-sp-2);
+ /* Room for the current picture's ring and the focus outline, in the
+ row that clips them. */
+ padding: var(--rst-sp-2);
scrollbar-width: thin;
}
[slides-film] > li {
@@ -184,7 +192,7 @@
display: grid;
font-size: 12px;
font-weight: 600;
- gap: 6px;
+ gap: var(--rst-sp-2);
/* 24 by 24 is the floor a pointer target has to meet (WCAG 2.2 AA). */
min-height: 24px;
text-decoration: none;
@@ -247,7 +255,8 @@
row of buttons rather than beside it. */
[slides-film-nav] {
grid-area: film;
- margin-block-start: calc(var(--slides-pill-block-size) + var(--rst-sp-3) - 6px);
+ /* spacing-allow: level with the slide's top: the row of pills and the stack's step under it, less the rail's own padding */
+ margin-block-start: calc(var(--slides-pill-block-size) + var(--rst-sp-3) - var(--rst-sp-2));
max-block-size: calc(100dvh - 2 * var(--rst-sp-4));
overflow-y: auto;
position: sticky;
@@ -258,7 +267,7 @@
flex-direction: column;
gap: var(--rst-sp-4);
overflow-x: visible;
- padding: 6px;
+ padding: var(--rst-sp-2);
}
[slides-film] > li {
inline-size: auto;
@@ -286,7 +295,7 @@
{{else}}
<div slides-viewer data-vp="{{.VP}}"{{with .Announce}} data-announce="{{.}}"{{end}}>
<h1 class="rst-sr-only">{{.Title}}</h1>
-<div slides-viewer-main>
+<div slides-viewer-main rst-stack>
{{if or .EditHref .NotesHref .ExportHref .PresentHref .PresentAction .FollowHref}}
<nav slides-tools aria-label="{{.ToolsLabel}}">
{{if .EditHref}}<a rst-btn href="{{.EditHref}}">{{icon "pencil"}}<span>{{.EditLabel}}</span></a>{{end}}
diff --git a/internal/slides/thumbs_test.go b/internal/slides/thumbs_test.go
index 5762a45..45cf8b7 100644
--- a/internal/slides/thumbs_test.go
+++ b/internal/slides/thumbs_test.go
@@ -27,7 +27,7 @@ import (
func sampleView(t *testing.T) (*app, Deck, *deck.Deck) {
t.Helper()
d := testDB(t)
- a, _, err := newApp(d, Config{Env: EnvDevelopment, Logger: quietLogger()})
+ a, _, err := newApp(d, Config{KeymailServers: testKeymailServers, Env: EnvDevelopment, Logger: quietLogger()})
if err != nil {
t.Fatalf("newApp: %v", err)
}
diff --git a/internal/slidestest/browser_rhythm_test.go b/internal/slidestest/browser_rhythm_test.go
new file mode 100644
index 0000000..82cba6d
--- /dev/null
+++ b/internal/slidestest/browser_rhythm_test.go
@@ -0,0 +1,284 @@
+//go:build browser
+
+package slidestest
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "net/http"
+ "net/url"
+ "strings"
+ "testing"
+ "time"
+
+ "amadan.net/rastrillo/fiesta/check/rhythm"
+ "amadan.net/rastrillo/rastrillo/harness"
+ "github.com/chromedp/cdproto/emulation"
+ "github.com/chromedp/cdproto/network"
+ "github.com/chromedp/chromedp"
+)
+
+// rhythmCanvas is what the audit reads around on every screen: the
+// slide itself and the pictures of it. A slide is the deck's geometry,
+// sized in cqw against its own 16:9 frame (slides.css), not the page's,
+// so its insides are not on the page's scale and are not meant to be.
+// The editor's stage and its phone preview, the viewer's slide, the
+// presenter's slides and the remote's picture are all that. Nothing
+// else is skipped: the editor's chrome around the stage (the bar, the
+// strip, the stage bar, the inspector card, the notes) is read.
+var rhythmCanvas = []string{
+ "[slides-slide]",
+ "[slides-stages]",
+ "[slides-thumb]",
+ "[slides-film-thumb]",
+ "[presenter-frame]",
+}
+
+// rhythmScreen is one state of one screen: where it is, what only that
+// screen draws (ready), the least number of blocks it must draw for the
+// audit to have read anything, whether page scripts run, and an
+// optional step in the page (submit a form) with what to wait for after.
+type rhythmScreen struct {
+ name, path, ready string
+ blocks int
+ noScript bool
+ act, then string
+ // at is where the browser must be when the audit reads, when it is
+ // not path (a form's POST answers at the form's action).
+ at string
+}
+
+// rhythmDrawn is how many blocks main draws outside the skipped
+// regions: an element with a box, not inline, not inside a region the
+// audit reads around. A page that drew nothing would pass the audit by
+// having nothing to measure.
+const rhythmDrawn = `((skip) => {
+ const main = document.querySelector('main');
+ if (!main) return 0;
+ let n = 0;
+ for (const el of main.querySelectorAll('*')) {
+ if (skip.some((s) => el.closest(s))) continue;
+ const cs = getComputedStyle(el);
+ if (cs.display === 'none' || cs.display === 'contents' || cs.display.startsWith('inline')) continue;
+ const r = el.getBoundingClientRect();
+ if (r.width > 0 && r.height > 0) n++;
+ }
+ return n;
+})`
+
+// stackHygiene is what the audit cannot see in a stack under main: a
+// child taken out of the flow (position: absolute or fixed, such as a
+// visually hidden live region) that the stack's sibling rule still gave
+// a margin, which moves it; and the first child in the flow carrying a
+// margin, which a stack's first block never has. That one comes from
+// the stack's rule seeing an out-of-flow or visually hidden sibling
+// before it: the audit measures nothing above a stack's first block.
+const stackHygiene = `(() => {
+ const out = [];
+ const name = (el) => el.tagName.toLowerCase() + [...el.attributes].filter((a) => a.name !== 'class' && a.name !== 'id' && !a.name.startsWith('aria-')).slice(0, 2).map((a) => '[' + a.name + ']').join('');
+ for (const stack of document.querySelectorAll('main [rst-stack], main[rst-stack]')) {
+ let first = true;
+ for (const el of stack.children) {
+ const cs = getComputedStyle(el);
+ if (cs.display === 'none' || el.matches('[type="hidden"], template, script')) continue;
+ const margin = parseFloat(cs.marginBlockStart) + parseFloat(cs.marginBlockEnd);
+ if (cs.position === 'absolute' || cs.position === 'fixed') {
+ if (margin !== 0) out.push(name(el) + ' is out of the flow of ' + name(stack) + ' with a ' + margin + 'px margin');
+ continue;
+ }
+ if (first && parseFloat(cs.marginBlockStart) !== 0) out.push(name(el) + ' opens ' + name(stack) + ' with a ' + cs.marginBlockStart + ' margin');
+ first = false;
+ }
+ }
+ return out;
+})()`
+
+// scriptsAreOn reads the parser's scripting flag the way the page sees
+// it: with scripting off, a <noscript>'s contents are parsed as markup,
+// so it has an element child; with scripting on they are text.
+const scriptsAreOn = `(() => {
+ const d = document.createElement('div');
+ d.innerHTML = '<noscript><p></p></noscript>';
+ return d.firstElementChild.childElementCount === 0;
+})()`
+
+// TestEveryScreenKeepsTheRhythm: Fiesta's rhythm audit (Paul,
+// 2026-11-22: "Can we somehow put something in place to avoid weird
+// spacing issues like this in future?") over Slides' own screens, at a
+// desktop width and a phone's: every gap between two of a page's
+// blocks is a step of the spacing scale, no text rests on a control,
+// and every heading sits closer to its own content than to what comes
+// before it. The slide is read around (rhythmCanvas); its chrome is
+// read.
+//
+// Each screen is checked to be the one asked for: the browser is still
+// at its address (a lost session lands on the sign-in door, whose
+// rhythm is not this page's) and the screen's own marker is drawn.
+// The without-script states run with scripting really off.
+//
+// CGO_ENABLED=0 go test -tags browser -run KeepsTheRhythm ./internal/slidestest/
+func TestEveryScreenKeepsTheRhythm(t *testing.T) {
+ rig, app := newRigApp(t, nil)
+
+ // Signed out first, on a browser with no session.
+ signedOut := []rhythmScreen{
+ {name: "the sign-in door", path: "/signin", ready: `form[action="/signin"] input[name="address"]`, blocks: 4},
+ {name: "the sign-in door, without script", path: "/signin", ready: `form[action="/signin"] input[name="address"]`, blocks: 4, noScript: true},
+ {name: "the sign-in door, refused", path: "/signin", ready: `form[action="/signin"] input[name="address"]`, blocks: 4,
+ act: `HTMLFormElement.prototype.submit.call(document.querySelector('form[action="/signin"]'))`, then: `[rst-callout], [rst-field-error]`, at: "*"},
+ {name: "signed out", path: "/signed-out", ready: `main a[href="/signin"], main [estilo-signed-out]`, blocks: 3},
+ }
+ for _, width := range []int64{1440, 390} {
+ for _, s := range signedOut {
+ auditRhythm(t, rig, width, s)
+ }
+ }
+
+ // Signed in, with decks enough for the list to show its shelf and
+ // its rows (the newest five are covers, the rest rows), a share
+ // link, an agent, a finished export and a talk in progress.
+ cookies := signedIn(t, app, allowedAddress)
+ edit := deckWithSlides(t, app, cookies, 3)
+ deck := strings.TrimSuffix(edit, "/edit")
+ for i := range 6 {
+ createDeck(t, app, cookies, fmt.Sprintf("Quarterly review %d", i+1))
+ }
+ empty := emptyDeck(t, app, cookies)
+ shared := mintShareLink(t, app, deck, cookies)
+ mintAgent(t, app, cookies, "rhythm")
+ status := startExport(t, app, deck, cookies, nil)
+ waitForExport(t, app, status, cookies)
+ session, token := startPresenting(t, app, deck, cookies)
+ code := sessionCode(t, app, session)
+
+ var set []chromedp.Action[chromedp.Void]
+ for _, c := range cookies {
+ set = append(set, cdpStep(network.SetCookie, network.SetCookieParams{
+ Name: c.Name, Value: c.Value, URL: rig.Origin + "/",
+ HTTPOnly: new(c.HttpOnly), Secure: new(c.Secure), SameSite: network.CookieSameSiteLax,
+ }))
+ }
+ rig.Run(set...)
+ rig.Allow(http.MethodGet, "/no-such-page", http.StatusNotFound)
+
+ submit := func(form string) string {
+ return `HTMLFormElement.prototype.submit.call(document.querySelector(` + "`" + form + "`" + `))`
+ }
+ q := url.QueryEscape
+ signedInScreens := []rhythmScreen{
+ {name: "the deck list", path: "/", ready: `[slides-decks] [slides-shelf]`, blocks: 8},
+ {name: "the deck list, without script", path: "/", ready: `[slides-decks] [slides-shelf]`, blocks: 8, noScript: true},
+ {name: "a search", path: "/?q=" + q("Quarterly"), ready: `[slides-decks] [slides-search-clear]`, blocks: 6},
+ {name: "a search with no results", path: "/?q=" + q("nothing matches this"), ready: `[slides-decks] [rst-empty]`, blocks: 4},
+ {name: "new deck", path: "/decks/new", ready: `form[action="/decks"]`, blocks: 3},
+ {name: "the viewer", path: deck + "?slide=1", ready: `[slides-viewer] [slides-stage] [slides-slide]`, blocks: 3},
+ {name: "the viewer, without script", path: deck + "?slide=1", ready: `[slides-viewer] [slides-stage] [slides-slide]`, blocks: 3, noScript: true},
+ {name: "the shared viewer", path: "/s/" + shared, ready: `[slides-viewer] [slides-stage] [slides-slide]`, blocks: 3},
+ {name: "the notes", path: deck + "/notes", ready: `[rst-box-head] h2 a[href*="slide="]`, blocks: 6},
+ {name: "the editor", path: edit, ready: `[slides-editor] [slides-strip-item]`, blocks: 8, then: editorBound},
+ {name: "the editor, without script", path: edit, ready: `[slides-editor] noscript [rst-callout]`, blocks: 6, noScript: true},
+ {name: "the editor of an empty deck", path: empty, ready: `[slides-editor] [slides-stage-empty]`, blocks: 6},
+ {name: "export", path: deck + "/export", ready: `form[action$="/export"] input[name="notes"]`, blocks: 4},
+ {name: "an export, done", path: status, ready: `[slides-export] a[href$=".pdf"]`, blocks: 4},
+ {name: "share", path: deck + "/share", ready: `[slides-share-links] [rst-list]`, blocks: 8},
+ {name: "share, a new link", path: deck + "/share?new=" + q(shared), ready: `#share-url`, blocks: 8},
+ {name: "settings", path: deck + "/settings", ready: `form input[name="title"]`, blocks: 6},
+ {name: "settings, without script", path: deck + "/settings", ready: `form input[name="title"]`, blocks: 6, noScript: true},
+ {name: "settings, refused", path: deck + "/settings", ready: `form input[name="title"]`, blocks: 6,
+ act: `document.querySelector('form input[name="title"]').value = ''; ` + submit(`main form[rst-form]`), then: `[rst-field-error]`},
+ {name: "delete", path: deck + "/delete", ready: `main form[action$="/delete"]`, blocks: 3},
+ {name: "agents", path: "/agents", ready: `form[action="/agents"] input[name="name"]`, blocks: 6},
+ {name: "agents, a new token", path: "/agents", ready: `form[action="/agents"] input[name="name"]`, blocks: 6,
+ act: `document.querySelector('form[action="/agents"] input[name="name"]').value = 'another-' + Math.floor(Math.random() * 1e6); ` + submit(`form[action="/agents"]`), then: `#agent-token`},
+ {name: "agents, refused", path: "/agents", ready: `form[action="/agents"] input[name="name"]`, blocks: 6,
+ act: submit(`form[action="/agents"]`), then: `[rst-field-error]`},
+ {name: "the Colophon", path: "/help/open-source", ready: `main [estilo-credits] h1`, blocks: 6},
+ {name: "not found", path: "/no-such-page", ready: `main [rst-error], main [estilo-error]`, blocks: 2},
+ {name: "the presenter", path: "/p/" + session + "/notes?t=" + q(token), ready: `[presenter-panel="notes"]`, blocks: 4},
+ {name: "the remote", path: "/p/" + session + "/remote?t=" + q(token), ready: `main form[action*="/command"], main button`, blocks: 3},
+ {name: "the remote's pairing page", path: "/r/" + code, ready: `main form`, blocks: 3},
+ {name: "the presenter's slide picker, without script", path: "/p/" + session + "/notes?pick=1&t=" + q(token), ready: `[presenter-pick-list]`, blocks: 4, noScript: true},
+ {name: "presenting in the viewer", path: deck + "?slide=1&present=1", ready: `[slides-present] [slides-pager]`, blocks: 2},
+ }
+ for _, width := range []int64{1440, 390} {
+ for _, s := range signedInScreens {
+ auditRhythm(t, rig, width, s)
+ }
+ }
+
+ // Last, because pairing retires the remote's token the screens above
+ // open: the ⋯ menu's Pair a phone, which posts into a window of its
+ // own, answered here in this one.
+ for _, width := range []int64{1440, 390} {
+ auditRhythm(t, rig, width, rhythmScreen{name: "pairing a phone", path: "/p/" + session + "/notes", ready: `form[action$="/pair"]`, blocks: 4,
+ act: `(f => { f.removeAttribute('target'); HTMLFormElement.prototype.submit.call(f) })(document.querySelector('form[action$="/pair"]'))`,
+ then: `[slides-pair] [slides-code]`, at: "/p/" + session + "/pair"})
+ }
+}
+
+// auditRhythm draws one screen state and reads the audit over main.
+// Scripts are switched back on afterwards, whatever happened.
+func auditRhythm(t *testing.T, rig *harness.Rig, width int64, s rhythmScreen) {
+ t.Helper()
+ ctx, cancel := context.WithTimeout(rig.Context(), 30*time.Second)
+ defer cancel()
+ defer rig.Run(cdpStep(emulation.SetScriptExecutionDisabled, emulation.SetScriptExecutionDisabledParams{Value: false}))
+ steps := []chromedp.Action[chromedp.Void]{
+ cdpStep(emulation.SetScriptExecutionDisabled, emulation.SetScriptExecutionDisabledParams{Value: s.noScript}),
+ chromedp.EmulateViewport(width, 900),
+ chromedp.Navigate(rig.Origin + s.path),
+ }
+ // The server's markup, through the DOM domain, which needs no page
+ // script; a marker below the fold is still drawn.
+ steps = append(steps, chromedp.WaitReady(chromedp.CSS(s.ready)))
+ if s.act != "" {
+ // The step leaves the page (a form's POST), so what follows is
+ // polled for rather than waited on through the old document.
+ steps = append(steps, chromedp.Evaluate[chromedp.Void](s.act))
+ }
+ if s.then != "" {
+ then := s.then
+ if !strings.Contains(then, "===") {
+ then = `document.querySelector(` + "`" + then + "`" + `)`
+ }
+ steps = append(steps, waitFor(then))
+ }
+ skip, _ := json.Marshal(rhythmCanvas)
+ var at string
+ var drawn int
+ var scripts bool
+ var found []rhythm.Finding
+ var hygiene []string
+ steps = append(steps,
+ evalInto(&hygiene, stackHygiene),
+ evalInto(&at, `location.pathname + location.search`),
+ evalInto(&scripts, scriptsAreOn),
+ evalInto(&drawn, rhythmDrawn+`(`+string(skip)+`)`),
+ harness.Into(&found, chromedp.Evaluate[[]rhythm.Finding](
+ rhythm.Expression("main", rhythm.Options{Skip: rhythmCanvas}))))
+ if err := chromedp.Do(ctx, steps...); err != nil {
+ var page string
+ rig.Run(evalInto(&page, `location.pathname + location.search + ' ' + document.title + '\n' + (document.querySelector('main')?.outerHTML ?? '').slice(0, 3000)`))
+ t.Errorf("%s at %dpx: %v (at %s)", s.name, width, err, page)
+ return
+ }
+ want := s.path
+ if s.at != "" {
+ want = s.at
+ }
+ // Not the screen asked for, or not as asked: its findings would be
+ // some other page's.
+ switch {
+ case want != "*" && at != want:
+ t.Errorf("%s at %dpx: the browser is at %s, not %s", s.name, width, at, want)
+ case scripts == s.noScript:
+ t.Errorf("%s at %dpx: scripts on is %v, want %v", s.name, width, scripts, !s.noScript)
+ case drawn < s.blocks:
+ t.Errorf("%s at %dpx: main draws %d blocks outside the slide, want at least %d", s.name, width, drawn, s.blocks)
+ case len(hygiene) > 0:
+ t.Errorf("%s at %dpx: %s", s.name, width, strings.Join(hygiene, "; "))
+ case len(found) > 0:
+ t.Errorf("%s at %dpx: %d findings\n%s", s.name, width, len(found), rhythm.Report(found))
+ }
+}
diff --git a/internal/slidestest/browser_test.go b/internal/slidestest/browser_test.go
index 92294f3..f147438 100644
--- a/internal/slidestest/browser_test.go
+++ b/internal/slidestest/browser_test.go
@@ -84,6 +84,7 @@ func newRigApp(t *testing.T, store blobs.Store) (*harness.Rig, *testApp) {
}
t.Cleanup(func() { d.Close() })
mux, a, err := slides.New(d, slides.Config{
+ KeymailServers: testKeymailServers,
Origin: origin,
InstanceKey: testInstanceKey,
Mailer: mailer,
diff --git a/internal/slidestest/fonts_browser_test.go b/internal/slidestest/fonts_browser_test.go
index 93f5a5e..a6dfcb5 100644
--- a/internal/slidestest/fonts_browser_test.go
+++ b/internal/slidestest/fonts_browser_test.go
@@ -103,6 +103,7 @@ func newFontRigWith(t *testing.T, store blobs.Store) *fontRig {
}
t.Cleanup(func() { d.Close() })
mux, a, err := slides.New(d, slides.Config{
+ KeymailServers: testKeymailServers,
Origin: origin,
InstanceKey: testInstanceKey,
Mailer: mailer,
diff --git a/internal/slidestest/fonts_engines_browser_test.go b/internal/slidestest/fonts_engines_browser_test.go
index 5fd121f..5a6b4ae 100644
--- a/internal/slidestest/fonts_engines_browser_test.go
+++ b/internal/slidestest/fonts_engines_browser_test.go
@@ -87,7 +87,7 @@ func runEnginesRig(t *testing.T, script string) (string, *fontRig, error) {
}
t.Cleanup(func() { d.Close() })
mailer := &fakeMailer{}
- mux, a, err := slides.New(d, slides.Config{Origin: origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
+ mux, a, err := slides.New(d, slides.Config{KeymailServers: testKeymailServers, Origin: origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slidestest/harness_test.go b/internal/slidestest/harness_test.go
index 7d0e6bf..866b15d 100644
--- a/internal/slidestest/harness_test.go
+++ b/internal/slidestest/harness_test.go
@@ -120,6 +120,7 @@ func newConfig(t *testing.T) (slides.Config, *fakeMailer) {
t.Helper()
mailer := &fakeMailer{}
return slides.Config{
+ KeymailServers: testKeymailServers,
Origin: testOrigin,
InstanceKey: testInstanceKey,
Mailer: mailer,
diff --git a/internal/slidestest/keymail_signin_test.go b/internal/slidestest/keymail_signin_test.go
index 7871acc..359d4a8 100644
--- a/internal/slidestest/keymail_signin_test.go
+++ b/internal/slidestest/keymail_signin_test.go
@@ -271,3 +271,12 @@ func mailWorkers() int {
stacks := string(buf[:runtime.Stack(buf, true)])
return strings.Count(stacks, "(*mailQueue).run(") + strings.Count(stacks, "(*mailQueue).pump(")
}
+
+// testKeymailServers is Config.KeymailServers for every app these tests
+// build: the Keymail fixture's host. Since rastrillo v0.45.0 an unlisted
+// server is dialed through a client auth clones from
+// http.DefaultTransport, which TestMain has replaced with keymailtest's
+// (not an *http.Transport, so the clone panics). Listed, auth reaches the
+// fixture through its guard over that same DefaultTransport; deployments
+// list nothing.
+var testKeymailServers = []string{keymailHost}
diff --git a/internal/slidestest/leaving_browser_test.go b/internal/slidestest/leaving_browser_test.go
index 100fee8..d9884d8 100644
--- a/internal/slidestest/leaving_browser_test.go
+++ b/internal/slidestest/leaving_browser_test.go
@@ -91,7 +91,7 @@ func leaveAndComeBack(t *testing.T, surface string, cmd *exec.Cmd) {
}
t.Cleanup(func() { d.Close() })
mailer := &fakeMailer{}
- mux, a, err := slides.New(d, slides.Config{Origin: origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
+ mux, a, err := slides.New(d, slides.Config{KeymailServers: testKeymailServers, Origin: origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slidestest/list_test.go b/internal/slidestest/list_test.go
index 0103717..926e389 100644
--- a/internal/slidestest/list_test.go
+++ b/internal/slidestest/list_test.go
@@ -135,7 +135,7 @@ func TestListSearchIsAGetFormOnTheTitle(t *testing.T) {
}
none := mustGet(t, a, "/?q=zzz", http.StatusOK, cookies).Body.String()
- if !strings.Contains(none, "No decks match") || !strings.Contains(none, `<p slides-search-clear><a href="/">Clear search</a></p>`) {
+ if !strings.Contains(none, "No decks match") || !strings.Contains(none, `<p slides-search-clear rst-section><a href="/">Clear search</a></p>`) {
t.Errorf("a search that finds nothing does not say so with a way back:\n%s", none)
}
}
diff --git a/internal/slidestest/saving_browser_test.go b/internal/slidestest/saving_browser_test.go
index d7148d2..3ca0ad5 100644
--- a/internal/slidestest/saving_browser_test.go
+++ b/internal/slidestest/saving_browser_test.go
@@ -473,7 +473,7 @@ func newSavingServer(t *testing.T) *savingServer {
}
t.Cleanup(func() { d.Close() })
mailer := &fakeMailer{}
- mux, a, err := slides.New(d, slides.Config{Origin: s.origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
+ mux, a, err := slides.New(d, slides.Config{KeymailServers: testKeymailServers, Origin: s.origin, InstanceKey: testInstanceKey, Mailer: mailer, AllowedAddresses: []string{allowedAddress}, Logger: logger})
if err != nil {
t.Fatal(err)
}
diff --git a/internal/slidestest/spacing_test.go b/internal/slidestest/spacing_test.go
new file mode 100644
index 0000000..d01c3de
--- /dev/null
+++ b/internal/slidestest/spacing_test.go
@@ -0,0 +1,100 @@
+package slidestest
+
+import (
+ "os"
+ "path/filepath"
+ "regexp"
+ "strings"
+ "testing"
+
+ "amadan.net/rastrillo/fiesta/check/spacing"
+)
+
+// vendoredSheets are the stylesheets under static/ that are somebody
+// else's to space: rastrillo's (tokens.css, shell.css; rastrillo
+// doctor), estilo's (theme.css and busy.css by scripts/writeestilo,
+// brand/brand.css by estilo's brand/distribute.py). make spacing skips
+// the same list.
+var vendoredSheets = map[string]bool{
+ "tokens.css": true, "shell.css": true, "theme.css": true, "busy.css": true, "brand/brand.css": true,
+}
+
+// styleBlock is one <style> element's text in a template.
+var styleBlock = regexp.MustCompile(`(?s)<style[^>]*>(.*?)</style>`)
+
+// TestEveryStylesheetIsOnTheSpacingScale: Fiesta's spacing check (Paul,
+// 2026-11-22, "no ad-hoc spacing") over everything Slides styles its
+// pages with. make spacing runs `go tool fiesta spacing` over static/,
+// which does not read the <style> blocks in the templates (the viewer's,
+// the projector's, the presenter's, the remote's); this reads both,
+// together, so a custom property declared in a stylesheet and used in
+// a template resolves. Each block is checked with its lines kept where
+// they are in the template, so a finding names the template's own line.
+func TestEveryStylesheetIsOnTheSpacingScale(t *testing.T) {
+ files := map[string][]byte{}
+ static := filepath.Join("..", "slides", "static")
+ err := filepath.WalkDir(static, func(name string, d os.DirEntry, err error) error {
+ if err != nil || d.IsDir() || filepath.Ext(name) != ".css" {
+ return err
+ }
+ rel, _ := filepath.Rel(static, name)
+ if vendoredSheets[filepath.ToSlash(rel)] {
+ return nil
+ }
+ src, err := os.ReadFile(name)
+ files["static/"+filepath.ToSlash(rel)] = src
+ return err
+ })
+ if err != nil {
+ t.Fatal(err)
+ }
+ templates, err := filepath.Glob(filepath.Join("..", "slides", "templates", "*.html"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ blocks := 0
+ for _, name := range templates {
+ src, err := os.ReadFile(name)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if css := styleSheets(string(src)); css != "" {
+ files["templates/"+filepath.Base(name)] = []byte(css)
+ blocks++
+ }
+ }
+ if blocks < 5 {
+ t.Fatalf("read %d templates with a <style>; the walk is not finding Slides' templates", blocks)
+ }
+ for _, f := range spacing.CheckFiles(files) {
+ t.Error(f)
+ }
+}
+
+// styleSheets is a template's <style> blocks with everything else
+// blanked, line for line, so the check's line numbers are the
+// template's.
+func styleSheets(src string) string {
+ var out strings.Builder
+ at, found := 0, false
+ for _, m := range styleBlock.FindAllStringSubmatchIndex(src, -1) {
+ out.WriteString(strings.Repeat("\n", strings.Count(src[at:m[2]], "\n")))
+ out.WriteString(src[m[2]:m[3]])
+ at, found = m[3], true
+ }
+ if !found {
+ return ""
+ }
+ return out.String()
+}
+
+// TestTheSpacingCheckReadsTemplates: a <style> block with a hand margin
+// is refused, on its own line, so the check above cannot pass by
+// reading nothing.
+func TestTheSpacingCheckReadsTemplates(t *testing.T) {
+ src := "{{define \"x\"}}\n<style>\n p {\n margin: 7px;\n }\n</style>\n<p>hi</p>{{end}}\n"
+ found := spacing.CheckFiles(map[string][]byte{"x.html": []byte(styleSheets(src))})
+ if len(found) != 1 || found[0].Line != 4 || found[0].Property != "margin" {
+ t.Fatalf("a 7px margin on line 4 of a template's <style>: got %v", found)
+ }
+}