WarUI

Strict CSP compatibility mode

GRID-A29-F05P0beyond-baselinePlanned

WarGrid runs under a policy without unsafe-eval or unsafe-inline. It uses no eval or Function constructors, applies dynamic sizes through CSSOM or constructable stylesheets, and accepts a nonce for any injected style element.

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An embedded iframe served with a strict CSP header. The grid has resizing, pinning, and virtualization enabled.

Expected behavior

With compliant settings the violation log stays empty while the user resizes, scrolls, and pins columns. The legacy-theme toggle produces logged violations, which demonstrates the monitor works.

Planned API surface

cspNoncestyleInjection: 'constructable' | 'nonce' | 'external'onCspViolation

Acceptance criteria

  • The library source contains no eval, new Function, or string-argument setTimeout usage (verified by a static check). (pending)
  • All features work under the policy: default-src 'self'; style-src 'self' 'nonce-x'; script-src 'self'. (pending)
  • Column resizing updates widths without inline style attributes when 'constructable' is used. (pending)
  • An external CSS mode is documented with a prebuilt stylesheet. (pending)