You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use partial selectors in SASS which sometimes produces impossible selectors if you're not careful. These selectors are valid syntax but can never match an element, so, can safely be removed.
A few examples I thought of:
tag:not(tag)
:matches(h1):matches(h2)
html html (assuming well-formed HTML)
p div (again, assuming well-formed HTML)
...
The text was updated successfully, but these errors were encountered:
@chrisdothtml yes. :not especially, as I use %partial:not(%other) in a few places. Sure, there are ways of getting around this and I have also suggested removing these during compilation in sass, but I think that having the option of removing these in minification tools is also a good idea, even if not enabled by default.
I use partial selectors in SASS which sometimes produces impossible selectors if you're not careful. These selectors are valid syntax but can never match an element, so, can safely be removed.
A few examples I thought of:
tag:not(tag)
:matches(h1):matches(h2)
html html
(assuming well-formed HTML)p div
(again, assuming well-formed HTML)The text was updated successfully, but these errors were encountered: