Conversation
- Fix broken HTML spec link - Remove CSS UI spec link as it does not define any pseudo-classes - Add CSS Scoping spec link, as it defines shadow-structural pseudo-classes - Add CSS Page spec link, as it defines page pseudo-classes
- Added: 20 new pseudo-classes and 4 new categories - Edited a few existing pesudo-classes to put them in the right order or fix a name display issue
- Added 11 new pseudo-classes - Edited a few existing pseudo-classes to put them in the right order or fix a name display issue
- Added 3 new pseudo-classes - Moved :indeterminate so it follows alphabetical order
- Added 5 new pseudo-classes and 1 new module - Moved :popover-open to the Selector list where it belongs
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
|
Preview URLs (comment last updated: 2025-03-20 07:38:27) |
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
|
Thanks @dipikabh :) I find it very useful to surface this documentation even though no one is implementing it, it allows people to:
I don't think we should remove these entries, especially not now that I have already spent the time to document them. Would it help if I made pages for the |
|
Hi @atjn, thank you for the work you've put in to update these pages.
I understand your concern. I'm only suggesting to remove We do have a policy for what we document. An experimental feature (landing in one or more browsers behind a preference) is different from a feature not supported at all in any browser. We do sometimes document features that are still experimental when there is clear momentum towards the implementation becoming standard and landing in more browsers. All these pages - We did remove the |
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
You're the boss, I have removed the entries in question :) |
Thank you. We do appreciate you highlighting the issue about MDN having pages for features that are not implemented in browsers. I've brought this up with the team and we'll be looking into removing such pages so we better adhere to our policy :) |
dipikabh
left a comment
There was a problem hiding this comment.
Thanks a lot for these updates
|
* upstream/main: (172 commits) chore: improve code style guide (mdn#38715) fix: typo on `Error.isError()` page (mdn#38754) plural consistency (mdn#38747) fix: auto-cleanup by bot (mdn#38695) Synchronize with BCD v5.7.4 (mdn#38709) Add docs for JS self-profiling API (mdn#37796) Better SameSite docs (mdn#38710) Added missing explanation for Array Literals (mdn#38745) Add a page on CSRF (mdn#38151) Fix description of several Range methods (mdn#38518) Remove extraneous span (mdn#38696) Add a definition for media containers, improve how the media files are defined and Remove wrong information (mdn#38721) Move visited selector guide to CSS selectors module (mdn#38642) Make JSON learning article more technically precise (mdn#38644) Make translate3d() interactive example code valid (mdn#38647) Clarity on Safari support for custom elements (mdn#38727) feat(css): Link to learning doc about text direction (mdn#38719) Fix typo (mdn#38739) move guide to module: inline formatting context (mdn#38637) Fix CSS pseudo-class lists (mdn#38576) ...
* Update spec links in CSS Pseudo-classes page - Fix broken HTML spec link - Remove CSS UI spec link as it does not define any pseudo-classes - Add CSS Scoping spec link, as it defines shadow-structural pseudo-classes - Add CSS Page spec link, as it defines page pseudo-classes * Add missing entries in CSS Pseudo-classes page - Added: 20 new pseudo-classes and 4 new categories - Edited a few existing pesudo-classes to put them in the right order or fix a name display issue * Add missing entries in CSS Pseudo-classes alphabetical index - Added 11 new pseudo-classes - Edited a few existing pseudo-classes to put them in the right order or fix a name display issue * Add missing entries in CSS Selectors page - Added 3 new pseudo-classes - Moved :indeterminate so it follows alphabetical order * Add missing entries in CSS Selectors Related concepts - Added 5 new pseudo-classes and 1 new module - Moved :popover-open to the Selector list where it belongs * volume-locked: user agent -> browser Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Custom element pseudo -> Custom state pseudo Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * blank: show experimental_inline after name Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Pesudo classes overview: remove current() Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Pesudo classes overview: remove grid-structural Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Pesudo classes list: remove current() Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Pesudo classes list: remove grid-structural Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Fix formatting Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Selectors list: remove grid-structural * Selectors list: remove grid-structural --------- Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
MDN has three lists that enumerate all CSS pseudo-classes, but none of the lists include all pesudo-classes. I have added the missing pseudo-classes to all three lists.
I have also made some minor tweaks:
experimentalicon from pesudo-classes where it was incorrect.:playingand:pausedbecause they were very long and incorrect.Motivation
The lists are confusing and misleading when they are incomplete.
Additional details
A few of the new pseudo-classes do not link anywhere because MDN does not have a page for that pseudo-element. I tried to add the link anyways because I expect that the pages will be added in the future, but then the links are redirected to other pseudo-classes that start with the same letters. I think that would create a bad user experience, so I have opted to not add any links instead.
Related issues and pull requests