-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Update index.md #37339
base: main
Are you sure you want to change the base?
Update index.md #37339
Conversation
Preview URLs Flaws (48)URL:
(comment last updated: 2024-12-24 14:21:50) |
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.
Hi there @geryogam, and thank you for this fantastic contribution to MDN. It improves consistency with the rest of MDN, and significantly improves readability.
I've made some suggestions, but nothing serious.
All the best.
files/en-us/web/css/cascade/index.md
Outdated
Only relevant to author styles are inline styles, declared with the `style` attribute. Normal inline styles take precedence over any other normal author styles, no matter the specificity of the selector. If `line-height: 2;` were declared in a `:root body p` selector block in any of the five imported stylesheets, the line height would still be `1.6`. | ||
|
||
Normal inline styles take precedence over any other normal author styles unless the property is being altered by a CSS animation. | ||
Only relevant to author styles are inline styles, declared with the `style` attribute. Normal inline styles take precedence over any other normal author styles, no matter the specificity of the selector, unless the property is animated or transitioned. If `line-height: 2;` were declared in a `:root body p` selector block in any of the five imported stylesheets, the line height would still be `1.6`. |
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.
I'm not 100% sure about this, but it feels like moving the bit about animations/transitions as you have done splits the previous point into two, making it slightly less obvious what the third sentence connects to or why it is there.
As a fix to this, maybe add to the end of the third sentence something like ", unless it is being animated."?
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.
Alright, I added a distinct sentence for animated and transitioned properties for normal inline styles, following the same structure as important inline styles.
Co-authored-by: Chris Mills <[email protected]>
No description provided.