From 4d1db7993584a534bf0e68a5d496a10268e969a6 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Wed, 1 Jul 2015 15:16:44 +0100 Subject: [PATCH] solution to issue #1173 this solution may also be needed for some of the other css-based challenges --- challenges/basic-html5-and-css.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenges/basic-html5-and-css.json b/challenges/basic-html5-and-css.json index 61b29ed4d5..d18ace104b 100644 --- a/challenges/basic-html5-and-css.json +++ b/challenges/basic-html5-and-css.json @@ -492,7 +492,8 @@ ], "tests": [ "assert($('h2').css('color') === 'rgb(255, 0, 0)', 'Your h2 element should be red.')", - "assert($('h2').hasClass('red-text'), 'Your h2 element should have the class \"red-text\".')" + "assert($('h2').hasClass('red-text'), 'Your h2 element should have the class \"red-text\".')", + "assert($('h2').attr('style') == undefined, 'Please make sure there is no inline style = in you h2 and change the color by using the css class red-text ')" ], "challengeSeed": [ "