Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgp1130/order-dependent-styling
https://github.com/dgp1130/order-dependent-styling
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dgp1130/order-dependent-styling
- Owner: dgp1130
- Created: 2021-07-02T01:49:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-02T01:50:32.000Z (over 3 years ago)
- Last Synced: 2024-10-05T07:41:07.284Z (about 1 month ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Order Dependent Styling
Order-dependent styles are considered an anti-pattern. They can cause tricky
issues with bundlers which may not keep order stable during compilation and tend
to be very tricky to debug.This is a proof-of-concept tool which loads a web page in Puppeteer and scans
all the nodes of the DOM to look for any which have a style set by multiple CSS
rules using order-dependent selectors. Prints any findings to stderr and exits
with a non-zero status code if any are found.