You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: challenges/01-responsive-web-design/applied-visual-design.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2637,25 +2637,25 @@
2637
2637
"text":
2638
2638
"The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.",
2639
2639
"testString":
2640
-
"assert(code.match(/\\.heart:after\\s*?{\\s*?background-color:\\s*?pink;/gi), 'The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.');"
2640
+
"assert(code.match(/\\.heart:after\\s*?{\\s*?background-color\\s*?:\\s*?pink\\s*?;/gi), 'The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.');"
2641
2641
},
2642
2642
{
2643
2643
"text":
2644
2644
"The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.",
2645
2645
"testString":
2646
-
"assert(code.match(/border-radius:\\s*?50%/gi).length == 2, 'The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.');"
2646
+
"assert(code.match(/border-radius\\s*?:\\s*?50%/gi).length == 2, 'The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.');"
2647
2647
},
2648
2648
{
2649
2649
"text":
2650
2650
"The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.",
2651
2651
"testString":
2652
-
"assert(code.match(/transform:\\s*?rotate\\(-45deg\\)/gi), 'The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.');"
2652
+
"assert(code.match(/transform\\s*?:\\s*?rotate\\(\\s*?-45deg\\s*?\\)/gi), 'The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.');"
2653
2653
},
2654
2654
{
2655
2655
"text":
2656
2656
"The <code>content</code> of the <code>heart:before</code> selector should be an empty string.",
2657
2657
"testString":
2658
-
"assert(code.match(/\\.heart:before\\s*?{\\s*?content:\\s*?(\"|')\\1;/gi), 'The <code>content</code> of the <code>heart:before</code> selector should be an empty string.');"
2658
+
"assert(code.match(/\\.heart:before\\s*?{\\s*?content\\s*?:\\s*?(\"|')\\1\\s*?;/gi), 'The <code>content</code> of the <code>heart:before</code> selector should be an empty string.');"
0 commit comments