Commit Graph
2 Commits
Author SHA1 Message Date
OddTurtleHead 0df25e4892 fix: close review gaps in host-control fonts, on-accent contrast and protected filter values
- Host-owned controls refuse font tokens naming the compiler's scoped skin
  font prefix (ws-), so a skin @font-face gated behind a non-matching @media
  (absent from document.fonts) cannot blank labels after a resize; the theme
  binding also re-reads tokens on viewport resize for @media-scoped tokens.
- A token palette is accepted only if black or white text reaches 4.5:1 on its
  accent; mid-tone accents (~4.23:1) now fall back as a group.
- Protected app-DOM controls reject var()/attr() for filter, clip and
  content-visibility, which could smuggle opacity(0)/rect(0,0,0,0)/hidden past
  the literal hide checks; literal filters and other parts are unchanged.
- Docs and tests updated (unit + headless-Chrome fixture).
2026-11-15 18:04:25 +08:00
OddTurtleHead a353c32892 fix: refresh host-control tokens on late skin CSS, resolve modern colours and refuse skin fonts
- bindHostControlTheme re-applies when <head> stylesheets or root attributes
  change, so a stored skin id themes the floating recovery capsule, skin-load
  banner and authorization dialog once its CSS actually arrives; the recovery
  root pass stands down while a slot binding owns the capsule tokens.
- The shadow-root probe converts oklch()/color-mix() results to sRGB via a
  1x1 canvas instead of silently dropping them to the default palette.
- Host-owned controls ignore font tokens naming a document @font-face, which
  could ship blank glyphs and erase the recovery/consent labels.
- Authorization body text uses the full sanitized foreground (the 76% mix
  could fall under the 4.5 contrast floor); theme refreshes before showModal.
- Browser fixture covers late CSS, oklch and font refusal; docs updated.
2026-11-15 17:14:42 +08:00