Exemples
Compact a flex layout for a copied style tag
Entrée
.toolbar { display: flex; gap: 8px; align-items: center; }Expected answer
.toolbar {display: flex;gap: 8px;align-items: center;}- Conserver les commentaires
Off
Keep the attribution comment in a distributed theme
Entrée
/* Theme fragment: CC0 */
:root { --accent: #005fcc; }
a { color: var(--accent); }Expected answer
/*Theme fragment: CC0 */:root {--accent: #005fcc;}a {color: var(--accent);}- Conserver les commentaires
On
Remove a development note from a hover rule
Entrée
/* temporary debug border removed */
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px #ccc; }Expected answer
.card:hover {transform: translateY(-2px);box-shadow: 0 2px 4px #ccc;}- Conserver les commentaires
Off
Compact an RGB color and a quoted font family
Entrée
h1 { color: rgb(12, 34, 56); font-family: "Times New Roman", serif; }Expected answer
h1 {color: rgb(12, 34, 56);font-family: "Times New Roman", serif;}- Conserver les commentaires
Off
Reduce a reduced-motion override
Entrée
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }Expected answer
@media (prefers-reduced-motion: reduce) {.spinner {animation: none;}}- Conserver les commentaires
Off
Paramètres
| Paramètre | Valeur par défaut | Entrée et choix |
|---|---|---|
| Conserver les commentaires | false | Activé ou désactivé |