fix(as-S5c): whose key it is, the doc bar, tile sizes, the rail's shadow, reveal names

The last of the anti-slop interaction work (guidelines G6, G7, G14, G15,
G17), plus booth-dev's note from S5b's gate. Every S5b promise holds: no
re-POST, serialized saves, a batch never reloads, focus survives a swap.
- Keys (G6): one rule in base.html's <head>, BoothKeys.theirs(e), called
  first by the grid, the review and compare. A field or a player owns every
  key but Escape (Esc still goes back from a focused player); a control
  owns Space; a focused 1:1 stage that can pan owns the
  arrows and Space (Chromium puts it in the Tab order); Ctrl/Meta/Alt are
  the browser's. The field check lives on as BoothKeys.isEditable. Before:
  an arrow on a focused video left the review, and Enter on any control
  also opened the grid cursor's tile.
- The grid cursor is real focus: the tile it moves to gets tabindex=-1
  (script-set, one tile at a time) and focus, without a scroll; the cursor
  is an item (its data-item), and a doc closed with its ✕ is skipped; focus that
  lands on a tile (S5b's fallback) makes it the cursor; Enter opens the
  review only from the body, the grid or the tile, by its view?f= link;
  n opens a closed doc's fold; Escape clears the cursor
  and releases the tile's focus. The reticle is its focus mark (no second
  ring).
- The doc bar (G7): the controls leave the <summary>. div.doc-bar holds
  details.doc-fold (its summary is the label only) and div.doc-tools beside
  it; the body and notes follow in div.doc-inline, hidden with a closed
  fold by :has(), scripts on or off. A closed doc keeps its tools. Renders
  pixel-identical to today at 1280 and 390, light and dark.
- Tile sizes (G14): a gallery tile's <img> carries width/height, the
  picture as the browser draws it (EXIF 5-8 swap), read from the header
  only (no decode; PNG getexif is skipped unless the header carried it),
  opened O_NOFOLLOW|O_NONBLOCK, cached by the file's identity (ctime
  included, so cp -p over a file is seen), in a separate
  step (items.image_dims over thumbs.drawn_size) so the Desk never pays it.
  Measured before: a link to tile 30 of 40 landed 44px low (3/3); after, on
  its mark. content-visibility:auto, which the report proposed too, is NOT
  added: a swapped-in tile has no remembered size, and a flag far down moved
  the page 2929px (3/3; 0px without it).
- The rail (G15): html:has(.rail){scroll-padding-top} replaces .item's
  scroll-margin-top (the two add), so a control reached by Tab stops below
  the sticky rail too. Measured before: a Tab-focused flag button at 19.6px,
  under the rail's bottom at 47.6px. The scripts-off fallbacks are the old
  rules' numbers (132px, 217px at <=480), now pinned by a test. The height
  script follows the live rail after every in-place save (it watched the
  replaced node, and read 0px after one flag), and the rail's own controls
  cancel the padding (a Tab between stuck group links scrolled 357px).
- Reveal names (G17): no aria-label on any reveal control; the name is the
  words on it, the glyph in an aria-hidden span, the item's name as
  .sr-only text ("reveal a.png" / "hide a.png"). Reveal all drops
  aria-pressed (its words already say the state; r2b rules them) and its
  "on" look reads the .reveal-all class on <html>. No pixel changes.
- booth-dev's note: a refused batch's forms enter `unsent` with the
  refusal's words, and a later save says every standing failure's words
  (each once, in order) instead of "Saved.", and every warning says the
  other standing failures first, so no failure buries another. Test first:
  test_a_batch_refusal_outlives_an_unrelated_save.
- Rows re-anchored to the same failure: r2b "Space on a focused review
  button", r3 "C3 a held modifier" and both "C3 Space on a focused ..."
  (now in BoothKeys), r2c "the stage reveal shows with scripts off", and
  this contract's S3 doc-bar row and five S5b status-line rows.

