đ Testing HTML With Modern CSS https://heydonworks.com/article/testing-html-with-modern-css/
(The last time I addressed this topic was circa 2016. It's amazing what you can write selectors for these days. Plus we have custom properties!)
Testing HTML With Modern CSS
CSS can be a great HTML testing tool, especially in 2024Heydon Pickering (heydonworks.com)
This entry was edited (4 weeks ago)
Large Heydon Collider reshared this.
Dan Burzo
in reply to Large Heydon Collider • • •Nicolas Chevobbe
in reply to Large Heydon Collider • • •The accessibility panel would probably surface those issues, but it requires the user to actively select it and run an audit, which is not as discoverable as displaying those in the Inspector directly
Large Heydon Collider
in reply to Nicolas Chevobbe • • •Chris Brailsford
in reply to Large Heydon Collider • • •Sami MÀÀttĂ€
in reply to Large Heydon Collider • • •Interesting!
I was using CSS to find sections of Finnish in an English study book, since some of those sections had unmarked English in them.
I styled the Finnish (lang="fi") with a border, so I located them easily in the preview and then went to add English attributes (lang="en") for the relevant tags inside the Finnish sections. Then I also styled the English parts within Finnish sections, so I could check if I missed any.
#ebook
Large Heydon Collider reshared this.
Egor Kloos
in reply to Large Heydon Collider • • •https://codepen.io/dutchcelt/pen/PoLJLVw?editors=0110
Large Heydon Collider
in reply to Egor Kloos • • •Egor Kloos
in reply to Large Heydon Collider • • •It's great to load something like this on test and toggle it via web tools. Or toggle it during visual regression tests. That'll teach em. đ
Benjy Stanton
in reply to Large Heydon Collider • • •Kilian Valkhof
in reply to Large Heydon Collider • • •....have you ever considered a browser that has a panel with an actual overview of issues (a11y and more), that doesn't force you to dig around the DOM.
Cause I have one of those. đ
Large Heydon Collider
in reply to Kilian Valkhof • • •