CSS-Coverage
view release on metacpan or search on metacpan
t/002-real.t view on Meta::CPAN
padding-bottom: 0.4em;
}
#talks .conference {
font-size: 0.7em;
}
#about ul {
list-style-type: none;
}
#about a {
font-weight: bold;
font-size: 1.3em;
}
#about li {
margin-bottom: 1em;
}
#projects ul {
list-style-type: none;
}
#projects li {
t/002-real.t view on Meta::CPAN
vertical-align: top;
text-align: center;
width: 228px;
height: 228px;
}
#projects li a {
text-decoration: none;
color: black;
}
#projects li .name {
font-weight: bold;
display: block;
}
#projects li img.icon {
height: 114px;
width: 114px;
border-radius: 20px;
}
#projects li img.icon {
t/003-comment.t view on Meta::CPAN
<html>
<body>
<p>Hello <a onclick='foo();'>world</a>!</p>
</body>
</html>
");
{
my $css = "
a {
font-weight: bold
}
a.clicked {
text-decoration: line-through;
}
button {
padding: 0;
}
t/003-comment.t view on Meta::CPAN
css => \$css,
documents => \@documents,
)->check;
is_deeply([$report->unmatched_selectors], ["a.clicked", "button"], "a.clicked didn't match");
}
{
my $css = "
a {
font-weight: bold
}
a.clicked {
/* coverage:ignore */
text-decoration: line-through;
}
button {
padding: 0;
}
t/003-comment.t view on Meta::CPAN
css => \$css,
documents => \@documents,
)->check;
is_deeply([$report->unmatched_selectors], ["button"], "a.clicked was ignored");
}
{
my $css = "
a {
font-weight: bold
}
/* coverage:ignore */
a.clicked {
text-decoration: line-through;
}
button {
padding: 0;
}
( run in 0.309 second using v1.01-cache-2.11-cpan-3989ada0592 )