/* table headers */
th,
+tfoot td,
thead td {
border: 0;
background: transparent !important;
font-size: 70%;
text-transform: uppercase;
}
+tfoot .cat th {
+ border-top: 1px solid #888;
+}
/* digraphs map */
}
print '<td>' x 1;
say '</thead>';
-say '<tfoot>', $header, '</tfoot>';
+say '<tfoot>', $header;
+{
+ # prefix indicates browser family; count adjacent families
+ my (@families, %familycount);
+ for my $browser (@browsers) {
+ my $family = $caniuse->{agents}->{$browser}->{prefix};
+ push @families, $family unless $familycount{$family};
+ $familycount{$family} += @{ $versions{$browser} };
+ }
+
+ print "\n", '<tr class="cat">';
+ print '<td>' x 3;
+ printf '<th colspan="%d">%s', $familycount{$_}, $_ for @families;
+ print '<td>';
+}
+say '</tfoot>';
sub featurescore {
# relative amount of support for given feature