-
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
Rewrite attr()
to match the newest version of the spec
#37574
Conversation
Preview URLs Flaws (50)Note! 1 document with no flaws that don't need to be listed. 🎉 URL:
External URLs (3)URL:
URL:
(comment last updated: 2025-01-14 13:53:20) |
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 @bramus! This is a really good effort, thanks for updating this page! I've made quite a few comments, but a lot of them are language-style nitpicks; there isn't too much in terms of significant work to do here.
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Thanks for the review, Chris. Merged a bunch of your suggestions and addressed the things I could address. Those that I could not address I have left as unresolved + 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.
@bramus much improved! A few more comments for you; getting pretty close now.
Co-authored-by: Chris Mills <[email protected]>
Thanks for your input, @chrisdavidmills – Much appreciated! I’ve committed the suggestions you code and am about to go over the remaining conversations now. |
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.
@bramus sorry, I forgot to review the new glossary page. One more new comment added!
--- | ||
|
||
{{GlossarySidebar}} | ||
|
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 page reads fine as it is, but I think it is missing one thing — what is the Guaranteed-invalid value in general? What is it's purpose, why do we need it, what does it do? This is not clear after reading this page. The page should start with a sentence "The guaranteed-invalid value is..."
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.
It does start with that on the line below:
In CSS the guaranteed-invalid value is {{CSSXref("initial")}}.
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.
Yeah, that says specifically what the value is, but I guess I am still struggling a bit with why this is a specific thing conceptually. Why it is useful to people? Or is it more of a thing to warn people about, not to use this value in var()
because it is guaranteed invalid?
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 think that exceeds the extent of this PR and would be a good subject for a standalone one.
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.
OK, that's fine. I don't think this is something we need to block this PR on.
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.
@bramus really nice work. I've added a few more comments, but I'm going to approve this now, as I think it is basically ready to merge, and my remaining comments are more "nice to have"s.
Have a look and see what you think. I think we can merge this in the next round.
Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Chris Mills <[email protected]>
Thanks for your extensive input here @chrisdavidmills! I think I have addressed all remarks. I suggest to update the new “guaranteed-invalid value” glossary page in a standalone PR. |
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.
Awesome work @bramus, this is ready to merge!
I just committed a few small grammar nitpicks directly to the branch, rather than bothering you with multiple tiny comments. I hope that's OK.
Perfect. Thanks for your thorough review of all this and the successive merge, Chris! |
(👋 Hi, Chrome DevRel here)
Description
The
attr()
function underwent an upgrade: https://drafts.csswg.org/css-values-5/#attr-notationThis PR updates the
attr()
page with that info.Motivation
This feature is shipping in the upcoming Chrome 133: https://chromestatus.com/feature/4680129030651904
Additional details
calc-size()
TODO:
in the file, for which I could use some guidance.Related issues and pull requests
There is still an issue with the data table, for which I have file mdn/browser-compat-data#25618