Folded from the heid contract review (BEINKA, panel 4/4, thread
01M3NZJNX8D3BEYD48M9K3MV3Q): 24 flags, all prose the tests left open; the
contract states the tile/focus/cursor seam with S5b, the helper's union and
scope, the size's source and every path to none, Reveal all's name, the
refusal sentence's lifetime, and the fallback arithmetic (one test added).

Folded from the heid bug-hunt (HRÖSKVA, panel 4/4, thread
01M3P0ZPRSASFSE5K3PR4NTQP6): R1 closed docs and the cursor as an item, R2
the rail's height after a save, R3 no warning buries another, R5 the view?f=
link, R7 ctime in the size cache, R8 Escape from a player, R9 the rail's own
controls, R10 n on a closed doc. Refuted with reasons: R4 (unreachable: refused
picks re-send together), R6 (Chrome takes the same header's size with or
without the attributes; measured), R11 (by design).

From this slice's own falsifier runs: a "one row wide" row that mutated a
flex basis a non-wrapping bar just shrinks (re-aimed at the bar's flex), and
a Reveal-all "on look" read under the clicking pointer, where :hover draws
the same border (the pointer now leaves first; 3/3 proved).

Contract: as_antislop S5c.
Falsifiers: antislop.toml S5c section.
This commit is contained in:
vh
2026-09-29 01:09:15 -07:00
parent 62c0c9b638
commit 72d6c61629
15 changed files with 1730 additions and 136 deletions
+361 -7
View File
@@ -283,8 +283,9 @@ new = ''' @media (max-width:1px){.board-head{flex-wrap:wrap}.board-title{white-
label = "S3 the doc bar squeezes the name again"
file = "booth/templates/base.html"
test = "tests/test_antislop_browser.py::test_doc_name_keeps_a_readable_line_on_a_phone"
old = ''' @media (max-width:600px){.doc-inline > .doc-bar{flex-wrap:wrap;row-gap:4px}'''
new = ''' @media (max-width:1px){.doc-inline > .doc-bar{flex-wrap:wrap;row-gap:4px}'''
# re-anchored in S5c (G7): the bar is a div holding the fold and the tools
old = ''' @media (max-width:600px){.doc-bar{flex-wrap:wrap;row-gap:4px}'''
new = ''' @media (max-width:1px){.doc-bar{flex-wrap:wrap;row-gap:4px}'''
[[mutation]]
label = "S3 a file tile's link starts under the number again"
@@ -903,9 +904,10 @@ new = '''if (!batch.length) return;'''
label = "S5b a batch that lands says nothing"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5b_browser.py::test_a_batch_speaks_too"
# re-anchored in S5c (heid bug-hunt R3): the batch's keys are named once, as `mine`
old = '''
else landed(forms.map(flightKey));'''
else landed(mine);'''
new = ''''''
[[mutation]]
@@ -963,7 +965,8 @@ new = ''' { reload(); return; }'''
label = "S5b the reload is not asked again at the beat"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5b_browser.py::test_a_draft_typed_during_the_beat_stays"
old = ''' beat = setTimeout(function () { beat = null; if (mayReload(key, snap)) reload(); else warn(STAY); }, 900);'''
# re-anchored in S5c (heid bug-hunt R3): the stay message now says the other standing failures first
old = ''' beat = setTimeout(function () { beat = null; if (mayReload(key, snap)) reload(); else warn(also(STAY, [key])); }, 900);'''
new = ''' beat = setTimeout(reload, 900);'''
[[mutation]]
@@ -1053,7 +1056,8 @@ new = ''''''
label = "S5b an unrelated save buries a failure"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5b_browser.py::test_an_unrelated_save_does_not_bury_a_failure"
old = ''' if (failed.length) { warn(STAY); return; }
# re-anchored in S5c: a standing failure now carries its own words
old = ''' if (failed.length) { warn(stayed(failed)); return; }
'''
new = ''''''
@@ -1061,7 +1065,8 @@ new = ''''''
label = "S5b a refresh failure after a 204 says it could not save"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5b_browser.py::test_a_save_whose_page_would_not_refresh_says_saved"
old = ''' else warn('Saved. Could not refresh the page; reload to see it.');'''
# re-anchored in S5c (heid bug-hunt R3)
old = ''' else warn(also('Saved. Could not refresh the page; reload to see it.', [key]));'''
new = ''' else fail(form, key, snap);'''
[[mutation]]
@@ -1075,7 +1080,8 @@ new = ''' if (false) {'''
label = "S5b an edit made while saving is called Saved."
file = "booth/templates/base.html"
test = "tests/test_antislop_s5b_browser.py::test_an_edit_made_while_saving_is_not_called_saved"
old = ''' if (keys.some(function (k) { return liveForms(k).some(dirty); })) { warn(CHANGED); return; }
# re-anchored in S5c (heid bug-hunt R3)
old = ''' if (keys.some(function (k) { return liveForms(k).some(dirty); })) { warn(also(CHANGED, keys)); return; }
'''
new = ''''''
@@ -1110,3 +1116,351 @@ file = "booth/templates/_marks.html"
test = "tests/test_antislop.py::test_the_in_place_client_can_read_every_page"
old = '''<form class="mark-add" method="post" action="/b/{{ name_url }}/note" data-inplace>'''
new = '''<form class="mark-add" method="post" action="/b/{{ name_url }}/note" data-inplace data-region="nested">'''
# ---- S5c: whose key it is, the doc bar, tile sizes, the rail's shadow, reveal names --------
[[mutation]]
label = "S5c a player gives up its keys to the page"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_player_keeps_its_keys"
old = ''' if (BoothKeys.isEditable(t) || (k !== 'Escape' && t.closest('video, audio'))) return true;'''
new = ''' if (BoothKeys.isEditable(t)) return true;'''
[[mutation]]
label = "S5c Enter opens the cursor tile from a control or any focused node"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_enter_on_a_control_does_not_open_the_cursor_tile"
old = ''' if (e.target === document.body || e.target === grid || tiles().indexOf(e.target) >= 0) {'''
new = ''' if (true) {'''
[[mutation]]
label = "S5c a focused 1:1 stage loses its arrows to the page"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_focused_pannable_stage_pans_with_the_arrows"
old = ''' if ((k === ' ' || k.indexOf('Arrow') === 0) && t.closest('.vstage.can-pan')) return true;
'''
new = ''''''
[[mutation]]
label = "S5c the grid cursor is a class only"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_the_grid_cursor_is_real_focus"
old = ''' t[at].focus({ preventScroll: true });
'''
new = ''''''
[[mutation]]
label = "S5c every tile the cursor visited stays focusable"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_the_grid_cursor_is_real_focus"
old = ''' if (el !== c) el.removeAttribute('tabindex');
'''
new = ''''''
[[mutation]]
label = "S5c Escape leaves focus on the tile it un-cursors"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_the_grid_cursor_is_real_focus"
old = ''' if (was && document.activeElement === was) was.blur();
at = -1; cur = null; mark(); break;'''
new = ''' at = -1; cur = null; tiles().forEach(function (x) { x.classList.remove('is-cursor'); }); break;'''
[[mutation]]
label = "S5c the focused cursor tile draws a second ring over the reticle"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_the_grid_cursor_is_real_focus"
old = ''' .item.is-cursor:focus-visible{outline:none}'''
new = ''' .item.is-cursor:focus-visible{}'''
[[mutation]]
label = "S5c focus that lands on a tile does not make it the cursor"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_focus_returned_to_a_tile_makes_it_the_cursor"
old = ''' if (i >= 0 && i !== at) { at = i; cur = e.target.getAttribute('data-item'); mark(); }'''
new = ''' if (false) { at = i; cur = e.target.getAttribute('data-item'); mark(); }'''
[[mutation]]
label = "S5c a control is back inside the doc's summary"
file = "booth/templates/booth.html"
test = "tests/test_antislop.py::test_the_doc_summary_holds_no_controls"
old = ''' <span class="doc-name">{{ it.name }}</span>
</summary>'''
new = ''' <span class="doc-name">{{ it.name }}</span>
<a class="doc-act" href="view?f={{ it.url }}">⤢</a>
</summary>'''
[[mutation]]
label = "S5c a closed fold leaves the doc's body showing"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_closed_doc_keeps_its_tools"
old = ''' .item-doc:has(.doc-fold:not([open])) > .doc-inline{display:none}'''
new = ''' .item-doc:has(.doc-fold:not([open])) > .doc-none{display:none}'''
[[mutation]]
label = "S5c the tools inside the fold, which a closed fold hides"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_a_closed_doc_keeps_its_tools"
old = ''' </summary>
</details>
<div class="doc-tools">'''
new = ''' </summary>
<div class="doc-tools">'''
[[mutation]]
label = "S5c the doc's tools wrap under the name on a wide screen"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_the_doc_bar_is_one_row_wide_and_two_on_a_phone"
old = ''' .doc-bar{display:flex;align-items:stretch;'''
new = ''' .doc-bar{display:block;align-items:stretch;'''
[[mutation]]
label = "S5c a closed fold opens again on the next save"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_closed_doc_stays_closed_through_a_save"
old = ''' if (freshDetails[k]) freshDetails[k].open = d.open;'''
new = ''' if (false) freshDetails[k].open = d.open;'''
[[mutation]]
label = "S5c tile pictures carry no size"
file = "booth/templates/booth.html"
test = "tests/test_antislop.py::test_tile_images_carry_their_drawn_size"
old = '''{% if it.dims %} width="{{ it.dims[0] }}" height="{{ it.dims[1] }}"{% endif %}'''
new = ''''''
[[mutation]]
label = "S5c tile pictures carry no size, so a link lands off its tile"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_a_link_to_a_tile_lands_where_it_points"
old = '''{% if it.dims %} width="{{ it.dims[0] }}" height="{{ it.dims[1] }}"{% endif %}'''
new = ''''''
[[mutation]]
label = "S5c the gallery drops the size on its way to the template"
file = "booth/app.py"
test = "tests/test_antislop.py::test_tile_images_carry_their_drawn_size"
old = ''' "dims": image_dims(child, it),'''
new = ''' "dims": None,'''
[[mutation]]
label = "S5c the drawn size ignores the EXIF orientation"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_tile_images_carry_their_drawn_size"
old = ''' return (h, w) if orientation in (5, 6, 7, 8) else (w, h)'''
new = ''' return (w, h)'''
[[mutation]]
label = "S5c reading a size decodes the picture (PNG getexif)"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_reading_a_size_decodes_nothing"
old = ''' orientation = (im.getexif().get(0x0112, 1) if "exif" in im.info else 1)'''
new = ''' orientation = (im.getexif().get(0x0112, 1))'''
[[mutation]]
label = "S5c a planted link is read through"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_a_planted_fifo_or_link_costs_its_size_and_never_hangs"
old = ''' fd = os.open(path, os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK)'''
new = ''' fd = os.open(path, os.O_RDONLY | os.O_NONBLOCK)'''
[[mutation]]
label = "S5c a planted FIFO hangs the render"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_a_planted_fifo_or_link_costs_its_size_and_never_hangs"
old = ''' fd = os.open(path, os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK)'''
new = ''' fd = os.open(path, os.O_RDONLY | os.O_NOFOLLOW)'''
[[mutation]]
label = "S5c every render reads every header again"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_a_size_is_read_once_per_version_of_the_file"
old = '''@functools.lru_cache(maxsize=SIZE_CACHE)
'''
new = ''''''
[[mutation]]
label = "S5c a replaced file keeps its old size"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_a_size_is_read_once_per_version_of_the_file"
old = ''' return _read_size(str(path), st.st_dev, st.st_ino, st.st_size, st.st_mtime_ns, st.st_ctime_ns)'''
new = ''' return _read_size(str(path), st.st_dev, st.st_ino, 0, 0, 0)'''
[[mutation]]
label = "S5c no scroll padding: a control reached by Tab hides under the rail"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_tabbed_control_does_not_hide_under_the_rail"
old = ''' html:has(.rail){--rail-pad:calc(var(--rail-h, 120px) + 12px);scroll-padding-top:var(--rail-pad)}'''
new = ''' html:has(.rail){--rail-pad:calc(var(--rail-h, 120px) + 12px)}'''
[[mutation]]
label = "S5c the tile keeps its scroll margin too, and a jump lands two rails down"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_jump_lands_just_below_the_rail"
old = ''' border-radius:var(--radius-xl);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm)}'''
new = ''' border-radius:var(--radius-xl);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);
scroll-margin-top:calc(var(--rail-h, 120px) + 12px)}'''
[[mutation]]
label = "S5c with scripts off, a phone falls back to the desktop rail height"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_the_rail_padding_falls_back_with_scripts_off"
old = ''' html:has(.rail){--rail-pad:calc(var(--rail-h, 205px) + 12px)}'''
new = ''' html:has(.rail){--rail-pad:calc(var(--rail-h, 120px) + 12px)}'''
[[mutation]]
label = "S5c every page gets the rail's scroll padding"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_pages_without_a_rail_have_no_scroll_padding"
old = ''' html:has(.rail){--rail-pad:calc(var(--rail-h, 120px) + 12px);scroll-padding-top:var(--rail-pad)}'''
new = ''' html{--rail-pad:calc(var(--rail-h, 120px) + 12px);scroll-padding-top:var(--rail-pad)}'''
[[mutation]]
label = "S5c a tile's reveal carries a fixed label again"
file = "booth/templates/booth.html"
test = "tests/test_antislop.py::test_reveal_glyphs_are_hidden_from_the_name"
old = ''' <button type="button" class="reveal"><span class="rv-glyph" aria-hidden="true">'''
new = ''' <button type="button" class="reveal" aria-label="reveal {{ name }}"><span class="rv-glyph" aria-hidden="true">'''
[[mutation]]
label = "S5c a tile's reveal glyph is read aloud"
file = "booth/templates/booth.html"
test = "tests/test_antislop.py::test_reveal_glyphs_are_hidden_from_the_name"
old = ''' <button type="button" class="reveal"><span class="rv-glyph" aria-hidden="true">'''
new = ''' <button type="button" class="reveal"><span class="rv-glyph">'''
[[mutation]]
label = "S5c a tile's reveal flips its whole text, and its name loses the item"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' btn.querySelector('.rv-word').textContent = on ? 'hide' : 'reveal';'''
new = ''' btn.textContent = on ? '🙈 hide' : '👁 reveal';'''
[[mutation]]
label = "S5c the review's reveal flips its whole text"
file = "booth/templates/view.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' rv.querySelector('.rv-word').textContent = on ? 'hide' : 'reveal';'''
new = ''' rv.textContent = on ? '🙈 hide' : '👁 reveal — blur is cosmetic'; return;'''
[[mutation]]
label = "S5c compare's reveal flips its whole text"
file = "booth/templates/compare.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' btn.querySelector('.rv-word').textContent = on ? 'hide' : 'reveal';'''
new = ''' btn.textContent = on ? '🙈 hide' : '👁 reveal — blur is cosmetic'; return;'''
[[mutation]]
label = "S5c a doc page's reveal flips its whole text"
file = "booth/templates/doc.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' rv.querySelector('.rv-word').textContent = on ? 'hide' : 'reveal';'''
new = ''' rv.textContent = on ? '🙈 hide' : '👁 reveal — blur is cosmetic'; return;'''
[[mutation]]
label = "S5c Reveal all claims a pressed state its words already say"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' btn.querySelector('.ra-note').hidden = on;
}'''
new = ''' btn.querySelector('.ra-note').hidden = on;
btn.setAttribute('aria-pressed', on ? 'true' : 'false');
}'''
[[mutation]]
label = "S5c Reveal all loses its on look with the attribute"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_reveal_names_follow_their_words"
old = ''' .reveal-all .reveal-all-btn{color:var(--text-body);border-color:var(--border-strong)}'''
new = ''''''
[[mutation]]
label = "S5c Reveal all's glyph is read aloud"
file = "booth/templates/view.html"
test = "tests/test_antislop.py::test_reveal_glyphs_are_hidden_from_the_name"
old = '''<span class="ra-glyph" aria-hidden="true">👁</span>'''
new = '''<span class="ra-glyph">👁</span>'''
[[mutation]]
label = "S5c a refused batch's forms never enter unsent (booth-dev's note)"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_batch_refusal_outlives_an_unrelated_save"
old = ''' if (!saved.some(function (x) { return x.key === k; })) unsent[k] = told;'''
new = ''''''
[[mutation]]
label = "S5c only the last standing failure is said again"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_two_standing_failures_are_both_said_once_each"
old = ''' return words.join(' ');'''
new = ''' return words[words.length - 1];'''
[[mutation]]
label = "S5c a refusal shared by two forms is said twice"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_two_standing_failures_are_both_said_once_each"
old = ''' keys.forEach(function (k) { if (words.indexOf(unsent[k]) < 0) words.push(unsent[k]); });'''
new = ''' keys.forEach(function (k) { words.push(unsent[k]); });'''
# ---- S5c, folded from the heid bug-hunt (HRÖSKVA, panel 4/4) --------------------------
[[mutation]]
label = "S5c R1 the cursor lands on a doc closed with its ✕"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_the_cursor_skips_a_closed_doc"
old = '''grid.querySelectorAll('figure.item:not(.is-closed)')'''
new = '''grid.querySelectorAll('figure.item')'''
[[mutation]]
label = "S5c R10 n leaves a closed doc's fold shut over its note field"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_n_opens_the_note_on_a_closed_doc"
old = ''' if (fold) fold.open = true;'''
new = ''''''
[[mutation]]
label = "S5c R5 Enter follows the first link that merely starts with view"
file = "booth/templates/booth.html"
test = "tests/test_antislop_s5c_browser.py::test_enter_reviews_a_file_named_view"
old = ''' click('a[href^="view?f="]');'''
new = ''' click('a[href^="view"]');'''
[[mutation]]
label = "S5c R2 the observer stays on the first rail"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_the_rail_height_follows_the_live_rail_after_a_save"
old = ''' if (ro && rail !== seen) {'''
new = ''' if (ro && !seen) {'''
[[mutation]]
label = "S5c R9 a Tab between stuck rail links scrolls the page up by the rail"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_tab_between_rail_links_does_not_move_the_page"
old = ''' .rail :is(a,button,input,summary){scroll-margin-top:calc(-1 * var(--rail-pad, 0px))}'''
new = ''''''
[[mutation]]
label = "S5c R3 a later failure buries an earlier one"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_later_failure_does_not_bury_an_earlier_one"
old = ''' return before ? before + ' ' + text : text;'''
new = ''' return text;'''
[[mutation]]
label = "S5c R3 a partly refused batch buries an earlier failure"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_two_standing_failures_are_both_said_once_each"
old = ''' else if (told) warn(also(told, mine));'''
new = ''' else if (told) warn(told);'''
[[mutation]]
label = "S5c R8 a focused player swallows Escape"
file = "booth/templates/base.html"
test = "tests/test_antislop_s5c_browser.py::test_a_player_keeps_its_keys"
old = '''(k !== 'Escape' && t.closest('video, audio'))'''
new = '''t.closest('video, audio')'''
[[mutation]]
label = "S5c R7 a file rewritten in place with its mtime restored keeps its old size"
file = "booth/thumbs.py"
test = "tests/test_antislop.py::test_a_file_replaced_in_place_keeps_no_stale_size"
old = '''st.st_mtime_ns, st.st_ctime_ns)'''
new = '''st.st_mtime_ns, 0)'''