-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove duplicate selectors #23466
Remove duplicate selectors #23466
Conversation
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Often these are added this way to increase specificity.
I looked back through the history though, and it doesn't seem that was the case here, so I think it's good to remove this duplication.
Originally these were attribute selectors, and one of the lines included a space - #13248 (comment)
Then they were replaced with class name selectors, but duplicated - #16779
I tested Twenty Nineteen, Twenty Twenty and Gutenberg Starter Theme and didn't spot any differences.
Twenty Twenty appears to have a bug with its border in the frontend, but it wasn't caused by this PR:
dc98477
to
c6563dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, in this case the duplication doesn't increase specificity; it doesn't do anything, actually. So removing it should have no effect.
I've rebased the branch to get tests running. Once they pass, I'll merge this PR.
Description
Removes duplicate selectors from block style
How has this been tested?
Types of changes
Code cleanup
Checklist: