add support for optimizing CSS :has
/ :is
pseudo-selectors
#1107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
resolves #1106
So for example, with this HTML
And this CSS (from the MDN page)
The styles work as expected in dev and production builds
![Screenshot 2023-11-03 at 7 37 48 PM](https://private-user-images.githubusercontent.com/895923/280431979-471c2bd4-567c-43ae-a26d-5de511399870.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODg1MTIsIm5iZiI6MTczODk4ODIxMiwicGF0aCI6Ii84OTU5MjMvMjgwNDMxOTc5LTQ3MWMyYmQ0LTU2N2MtNDNhZS1hMjZkLTVkZTUxMTM5OTg3MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNDE2NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMDNlNzMzYTIzOGFlNDZmZWVhODQ4ZDIwMWEzNDg4ZjFlMTI5MDgwZGY2OTc5MTFjNzZmMTZjZDYwYmM2NDdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.MJa9uHQoZ_yXHpqk-fw5iqpB5uy2904vUPYp62zh218)
![Screenshot 2023-11-03 at 7 51 25 PM](https://private-user-images.githubusercontent.com/895923/280432872-a612eefb-6ed0-47a9-8948-6fd313598aec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODg1MTIsIm5iZiI6MTczODk4ODIxMiwicGF0aCI6Ii84OTU5MjMvMjgwNDMyODcyLWE2MTJlZWZiLTZlZDAtNDdhOS04OTQ4LTZmZDMxMzU5OGFlYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNDE2NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kYThiZDczYTRjYjg4NDgwYzhlZGE1NDc5N2M0NTU0YzU3MzliMzQyMjViNDhiMDg5M2E1MDY2NmE3ZjAzNzBjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.v7mShRMY0ImQG3X_ylpc7j9gkpodgtbclPd3VDoRKcU)
Summary of Changes
:has
:is
TODO
:is
support?