-
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
fix(css): simplify unlayered style description #34345
Conversation
Preview URLs (comment last updated: 2024-06-25 08:00:03) |
2207442
to
e79e4d7
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.
@OnkarRuikar looking pretty good to me. Approving, pending the diagram update and the paragraph update I suggested.
Co-authored-by: Chris Mills <[email protected]>
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.
We should move the png into the shared assets repo as an SVG, if you need some help, let me know!
Just discussed in the community call, I can recreate the diagram for you. Hold tight for a PR in the shared-assets repo. |
files/en-us/web/css/@layer/index.md
Outdated
|
||
The following diagram shows layer priorities where layers are declared in 1, 2, ..., N order. | ||
|
||
![Diagram showing cascade layer priorities](layer_cascade.png) |
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.
![Diagram showing cascade layer priorities](layer_cascade.png) | |
![Diagram showing cascade layer priorities](https://mdn.github.io/shared-assets/images/diagrams/css/at-rules/layer-cascade.svg) |
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.
@bsmth The new URL is giving the following error in page preview:
Refused to load the image 'https://mdn.github.io/shared-assets/images/diagrams/css/at-rules/layer-cascade.svg' because it violates the following Content Security Policy directive: "img-src 'self' *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com media.prod.mdn.mozit.cloud media.stage.mdn.mozit.cloud interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net wikipedia.org www.google-analytics.com www.gstatic.com".
Will it work on live site?
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.
This is a known bug, CSP rules have to be updated on dev (preview) env. They have been added in prod via Yari. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview for example.
Co-authored-by: Brian Thomas Smith <[email protected]>
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.
LGTM thank you!
Current prose beat around bush and ends explaining implementation. The PR simplifies the statement as per the request.