unwanted whitespace/indentation in playable editors (interactive examples) #28174
Labels
Content:Learn:CSS
Learning area CSS docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Type_Class_and_ID_Selectors#type_selectors
What specific section or headline is this issue about?
the interactive examples (playable editors)
What information was incorrect, unhelpful, or incomplete?
not a big deal imho, but i wanted to bring this up a while ago because i've come across it a few times before (especially in the learning area) and today I've noticed it again...
the html files for the interactive examples/editors (iframes; rendered with the
EmbedGHLiveSample
macro) contain all whitespace from their original files.as it is the case atm, this can be annoying when editing, since most of the time you will start with an indentation of 4 spaces on a newline.
and on lines where a default indentation would be appreciated/expected, there is almost never an indentation...
often there is also weird formatting in the interactive examples - i guess this is maybe the result of code formatting with prettier?
another point is the fact that rendered code blocks on mdn articles have a default indentation of 2 spaces.
see the following screenshots for understanding:
my question is if
What did you expect to see?
-> helpful and consistent whitespace/indentation as it is commonly used in code editors
Do you have any supporting links, references, or citations?
you can find some interactive examples here:
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Type_Class_and_ID_Selectors
https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Multicol_skills
Do you have anything more you want to share?
the right repo might be css-examples, but I wasn't sure if the issue described affects other parts as well...
The text was updated successfully, but these errors were encountered: