-
Notifications
You must be signed in to change notification settings - Fork 22.9k
At-rule pages: change css links to macros #41960
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
Conversation
Preview URLs (13 pages)
Flaws (408)URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
External URLs (1)URL:
|
chrisdavidmills
left a comment
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
| - : Is a comma-separated list of [media queries](/en-US/docs/Web/CSS/Guides/Media_queries/Using), which specify the media-dependent conditions for applying the CSS rules defined in the linked URL. If the browser does not support any of these queries, it does not load the linked resource. | ||
| - _layer-name_ | ||
| - : Is the name of a [cascade layer](/en-US/docs/Web/CSS/Reference/At-rules/@layer) into which the contents of the linked resource are imported. See [`layer()`](/en-US/docs/Web/CSS/Reference/At-rules/@import/layer_function) for more information. | ||
| - : Is the name of a {{cssxref("@layer", "cascade layer")}} into which the contents of the linked resource are imported. See [`layer()`](/en-US/docs/Web/CSS/Reference/At-rules/@import/layer_function) for more information. |
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.
@estelle @chrisdavidmills Was there a motivation for this change? I think most of the writers are indifferent about the two ways and we'd treat the change from one to another as unnecessary. In fact, at this particular moment, doing so introduces more flaws because the macro produces a redirect. For this particular case—and a lot others involving @layer—this change is actually a regression because the original link is not code-formatted but cssxref produces code formatting, and this xref macro, unlike others, does not allow disabling code formatting. I will have to revert some of these regressive changes.
|
Just caught another one: #41973 (comment). I suspect there are a lot of other cases like this one, where the eventual markup changed inadvertently, but my checker can only catch the cases where it introduced dubious content (spaces in code, self-link etc.) but not others (such as changing |
|
My 2c: it may be better to revert this series of PRs rather than review each again to find and correct regressions as the benefits don't seem to justify the time cost at the moment. |
|
Q: Would the time be better spent fixing the macro, or is it going to be really complicated? I mean, surely you could query the page type and generate the URL string from there? Would it be worth spending an hour evaluating the complexity of that before reverting all this stuff? |
|
I think @argl has 'fixing the macro' on his TODO list for a while, so he can weigh in about how long it will take or how complex it will be. Certainly my personal preference would be to revert instead of spend time on it while it's having reader impact on prod, but happy to hear what others think. |
|
I think I'm just gonna revert them for now. Once it is fixed, we can automate such updates if it is something we feel is worth spending the time on. |
This reverts commit bab17c3.
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
* At-rule pages: change css links to macros * At-rule pages: change css links to macros
No description provided.