-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full selector tooltip no showing on nested LESS selectors #371
Comments
Even in simple CSS, the tooltip only shows specificity for selectors and example and browser compatibility in case of declaration. Should we change the behavior for all, CSS, LESS and SCSS? |
To what? Specificity only applies to selectors |
Currently, tooltips in CSS, LESS and SCSS behaves the following way: Declarations: Examples and browser icons.
Should we change this behavior for all three stylesheet content types? |
Ahh, now I get what you mean. No, we should keep the current behavior. It's because this is a bug where the full selector tooltip is shown when hovering a declaration instead of the selector. |
Cool. Looks like this is magically resolved. I can't reproduce this specific issue. 👍 However, there are some major snags when calculating specificity. For instance, mixins scenarios which @spadapet mentioned earlier and also the loop structures which SCSS offers to save repetition of code. Those we may be able to fix using compiled code via map files (if the suitable options are enabled in settings). See #783 (comment). This would guarantee the correctness of calculated specificity, displayed in selector's tooltip. |
Tooltip: Show full selector path. (#371)
Example:
When hovering over the
div
selector, no tooltip shows the full path:header div
. However, hovering thedisplay
declaration will. The tooltip should only show on selectors and not on declarationsThe text was updated successfully, but these errors were encountered: