Challenge - 5 Problems
Source Map Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is the main purpose of source maps in Sass debugging?
Source maps help developers by:
Attempts:
2 left
💡 Hint
Think about how you find the original code when debugging compiled files.
✗ Incorrect
Source maps connect the CSS you see in the browser back to the Sass source code, making it easier to find and fix issues.
📝 Syntax
intermediate2:00remaining
Which Sass command correctly generates a source map when compiling?
Choose the command that compiles Sass to CSS with source maps enabled.
Attempts:
2 left
💡 Hint
Look for the official flag that enables source maps.
✗ Incorrect
The correct flag to generate source maps is --source-map. Other options are invalid or do not exist.
❓ rendering
advanced2:00remaining
What will happen in the browser DevTools if source maps are missing for Sass compiled CSS?
Select the correct behavior when inspecting styles in the browser without source maps.
Attempts:
2 left
💡 Hint
Think about what the browser knows without extra mapping information.
✗ Incorrect
Without source maps, DevTools can only show the compiled CSS file and line numbers, not the original Sass source.
❓ selector
advanced2:00remaining
Which CSS selector in DevTools corresponds to this Sass code with source maps enabled?
Given this Sass snippet:
What selector will DevTools highlight when inspecting the button style?
$color: blue;
.button {
color: $color;
}What selector will DevTools highlight when inspecting the button style?
Attempts:
2 left
💡 Hint
Look at the class name used in the Sass code.
✗ Incorrect
The Sass code defines styles for the class .button, so DevTools will highlight .button selector.
❓ accessibility
expert3:00remaining
How do source maps improve accessibility during Sass debugging?
Choose the best explanation of how source maps help developers ensure accessible styles.
Attempts:
2 left
💡 Hint
Think about how debugging original code helps fix accessibility problems.
✗ Incorrect
Source maps let developers trace styles back to Sass source, making it easier to fix issues that impact accessibility like focus styles or color contrast.