From 3e797480edde91268bf680f06751a86ab5634557 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Mon, 3 Jan 2022 07:16:37 -0500 Subject: [PATCH] fix: allow usage of gray in css (#44633) --- .../learn-basic-css-by-building-a-cafe-menu/step-081.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-081.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-081.md index f8a7a9af5e..3e389ec754 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-081.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-081.md @@ -23,7 +23,7 @@ assert(hasAVisited); You should set the `color` property to `grey`. ```js -const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.color === 'grey'); +const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => (x.style.color === 'grey' || x.style.color === 'gray')); assert(hasColor); ``` @@ -31,7 +31,7 @@ Your `a:visited` should have a `color` of `grey`. ```js const aVisitedColor = new __helpers.CSSHelp(document).getStyle('a:visited')?.getPropertyValue('color'); -assert(aVisitedColor === 'grey'); +assert(aVisitedColor === 'grey' || aVisitedColor === 'gray'); ``` # --seed--