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 d736538 + 9c394e7 commit d0a2659Copy full SHA for d0a2659
exercises/05-Specificity/tests.js
@@ -43,8 +43,8 @@ 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") {
47
- orangeHoverSelector = cssArray[i].style.background;
+ if (cssArray[i].selectorText === "#thirditem" && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
+ orangeHoverSelector = cssArray[i].style.background || cssArray[i].style["background-color"];
48
}
49
50
0 commit comments