Giter Site home page Giter Site logo

a11y-tests.css's Introduction

a11y-tests.css

This CSS file is primarily intended for testing the accessibility of a page in different scenarios. If you're looking for extensive debugging functionality, I'd recommend you check out a11y.css.

Demo
CodePen

How it works

Add a11y-tests.css to your site or copy (part of) the declarations and add them to your existing CSS.

You can test your page by adding a class or multiple classes to the <html> element.

Tests

No color .a11y-tests-grayscale

Test if you rely on color alone for conveying information.

<html class="a11y-tests-grayscale">
    <head></head>
    <body></body>
</html>

css-tricks home page in grayscale

Blurred vision .a11y-tests-blur

Simulate blurred vision.

<html class="a11y-tests-blur"></html>

MDN page about custom properties with blurred content

No mouse .a11y-tests-no-mouse

Force yourself to use your website without a mouse. This test sets cursor: none on all elements.

<html class="a11y-tests-no-mouse"></html>

Large text .a11y-tests-large-text

Increases the base font size. This test will only work if you're using rem in your font-size rules.

<html class="a11y-tests-large-text"></html>

matuzo.at with large text

Large text .a11y-tests-no-animation

Tests if your site works without transitions and animations.

<html class="a11y-tests-no-animation"></html>

a11y-tests.css's People

Contributors

matuzo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.