-
Notifications
You must be signed in to change notification settings - Fork 515
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
Content bug: Most CSS grid introductory _CSS Demos_ are missing relevant contextual information #1969
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
FWIW while I think there is some merit in this issue I don't think it's at all solvable in the context of interactive examples, which don't show all the details of the example, and whose format isn't really intended to do that. It's a design choice of the interactive examples not to show the complete context, so as to provide a simpler, shorter example suitable for the top of the page. It wouldn't be appropriate to show screenfuls of code at the top of the page. If you want examples showing the complete context you really need to look at examples further down the page: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow#examples. It's true that this works less well for properties whose effect is very context-dependent. So if that's seen as a big enough problem for, say, the grid properties, then the fix is to remove them. FWIW I would be against that and think the issues here are not so great. For example in If you want complete examples showing the complete context you really need to look at examples further down the page: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow it seems pretty obvious to me what the effect of this property is, even without knowing all the other grid values. |
What about introducing a "Show complete context" widget (accordion, button)? This way, the top-of-the-page examples stay short by default, yet still allow to give further details on demand. |
What page(s) did you find the problem on?
Specific page section or heading?
Examples in the introductory CSS Demo,
section.css-editor-container
.What is the problem?
While each demo is nice to learn the specific CSS property by the given three or four examples, the demos are missing contextual information:
#example-element
) CSS grid properties? The rules (e.g.grid-template-rows: repeat(3,minmax(40px,auto))
in one example,grid-auto-rows: 40px
in another;grid-template-columns: 1fr 1.5fr 1fr
in one,grid-template-columns: 1fr 1fr 1fr
in another) are not shown, yet relevant for the property under experimentation.grid-column: 1/3
, Two hasgrid-column: 2
; another's example Two item hasgrid-column: auto/span 3; grid-row: auto/span 2
. Again, to grasp the behavior of the selectable sample values, this contextual information is important.What did you expect to see?
grid-template-rows
property, ...)Did you test this? If so, how?
"Yes".
The text was updated successfully, but these errors were encountered: