We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baefe36 + 6b19608 commit 3685ec0Copy full SHA for 3685ec0
exercises/05-Specificity/tests.js
@@ -43,7 +43,7 @@ describe("All the styles should be applied", function () {
43
let cssArray = document.styleSheets[0].cssRules;
44
let orangeHoverSelector = "";
45
for (let i = 0; i < cssArray.length; i++) {
46
- if (cssArray[i].selectorText === "#thirditem" && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
+ if (cssArray[i].selectorText.endsWith("#thirditem") && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
47
orangeHoverSelector = cssArray[i].style.background || cssArray[i].style["background-color"];
48
}
49
0 commit comments