-
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
[page types] Define page types for CSS #15540
Comments
SelectorsCSS selector would encompass:
In the sidebar, I would include "selectors" on all CSS pages, and then include the 3 subgroupings on every combinator, pseudoclass, and pseudo element page. We could divide them further (attribute selectors, structural selectors), but I think that should be on the main "selectors" page and not in the side bar. This is pretty much how it is now. PropertiesShorthand properties are properties; not sure if we want an additional section in those for "long hand members of this short hand property", but I don't think we need to call them out as such in a sidebar. GuidesThere are two articles that are fundamental to understanding CSS. Well, maybe more. But specificity and the cascade aren't "guides" like the other guides where you're learning how to use a CSS feature; maybe put those two in "selectors and the cascade" in addition to or instead of guides Other thoughtsThe miscellaneous page should be removed. |
Thanks Estelle! This isn't just (or even mostly) for sidebars: it's also, for example, to define the things that different pages must or may contain. So for example, shorthand properties should (probably) have their own type because we want these pages to have a "Constituent properties" section. But of course the page types should be able to support the sidebar. At the moment we distinguish selectors, pseudo-classes, and pseudo-elements in the sidebar.
I don't think this should be visible as a different page type. A guide page is really just any page that doesn't have any particular structure. |
This can be a CSS function
This is a collection of CSS keywords. I wonder if we should merge CSS function / CSS keyword and these 2 pages (there is another one I think, I don't have right now) in one single page type. |
Could it be a
Is there any reason this couldn't be made into a Similarly I thought we could make https://developer.mozilla.org/en-US/docs/web/css/color_value/color_keywords into a (In a sense of course many CSS types are "a collection of keywords", like https://developer.mozilla.org/en-US/docs/web/css/blend-mode for instance. It's an enumerated type.) |
I've tried to avoid types that are used only once, but I will try to see how it works in these cases. |
Another reason for wanting to do this is: with the new formal syntax macro, we'll get something like this for I would like |
Yes, let's do this. |
I've moved the hexadecimal value page to |
Having thought about this a bit I think we can go with the set of page types in the original comment: #15540 (comment), with the exception of "CSS recipe" which I think we should treat as a guide for now. |
I think this is done :). |
Part of #15539.
In https://docs.google.com/spreadsheets/d/14RX8EEKPpeYkP2cF5Y_ZKF3JpNJ_24OL7stvZWNJLIY/edit#gid=2083448819, in the "CSS" tab, I've listed every page under https://developer.mozilla.org/en-US/docs/Web/CSS and made an initial determination about the page type.
I've tried to err towards too many page types than too few, since it's easy to amalgamate them but harder to divide them.
I've come up with 16 types:
...plus two pages that I wasn't able to categorize:
https://developer.mozilla.org/en-US/docs/web/css/color_value/hexadecimal_rgb
https://developer.mozilla.org/en-US/docs/web/css/color_value/system_color_keywords
The text was updated successfully, but these errors were encountered: