• Stars
    star
    188
  • Rank 205,563 (Top 5 %)
  • Language
    CSS
  • Created over 11 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Diagnostic.css is a stylesheet which allows the user to test for common errors in a page's markup

diagnostic.css

Diagnostic.css is a stylesheet which allows the user to test for common errors in a page's markup. Inspired by Eric Meyer's diagnostic CSS file, this one is intended to flesh out accessibility related issues on a page.

Philosophy

The goal of this stylesheet is to provide very quick, very accurate feedback. As a consequence, items that are too conservative and create "false positives" are likely to be eliminated from the sheet and won't be included in any merges.

How to use

If you're working with a site you own, add this (temporarily, of course) to your site to display the errors.

If you're checking work you don't have access to, use this as a user style.

Bookmarklet

Alternately, use the bookmarklet.js found in this repo. Create a bookmarklet in your browser and then click it when you're on a page you want to test.

User Script

NEW, as of 07-December 2013, there's a new file, diagnostic-css.user.js in this repo which can be used as a user script. This enables you to get the diagnostic CSS feedback without having to constantly activate the bookmarklet above. This is particularly useful for use case testing or user acceptance testing because you can simply activate this script and browse the screens you want to test.

If you have Greasemonkey installed on Firefox, open the diagnostic-css.user.js file with Firefox. This will install the script as a userscript. Download Greasemonkey at https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

Note, as it is set-up now, this userscript is "on" for all websites. To turn this on for only certain sites, such as those you own, modify the @include directive in the script file. Alternately, you can enable/ disable the script within greasemonkey itself.

Make it better

This is an open repo. Contribute to it, add to the documentation, submit an issue, etc.

Change Log

07-December 2013: Added user script.

28-September 2013: Fixed a bad negation selector for area elements without alt attributes.

06-September 2013: Totally revamped the stylesheet. Added new selectors. Added generated content to show error information.

13-September 2013: Merged request from AWK to change overly conservative rule.

OH, the irony

I realize that CSS-generated content is not content. I've even posted about it: http://www.karlgroves.com/2013/08/26/css-generated-content-is-not-content/

This is intended to be a quick way for developers to get immediate feedback without requiring a tool. If anyone wishes to expand, build upon, or collaborate on this in a more accessible way, please get in touch!

More Repositories

1

overlayfactsheet

HTML
136
star
2

a11y-lawsuits

Complete listing of accessibility related lawsuits and settlements
JavaScript
46
star
3

jquery-live-regions

jQuery plugin for managing WAI-ARIA Live Regions
JavaScript
27
star
4

everything-you-need-to-know-about-jsa11y-in-45-mins

Code used to support my presentation at the Intuit Front End Developers Summit
HTML
14
star
5

dontbeadick

Official repository for the Don't Be A Dick Code of Conduct
11
star
6

a11yDialog

Accessible jQueryUI Dialog
HTML
7
star
7

a11y-meetups

Accessibility Meetups across the world
7
star
8

axsdialog

Accessible vanila JS dialog
HTML
7
star
9

overlaysdontwork

A demonstration of why so-called "Overlays" claiming to fix accessibility are actually garbage
HTML
6
star
10

livechat

6
star
11

image-longdesc

Polymer component for displaying images with caption and supplying a longdesc link in the caption. Due to changes in browser support for web components and changes in Polymer since this was created, it probably does not work anymore.
JavaScript
4
star
12

a11y-conformance-statement-templates

A handful of HTML-based accessibility conformance statements, based on Section 508 and WCAG
HTML
4
star
13

overlayfalseclaims

HTML
2
star
14

webcomponents-csun15

JavaScript
2
star
15

jquery-toc

Table of Contents plugin
HTML
1
star
16

forms-workshop

CSS
1
star
17

day-one-theme

Extremely bare-bones WordPress theme starter
PHP
1
star
18

express-skeleton

JavaScript
1
star
19

image-caption

Polymer component for displaying images with caption. Due to changes in browser support for web components and changes in Polymer since this was created, it probably does not work anymore.
JavaScript
1
star
20

img-zoom-component

Polymer web component demo showing css zoom transition. Due to changes in browser support for web components and changes in Polymer since this was created, it probably does not work anymore.
JavaScript
1
star