[Medium] github-snake :host-context(:fullscreen) selector may not match when host enters fullscreen #68

Closed
opened 2026-05-05 04:16:16 +00:00 by spikerj · 1 comment
Owner

Severity: Medium (UI)

File: spikersoft-angular/projects/spikersoft/src/app/_components/_games/github-snake/github-snake.component.scss (~8-16)

Problem: :host-context(:fullscreen) & matches when an ancestor is fullscreen. If the component's host element itself enters fullscreen, this selector may not match across all engines.

Fix: Add :host(:fullscreen) .container { ... } alongside the existing rule for engine compatibility.

Acceptance criteria:

  • Snake fullscreen scaling works whether host or ancestor is fullscreen
  • Tested in Chromium, Firefox, Safari/WebKit
**Severity:** Medium (UI) **File:** `spikersoft-angular/projects/spikersoft/src/app/_components/_games/github-snake/github-snake.component.scss` (~8-16) **Problem:** `:host-context(:fullscreen) &` matches when an *ancestor* is fullscreen. If the component's host element itself enters fullscreen, this selector may not match across all engines. **Fix:** Add `:host(:fullscreen) .container { ... }` alongside the existing rule for engine compatibility. **Acceptance criteria:** - [ ] Snake fullscreen scaling works whether host or ancestor is fullscreen - [ ] Tested in Chromium, Firefox, Safari/WebKit
Author
Owner

Resolved.

Both fullscreen rules now combine :host-context(:fullscreen) & with :host(:fullscreen) & so the layout adjusts whether an ancestor or the host element itself enters fullscreen.

File: spikersoft-angular/projects/spikersoft/src/app/_components/_games/github-snake/github-snake.component.scss.

**Resolved.** Both fullscreen rules now combine `:host-context(:fullscreen) &` with `:host(:fullscreen) &` so the layout adjusts whether an ancestor or the host element itself enters fullscreen. File: `spikersoft-angular/projects/spikersoft/src/app/_components/_games/github-snake/github-snake.component.scss`.
Sign in to join this conversation.