2 ms·
DevTools has a list of default viewport sizes, but they change from browser release to release. Is there a better way or an existing [YAML] file schema to gener
by westurner 2y ago
DevTools has a list of default viewport sizes, but they change from browser release to release. Is there a better way or an existing [YAML] file schema to generate a list of viewport configurations to import into DevTools?
- onassar 2y agoWe looked into this, and we couldn't find a way to do so, but we've open sourced the data (here: https://github.com/bitcomplete/labs-delta-viewport-tester-viewports https://github.com/bitcomplete/labs-delta-viewport-tester-vi...) so if you are able to find a way to do so, that could be a great option.
- westurner 2y agoHey thanks! https://github.com/bitcomplete/labs-delta-viewport-tester-viewports/blob/main/items.json https://github.com/bitcomplete/labs-delta-viewport-tester-vi... Use case: add which few of these to DevTools. IDK if there's a YAML parser in DevTools already, otherwise JSON + jq should work somehow awesome-chrome-devtools: https://github.com/paulirish/awesome-chrome-devtools https://github.com/paulirish/awesome-chrome-devtools
- onassar 2y agoThanks for sharing this @westurner