description =>
"caniuse.",
keywords => [qw'html css browser feature'],
- stylesheet => [qw'light dark circus mono red'],
+ stylesheet => [qw'circus dark mono red'],
data => ['browser-support.inc.pl'],
});
}
:>
+<script>
+var classmatch = /\bopacity(\d+)/;
+Array.forEach(document.getElementsByTagName('TD'), function(val) {
+ var opacity;
+ if (opacity = classmatch.exec(val.className)) {
+ var c = document.defaultView.getComputedStyle(val, null).getPropertyValue('background-color');
+ var o = opacity[1] / 100;
+ val.style.backgroundColor = c.replace(/rgb\((.*)\)/, 'rgba($1, '+o+')');
+ val.style.textShadow = c+' 1px 1px 2px, ' + c+' -1px -1px 2px';
+ }
+});
+alert(t);
+</script>
<hr>
<div class="legend">