AgentStack
SKILL verified MIT Self-run

Css Testing

skill-caraya-agent-skills-css-testing · by caraya

Visual and automated testing strategies for CSS (visual regression, cross-browser, accessibility).

No reviews yet
0 installs
5 views
0.0% view→install

Install

$ agentstack add skill-caraya-agent-skills-css-testing

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Css Testing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

CSS Testing

Purpose: ensure CSS changes are safe, visually correct, and accessible across supported viewports and browsers.

Testing types:

  • Unit/DOM assertions: use @testing-library + jest-dom for style assertions on computed values when deterministic.
  • End-to-end (E2E): Playwright or Puppeteer for screenshot captures and interaction flows.
  • Visual regression: Percy, Chromatic, Loki, or Playwright Snapshot tests to catch visual regressions.
  • Accessibility: axe-core (automated) plus manual audit for keyboard + screen-reader flows.

Color & contrast checks:

  • Integrate color-expert into visual tests to assert APCA/WCAG thresholds for important text and UI components.
  • When programmatically generating palettes for tests, use OKLCH unless color-expert suggests another space.

Best practices:

  • Use token-driven tests — assert token values produce expected computed CSS rather than hard-coded colors.
  • Keep visual baselines stable: lock fonts, viewport sizes, and emulate consistent device pixel ratio in CI.
  • For flaky visual diffs, add heuristics: ignore anti-aliased text minor diffs, mask dynamic regions, and use thresholds.

CI recommendations:

  • Run unit and accessibility checks on PRs; run visual regression on a nightly job or when visual-impacting files change.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.