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

CSS, Question 32 is wrong about precedence #383

Closed
HoraceShmorace opened this issue Sep 19, 2020 · 2 comments
Closed

CSS, Question 32 is wrong about precedence #383

HoraceShmorace opened this issue Sep 19, 2020 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@HoraceShmorace
Copy link

Q32. Which type of declaration will take precedence?
  any declarations in user-agent stylesheets <<<<---Correct
  important declarations in user stylesheets
  normal declarations in author stylesheets
  important declarations in author stylesheets

That's wrong. In fact, declarations in user-agent stylesheets have the lowest precedence. Otherwise, no other CSS would have any effect.

"Important declarations in user stylesheets" have the highest precedence, per the CSS2 spec.

@github-actions
Copy link

Hello @HoraceShmorace , thank you for submitting an issue! 👍

@Ebazhanov
Copy link
Owner

@HoraceShmorace thank you for the details explanation FYI added the reference link in front of your answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants