/g).length, 'Make sure your
div
element has a closing tag.')"
],
"challengeSeed": [
@@ -2473,6 +2473,9 @@
" .smaller-image {",
" width: 100px;",
" }",
+ " .gray-background {",
+ " background-color: gray",
+ " }",
"",
"",
"
CatPhotoApp
",
@@ -2481,7 +2484,7 @@
"",
"

",
"",
- "
",
+ "
",
"
Things cats love:
",
"
",
" - cat nip
",
@@ -2563,6 +2566,9 @@
" .smaller-image {",
" width: 100px;",
" }",
+ " .gray-background {",
+ " background-color: gray",
+ " }",
"",
"",
"CatPhotoApp
",
@@ -2571,7 +2577,7 @@
"",
"
",
"",
- "",
+ "
",
"
Things cats love:
",
"
",
" - cat nip
",
@@ -3327,7 +3333,7 @@
"assert($(\"h1\").hasClass(\"pink-text\"), 'Your h1
element should have the class \"pink-text\".')",
"assert($(\"h1\").hasClass(\"blue-text\"), 'Your h1
element should have the class \"blue-text\".')",
"assert($(\"h1\").attr(\"id\") === \"orange-text\", 'Your h1
element should have the id of \"orange-text\".')",
- "assert(editor.match(/ 0, 'Give your h1
element the inline style of \"color: white\".')",
+ "assert(editor.match(/ 0, 'Give your h1
element the inline style of \"color: white\".')",
"assert($(\"h1\").css(\"color\") === \"rgb(255, 255, 255)\", 'Your h1
element should be white.')"
],
"challengeSeed": [
@@ -3380,8 +3386,8 @@
"assert($(\"h1\").hasClass(\"pink-text\"), 'Your h1
element should have the class \"pink-text\".')",
"assert($(\"h1\").hasClass(\"blue-text\"), 'Your h1
element should have the class \"blue-text\".')",
"assert($(\"h1\").attr(\"id\") === \"orange-text\", 'Your h1
element should have the id of \"orange-text\".')",
- "assert(editor.match(/ 0, 'Your h1
element should have the inline style of \"color: white\".')",
- "assert(editor.match(/pink.*\\!important/gi) && editor.match(/pink.*\\!important;/gi).length > 0, 'Your \"pink-text\" class should have the !important keyword to override all other declarations.')",
+ "assert(editor.match(/ 0, 'Your h1
element should have the inline style of \"color: white\".')",
+ "assert(editor.match(/pink.*\\!important/gi) && editor.match(/pink.*\\!important;/gi).length > 0, 'Your \"pink-text\" class should have the !important
keyword to override all other declarations.')",
"assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'Your h1
element should be pink.')"
],
"challengeSeed": [
@@ -3430,7 +3436,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'Give your body
element the background-color of black.')",
- "assert(editor.match(/#000000/g) && editor.match(/#000000/g).length > 0, 'Use the hex code for the color black instead of the word \"black\". For example body: { color: #000000; }
.')"
+ "assert(editor.match(/#000000/g) && editor.match(/#000000/g).length > 0, 'Use the hex code for the color black instead of the word \"black\". For example body { color: #000000; }
.')"
],
"challengeSeed": [
""
],
@@ -3676,7 +3682,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(17, 17, 17)\", 'Give your body
element the background-color of a light gray.')",
- "assert(editor.match(/#111111/g) && editor.match(/#111111/g).length > 0, 'Use hex code to make a light gray. For example body: { color: #111111; }
.')"
+ "assert(editor.match(/#111111/g) && editor.match(/#111111/g).length > 0, 'Use hex code to make a light gray. For example body { color: #111111; }
.')"
],
"challengeSeed": [
"