From e48664af2afffa8c719c463b57651c85eefaaaed Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Wed, 2 Sep 2020 12:11:23 -0500 Subject: [PATCH] fix(learn): font size multiple headings exercise (#39511) * fix: use regex to capture font-size of h6 element, as minimum font-size of browsers may influence outcome * fix: add suggested changes Co-authored-by: Ashraf Nazar --- .../set-the-font-size-for-multiple-heading-elements.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/set-the-font-size-for-multiple-heading-elements.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/set-the-font-size-for-multiple-heading-elements.english.md index 4b7f9aa9039..c11159c55b7 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/set-the-font-size-for-multiple-heading-elements.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/set-the-font-size-for-multiple-heading-elements.english.md @@ -33,7 +33,7 @@ tests: - text: Your code should set the font-size property for the h5 tag to 21 pixels. testString: assert($('h5').css('font-size') == '21px'); - text: Your code should set the font-size property for the h6 tag to 14 pixels. - testString: assert($('h6').css('font-size') == '14px'); + testString: const regex = /h6\s*\{\s*font-size\s*:\s*14px\s*(;\s*\}|\})/i; assert.strictEqual(true, regex.test(code)); ```