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
For specificity reasons, I need to set some styles to the :where(.class) selector instead of just doing .class (the reason being :where has a specificity score of 0,0,0 while .class has 0,1,0 )
The problem is those styles are not being recognized in the styleManager. As far as I understand, this could be done by extending the CSSparser; but after some failed tries I came here seeking help.
Am I looking at this the right way? or is there a better approach?
Anyone know how to extend the CSS parser to recongnize those styles?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For specificity reasons, I need to set some styles to the :where(.class) selector instead of just doing .class (the reason being :where has a specificity score of 0,0,0 while .class has 0,1,0 )
The problem is those styles are not being recognized in the styleManager. As far as I understand, this could be done by extending the CSSparser; but after some failed tries I came here seeking help.
Am I looking at this the right way? or is there a better approach?
Anyone know how to extend the CSS parser to recongnize those styles?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions