Expected Result
I want to hide the content of data-count-green if the content is 0.
I have tried using the following
CSS
.myclass[data-count][content='0'] {
  display: none;
} 
HTML
<!DOCTYPE html>
<html>
  <head>
    <style>
      .myclass[data-count] {
        position: relative;
      }
      .myclass[data-count][content='0'] {
        display: none;
      } 
      .myclass[data-count]:after {
        position: absolute;
        content: attr(data-count);
      }
    </style>
  </head>
  <body>
    <div>
      <div>
        <i class='myclass' id="comment" data-count='0' </i>
      </div>
    </div>
  </body>
</html>
 
    