WL08 prep: class games in the browser – styles through the CSSOM, readable stage #6

Merged
oliver.maklott merged 1 commit from wl08-browser-fixes into dev 2026-11-09 08:16:58 +01:00

Found by playing Postkette end to end on the local stack (platform 0.66.0, CLI 0.48.0): teacher, six students on phone-sized viewports and the stage, all five rounds, end with the course memory (played {path:1, eavesdrop:2, tamper:2, impersonate:2, mixed:1}, chapter mixed).

  • CSP blocked the views' styles: the run frame has style-src 'self', so the <style> elements of both class games never applied. lib/styles.ts inserts the rules with insertRule into the frame's own stylesheet (CSSOM, as aivopod-app D311); test testdaten/styles.test.ts.
  • Stage: wide layout with larger labels, a "Handys" box, dots vanish after moving (none with reduced motion), reveal and guesses above the network.
  • Texts: singular forms, stale "neue Nachricht" cleared per round, waiting text before a round, impersonation reveal "von jemandem bei ".

Pack tests 161 green, tsc clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4gJVhVJJ4vbzLZ3h1R

Found by playing Postkette end to end on the local stack (platform 0.66.0, CLI 0.48.0): teacher, six students on phone-sized viewports and the stage, all five rounds, end with the course memory (`played {path:1, eavesdrop:2, tamper:2, impersonate:2, mixed:1}`, chapter `mixed`). - **CSP blocked the views' styles:** the run frame has `style-src 'self'`, so the `<style>` elements of both class games never applied. `lib/styles.ts` inserts the rules with `insertRule` into the frame's own stylesheet (CSSOM, as aivopod-app D311); test `testdaten/styles.test.ts`. - **Stage:** wide layout with larger labels, a "Handys" box, dots vanish after moving (none with reduced motion), reveal and guesses above the network. - **Texts:** singular forms, stale "neue Nachricht" cleared per round, waiting text before a round, impersonation reveal "von jemandem bei <Ort>". Pack tests 161 green, tsc clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4gJVhVJJ4vbzLZ3h1R
Class games in the browser: styles through the CSSOM, a readable stage
All checks were successful
pack / pack (pull_request) Successful in 13s
pack / pack (push) Successful in 13s
6402e1a929
Found by playing Postkette with six students, the teacher and the stage on the local stack
(platform 0.66.0):

- The run frame's CSP (style-src 'self') blocked the views' <style> elements: both class
  games ran unstyled. lib/styles.ts inserts the rules into the frame's own stylesheet with
  insertRule (the CSSOM is not subject to the CSP, aivopod-app D311); a <style> element only
  where there is no sheet to write to (tests).
- Stage: the network wide instead of tall with larger labels, a "Handys" box where messages
  start and end, dots that vanish once they arrived (they covered the names), none with
  reduced motion; reveal and guesses above the network, which no longer fills the screen
  between rounds.
- "1 neue Nachricht" / "1 Nachricht musste warten" instead of plural forms; the last news
  of a round no longer stays on the phone into the next one; before a round everyone waits
  instead of "Du schaust zu"; impersonation reveal names "jemand bei <Ort>".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4gJVhVJJ4vbzLZ3h1R
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/Wer-liest-mit!6
No description provided.