Skip to content

Commit 6b19608

Browse files
committed
delete comment
1 parent 736bb07 commit 6b19608

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

exercises/05-Specificity/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ li + #thirditem {
66
background: yellow;
77
}
88
/**** DO NOT EDIT ANYTHING ABOVE THIS LINE ****/
9-

exercises/05-Specificity/tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ describe("All the styles should be applied", function () {
4343
let cssArray = document.styleSheets[0].cssRules;
4444
let orangeHoverSelector = "";
4545
for (let i = 0; i < cssArray.length; i++) {
46-
// here is the problem, the only selector acepted is #thirditem so if you read li + #thirditem or li #thirditem or li + #thirditem is not acepted
4746
if (cssArray[i].selectorText.endsWith("#thirditem") && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
4847
orangeHoverSelector = cssArray[i].style.background || cssArray[i].style["background-color"];
4948
}

0 commit comments

Comments
 (0)