Skip to content
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

::-moz-focus-inner: remove unnecessary specificity #847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattbrundage
Copy link
Contributor

Updated to use the same specificity as in Mozilla's user agent stylesheet (resource://gre-resources/forms.css)

Also, this ::-moz-focus-inner rule has no effect on the primary focus style of buttons, so we don't have to "restore" focus styles with a :-moz-focusring rule.

:-moz-focusring styles are set in resource://gre-resources/html.css

Reduced test case: https://codepen.io/mattbrundage/pen/LYZKNYJ

Updated to use the same specificity as in Mozilla's user agent stylesheet (``resource://gre-resources/forms.css``)

Also, this ``::-moz-focus-inner`` rule has no effect on the primary focus style of buttons, so we don't have to "restore" focus styles with a ``:-moz-focusring`` rule.
``:-moz-focusring`` styles are set in ``resource://gre-resources/html.css``

Reduced test case: https://codepen.io/mattbrundage/pen/LYZKNYJ
garrettw added a commit to garrettw/vitals that referenced this pull request Dec 14, 2020
marella added a commit to marella/modernize that referenced this pull request Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant