Xiphe/test-real-styles

(test-)framework agnostic utilities to test real styling of (virtual) dom elements

32
/ 100
Emerging

This tool helps frontend developers and UI engineers reliably test how their web components will actually look in a real browser. It takes your component's HTML and CSS, applies it in a real browser environment, and returns the computed styles, including those from complex CSS cascades, pseudo-elements, and user interactions like hover or focus states. This ensures that the visual appearance of your components matches your design expectations.

No commits in the last 6 months. Available on npm.

Use this if you need to programmatically verify the final, rendered CSS styles of your web components, accounting for the full complexity of CSS rules and browser rendering.

Not ideal if you only need to check for the presence of specific style declarations rather than their actual computed values after all browser rules are applied.

frontend-development UI-testing component-testing CSS-testing browser-rendering
Stale 6m
Maintenance 0 / 25
Adoption 7 / 25
Maturity 25 / 25
Community 0 / 25

How are scores calculated?

Stars

38

Forks

Language

TypeScript

License

MIT

Last pushed

May 01, 2024

Commits (30d)

0

Dependencies

7

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/perception/Xiphe/test-real-styles"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.