Repository navigation
update docs to reflect new css custom state syntax - #31258
hamishwillee merged 16 commits into
Conversation
|
Preview URLs
Flaws (2)Note! 1 document with no flaws that don't need to be listed. 🎉 URL:
URL:
(comment last updated: 2024-02-04 23:11:59) |
6c04b23 to
db66418
Compare
|
@estelle , would you mind looking at this PR? I think you'd be a better fit for it than me. |
|
@wbamberg Lots of churn on this. I did the changes this updates about a month ago so I can review this. |
|
@keithamus Thanks for this change - nicely done. Is there a chromium bug I can use to track when I've made some modifications and a few comments. The modifications are intended to make it easier to:
I think This is close to merging, but I'd like you to check my changes and see comments first. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hamish Willee <[email protected]>
Here's the chromium i2s: https://groups.google.com/a/chromium.org/g/blink-dev/c/GDmNaxAuCY4, tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1514397, CL: https://chromium-review.googlesource.com/c/chromium/src/+/5153145. It's yet to be merged so there's no version to test it, as of yet.
Gave it one more read through, tidying up small parts, but IMO this is good to go now. |
hamishwillee
left a comment
There was a problem hiding this comment.
Thanks @keithamus - this is good. We might improve it by looking at #31258 (comment) (would appreciate your comment) but merging now.
Description
It has been agreed that the new syntax for CSS custom states will be
:state(foo)rather than:--foo. Chrome has shipped:--foofor a little while now but both Firefox and WebKit implementations support the:state(foo)syntax and Chrome will soon be updated to support both (with some pathway to deprecating the:--foosyntax). Consequently this is an attempt to update the documentation to reflect this, by presenting the core content as using the:state(foo)syntax whilst mentioning that:--foois the legacy syntax.Motivation
Both Firefox and WebKit support the new syntax behind a flag and may start shipping this syntax. The HTML spec has a PR (whatwg/html#8467) that defines the new
:state(foo)syntax. Chrome will likely update to support both soon.Currently this support creates a discrepancy between the support the browsers have, intend to have, and what the documentation outlines. The motivation here is to point folks toward the new syntax while also pointing out the legacy issues.
Additional details
whatwg/html#8467
https://bugs.webkit.org/show_bug.cgi?id=266845
https://bugzilla.mozilla.org/show_bug.cgi?id=1861466
Related issues and pull requests