You are here

bad.css in Coder 8.2

#forum .description{
  color: #EFEFEF; /* Colors should be lower case. Blank lines in class definitions are not allowed. */
  
  font-size:0.9em; /* There should be a space after the colon. */
    margin: 0.5em; /* Indentation error. */
  background: ; /* Empty style definitions are not allowed. */
  font-weight normal; /* Missing colon. */
  font-family: helvetica, sans-serif /* Mising semicolon. */
  padding-left: 2em ; /* Space before semicolon. */
}

.testselector {display: table; border: none;}

/* Blank lines between selectors are not allowed. */
#forum td.posts,

#forum td.pager {
}

/* Empty definitions are not allowed. */
.book-navigation .page-previous {
}

/* Missing colon in style definition */
.selector {

  foobar;
}

/* Multiple selectors should be on separate lines. */
#forum td.posts, #forum td.pager {
  font-size: 0.9em;
}

/* Selectors must be on a single line. */
.book-navigation
.page-previous {
  font-size: 0.9em;
}

File

coder_sniffer/Drupal/Test/bad/bad.css
View source
  1. #forum .description{
  2. color: #EFEFEF; /* Colors should be lower case. Blank lines in class definitions are not allowed. */
  3. font-size:0.9em; /* There should be a space after the colon. */
  4. margin: 0.5em; /* Indentation error. */
  5. background: ; /* Empty style definitions are not allowed. */
  6. font-weight normal; /* Missing colon. */
  7. font-family: helvetica, sans-serif /* Mising semicolon. */
  8. padding-left: 2em ; /* Space before semicolon. */
  9. }
  10. .testselector {display: table; border: none;}
  11. /* Blank lines between selectors are not allowed. */
  12. #forum td.posts,
  13. #forum td.pager {
  14. }
  15. /* Empty definitions are not allowed. */
  16. .book-navigation .page-previous {
  17. }
  18. /* Missing colon in style definition */
  19. .selector {
  20. foobar;
  21. }
  22. /* Multiple selectors should be on separate lines. */
  23. #forum td.posts, #forum td.pager {
  24. font-size: 0.9em;
  25. }
  26. /* Selectors must be on a single line. */
  27. .book-navigation
  28. .page-previous {
  29. font-size: 0.9em;
  30. }