Skip to content

Commit 40d5431

Browse files
committed
[llvm-cov][CoverageViewHTML] add style for selected line
Highlight the selected line. One major benefit is, if the page is relatively short, the line pointed by #Ln in URL may not be on top, and this highlight can help quickly locate the line.
1 parent fd726de commit 40d5431

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ tr:hover {
246246
tr:last-child {
247247
border-bottom: none;
248248
}
249+
tr:has(> td >a:target) > td.code > pre {
250+
background-color: #ffa;
251+
}
249252
)";
250253

251254
const char *EndHeader = "</head>";

0 commit comments

Comments
 (0)