marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

min-, max- attributes are not HTML standard compliant #294

Open fabasoft-michael-stedry opened 4 years ago

fabasoft-michael-stedry commented 4 years ago

This library forces the user to use non-standard HTML attributes (eg. min-width, min-height, max-width, max-height) which prevents the resulting software to receive HTML compliance certification.

To alleviate this problem I have created the PR #273 and it works without a hitch for the 1 year we have it in production.

Could you please review and merge it if there is no problem with it? It would be nice to be able to use the official version instead of our fork.

marcj commented 3 years ago

prevents the resulting software to receive HTML compliance certification

Who are you trying to impress with that? I prefer UX over unnecessary pedantic compliance. Custom non-data- attributes will always work in browser engines without complains, so you shouldn't worry about that.

fabasoft-michael-stedry commented 3 years ago

Hi Marc, who we are trying to "impress" are the certification auditors, since we want/need our product to be certified. See https://www.fabasoft.com/en/about-us/transparency/certifications-and-audits

Do you have a personal problem with your library being compliant when someone else adds such feature in a backward compatible way?

awacode21 commented 3 years ago

I would appreciate this PR