0
0
SASSmarkup~20 mins

Source maps for debugging in SASS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Source Map Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main purpose of source maps in Sass debugging?
Source maps help developers by:
ACompressing CSS files to reduce file size
BAutomatically fixing syntax errors in Sass files
CLinking the compiled CSS back to the original Sass files for easier debugging
DConverting Sass variables into JavaScript variables
Attempts:
2 left
💡 Hint
Think about how you find the original code when debugging compiled files.
📝 Syntax
intermediate
2:00remaining
Which Sass command correctly generates a source map when compiling?
Choose the command that compiles Sass to CSS with source maps enabled.
Asass --no-source-map input.scss output.css
Bsass --source-map input.scss output.css
Csass --map-source input.scss output.css
Dsass --generate-map input.scss output.css
Attempts:
2 left
💡 Hint
Look for the official flag that enables source maps.
rendering
advanced
2: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.
ADevTools will show only the compiled CSS file and line number
BDevTools will automatically generate source maps on the fly
CDevTools will show the original Sass file and line number for styles
DDevTools will show an error message and not display styles
Attempts:
2 left
💡 Hint
Think about what the browser knows without extra mapping information.
selector
advanced
2:00remaining
Which CSS selector in DevTools corresponds to this Sass code with source maps enabled?
Given this Sass snippet:
$color: blue;
.button {
  color: $color;
}

What selector will DevTools highlight when inspecting the button style?
A.btn
B#button
Cbutton
D.button
Attempts:
2 left
💡 Hint
Look at the class name used in the Sass code.
accessibility
expert
3:00remaining
How do source maps improve accessibility during Sass debugging?
Choose the best explanation of how source maps help developers ensure accessible styles.
AThey allow developers to quickly find and fix style issues affecting keyboard navigation and screen readers by linking CSS to Sass source
BThey automatically add ARIA attributes to HTML elements
CThey convert Sass variables into accessible color codes
DThey disable styles that reduce accessibility
Attempts:
2 left
💡 Hint
Think about how debugging original code helps fix accessibility problems.