Solution Found...Sorry!

Tell us what’s happening:

I do not understand why this code does not pass. Can you help? Tests 50 and 51 do not pass… I have been looking, reading, and watching videos, but for some reason, I am not understanding.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>Book Inventory</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <h1>Book Inventory</h1>
  <table>
    <tr>
    <th>Title</th>
    <th>Author</th>
    <th>Category</th>
    <th>Status</th>
    <th><span>Rate</span></th>
    </tr>
    <tr class="read">
      <td>A Wrinkle In Time</td>
      <td>Madeleine L'Engle</td>
      <td>Fantasy</td>
      <td><span class="status">Read</span></td>
      <td><span class="rate one"><span></span><span></span><span></span></span></td>
      </tr>
    <tr class="in-progress">      
      <td>Cress</td>
      <td>Marissa Meyer</td>
      <td>Fantasy</td>
      <td><span class="status">In Progress</span></td>
      <td><span class="rate three"><span></span><span></span><span></span></span></td>
</tr>
    <tr class="read">      
      <td>Miss Peregrine's Home For Peculiar Children</td>
      <td>Ransom Riggs</td>
      <td>Fantasy</td>
      <td><span class="status">Read</span></td>
      <td><span class="rate three"><span></span><span></span><span></span></span></td>
</tr>
<tr class="to-read">      
      <td>Hollow City</td>
      <td>Ransom Riggs</td>
      <td>Fantasy</td>
      <td><span class="status">To Read</span></td>
      <td><span class="rate"><span></span><span></span><span></span></span></td>
</tr>

</body>

</html>
/* file: styles.css */
tr[class="read"] {
      background-image: linear-gradient(to top, rgb(151,255,151), rgb(205,255,205));
    }

tr[class="in-progress"] {
  background-image: linear-gradient(to top, gold, white);
}

tr[class="to-read"] {
  background-image: linear-gradient(to top, red, white)
}

span{
  display: inline-block;
}

tr[class="to-read"] span[class="status"] {
  border: 1px solid rgb(230,19,0);
  background-image: linear-gradient(to top, rgb(255,23,2), rgb(255,126,114));
  margin: 5px;
  border-radius: 10px;
  text-align: center;    
    }
tr[class="read"] span[class="status"] {
  border: 1px solid rgb(29,201,29);
  background-image: linear-gradient(to top, rgb(37,224,37), rgb(138,232,138));
  margin: 5px;
  border-radius: 10px;
  text-align: center;
  }
tr[class="in-progress"] span[class="status"] {
  border: 1px solid rgb(194,133,10);
  background-image: linear-gradient(to top, rgb(242,166,14), rgb(248,207,124));
  margin: 5px;
  border-radius: 10px;
  text-align: center;    
    }
span[class="status"], span[class^="rate"] {
  height: 80%;
  width: 80%;
  padding: 5px;
  }
span[class^="rate"] > span {
    border: 1px solid gray;
    border-radius: 10px;
    margin: 2px;
    height: 10px;
    width: 20%;
    background-color: whitesmoke;
    }
    span[class~="one"] > :nth-child(1) {
    background-image: linear-gradient(to top, rgb(255,214,7), rgb(255,227,90));
    } 
    span[class~="two"] > :nth-child(-n+2){
      background-image: linear-gradient(to top, rgb(255,214,7), rgb(255,227,90));
    } 
    span[class~="three"] > :nth-child(-n+3){
      background-image: linear-gradient(to top, rgb(255,214,7), rgb(255,227,90));  
    } 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Build a Book Inventory App - Build a Book Inventory App