Fork me on GitHub

debugCSS : (X)HTML debugging tool built with CSS

Summary

debugCSS is meant to be loaded on an existing page to highlight potentially broken, malformed or legacy (X)HTML.

Not all "errors" are created equally, so they are color coded to highlight severity. Green is "probably not a big problem", yellow is "worth looking at" and red is "you really should fix this."

Install

Click and drag the link below to your bookmark toolbar to install - or right click "Bookmark This Link".

debugCSS

Get the source code on GitHub : imbrianj/debugCSS

Table Playground

  • table[summary]

    Table Caption
    I'matable
    hastablesummary
    pleasetestme.
  • table:not([caption])

    I'matable
    notablecaption
    pleasetestme.
  • table > tr

    Note: this test may always pass as most browsers seem to automatically insert a tbody.

    Table Caption
    notablebody
    pleasetestme.
  • table th:not([scope])

    Table Caption
    I'matable
    notrscope
    pleasetestme.
  • table thead td

    Table Caption
    I'matable
    tdinthead
    pleasetestme.
  • table > colgroup ~ caption

    Caption after colgroup
    captionaftercolgroup
    pleasetestme.
  • table > thead ~ colgroup

    Table Caption
    I'matable
    colgroupafterthead
    pleasetestme.
  • table > tfoot ~ colgroup

    Table Caption
    I'matable
    colgroupaftertfoot
    pleasetestme.
  • table > tbody ~ colgroup

    Table Caption
    colgroupaftertbody
    pleasetestme.
  • table > thead ~ caption

    I'matable
    My table caption
    captionafterthead
    pleasetestme.
  • table > tfoot ~ caption

    My table caption
    captionaftertfoot
    pleasetestme.
  • table > tbody ~ caption

    I'matable
    captionaftertbody
    pleasetestme.
    My table caption
  • table > tfoot ~ thead

    Table Caption
    I'matable
    theadaftertfoot
    pleasetestme.
  • table > tbody ~ tfoot

    Table Caption
    I'matable
    tfootaftertbody
    pleasetestme.
    tfootshould come beforetbody
  • table > tbody ~ thead

    Table Caption
    theadaftertbody
    pleasetestme.
    theadshould come beforetbody
  • table > tbody:first-child

    I'matable
    notheadtfoot
    pleasetestme.
  • table > tr:first-child:last-child

    Only onetrin a table
  • table > tbody > tr:first-child:last-child

    I'matable
    Only onetrin a tbody
  • table > *:not(thead):not(tfoot):not(tbody):not(tr):not(colgroup):not(caption)

    Note: this test may always pass as most browsers seem to move the non-valid tags outside the table element.

    This header doesn't belong here
    Table Caption
    I'matable
    non-valid tagas childof table
    pleasetestme.
  • colgroup *:not(col)

    This doesn't belong here

    Table Caption
    I'matable
    colgroupwithinvalid
    pleasetestme.
  • table[align]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.
  • table[bgcolor]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.
  • table[border]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.
  • table[cellpadding]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.
  • table[cellspacing]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.
  • table[width]

    Table Caption
    I'matable
    withinlinestyles
    pleasetestme.