Skip to content

Instantly share code, notes, and snippets.

View shaunix's full-sized avatar

Shaun McCance shaunix

  • Red Hat
  • Cincinnati, OH
View GitHub Profile
// Copyright 2021 Shaun McCance
// This code is available under the MIT license
// https://opensource.org/licenses/MIT
/// = Accessible Color Utilities
This module provides utility functions for ensuring colors have contrast,
according to the W3C Web Content Accessiblity Guidelines.
https://www.w3.org/TR/2008/REC-WCAG20-20081211/
XSLT:
<xsl:variable name="linkid">
<xsl:call-template name="mal.link.linkid">
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
</xsl:variable>
Xlim:
$ linkid = mal.link.linkid @ node
os-release ID VERSION_ID XDG_CURRENT_DESKTOP
arch GNOME
debian GNOME
debian X-Cinnamon
debian 8 GNOME
endless 2.5.0
elementaryOS 0.3 Pantheon
fedora 21 GNOME
fedora 21 MATE

Keybase proof

I hereby claim:

  • I am shaunix on github.
  • I am shaunm (https://keybase.io/shaunm) on keybase.
  • I have a public key whose fingerprint is 4E03 CB89 E1C8 ED8E 0493 67AB E5D9 AD24 CC3A DF80

To claim this, I am signing this object: