Diagnostic CSS stylesheet that helps visually detect any potentially invalid, inaccessible or erroneous HTML markup.
DiagnostiCSS highlights the following problems:
- inline styles and event attributes
- invalid links
- empty or deprecated elements
- elements missing required attributes
Sponsored by Flatstack.
Add this line to your application's Gemfile:
gem 'diagnosticss', github: 'diagnosticss', group: :development
And run:
$ bundle install
Add 'diagnosticss' to your application's Gemfile as described above and then use DiagnostiCSS middleware in your application:
require 'diagnosticss'
class App < Sinatra::Base
use Diagnosticss::Middleware
# ...
end
Include a stylesheet link to the diagnostic css:
<link rel="stylesheet" href="//diagnosticss.github.io/css/diagnosticss.css" media="all">
Yep. This is it. Courtesy of @nicck, @kamilhism. Install it from Chrome Webstore.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Don't forget to run
rake compile
(see alsorake -T
) after making any changes to stylesheet - Create new Pull Request
- configuration? (ability to disable/enable some of inspections)