From b1fdb0d09d0e9c355c97782821d87fdf02dc9799 Mon Sep 17 00:00:00 2001 From: Zeina Obeid Date: Wed, 17 Dec 2025 16:04:59 +0200 Subject: [PATCH] fix(curriculum): change type-checking question with new one (#64525) Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com> --- .../66ed9018f45ce3ece4053eb9.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/blocks/quiz-css-variables/66ed9018f45ce3ece4053eb9.md b/curriculum/challenges/english/blocks/quiz-css-variables/66ed9018f45ce3ece4053eb9.md index d1d566660ad..7c0b6750ae3 100644 --- a/curriculum/challenges/english/blocks/quiz-css-variables/66ed9018f45ce3ece4053eb9.md +++ b/curriculum/challenges/english/blocks/quiz-css-variables/66ed9018f45ce3ece4053eb9.md @@ -763,31 +763,31 @@ Only applies within `.dark-theme` scope. #### --text-- -Which part of this `@property` declaration enforces type checking? +In the following CSS, what happens if a user tries to assign an invalid value to `--padding` (for example, a color instead of a length)? ```css -@property --my-color { - syntax: ""; +@property --padding { + syntax: ""; + initial-value: 0px; inherits: false; - initial-value: red; } ``` #### --distractors-- -`initial-value` +The browser accepts the value but ignores it during layout. --- -`inherits` +The browser throws a runtime error. --- -`--my-color` +The browser converts the value to a valid length automatically. #### --answer-- -`syntax` +The browser falls back to the property's initial value. ### --question--