Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1556)

Unified Diff: Source/devtools/front_end/audits/auditsPanel.css

Issue 721133003: DevTools: CssChecker: avoid selector crafting in AuditsPanel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/audits/AuditResultView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/audits/auditsPanel.css
diff --git a/Source/devtools/front_end/audits/auditsPanel.css b/Source/devtools/front_end/audits/auditsPanel.css
index bfb6d1f3350b5a8712d2addbdccb03cb8e642b4d..449ec4f2f9ff1866263b7e0265d70902f9cb88d8 100644
--- a/Source/devtools/front_end/audits/auditsPanel.css
+++ b/Source/devtools/front_end/audits/auditsPanel.css
@@ -121,9 +121,7 @@
display: block;
}
-.audit-result-view .severity-severe,
-.audit-result-view .severity-warning,
-.audit-result-view .severity-info {
+.audit-result-view .severity {
background-image: url(Images/statusbarButtonGlyphs.png);
background-size: 320px 144px;
display: inline-block;
@@ -136,22 +134,20 @@
}
@media (-webkit-min-device-pixel-ratio: 1.5) {
-.audit-result-view .severity-severe,
-.audit-result-view .severity-warning,
-.audit-result-view .severity-info {
+.audit-result-view .severity {
background-image: url(Images/statusbarButtonGlyphs_2x.png);
}
} /* media */
-.audit-result-view .severity-severe {
+.audit-result-view .severity.severe {
background-position: -224px -96px;
}
-.audit-result-view .severity-warning {
+.audit-result-view .severity.warning {
background-position: -246px -96px;
}
-.audit-result-view .severity-info {
+.audit-result-view .severity.info {
background-position: -235px -96px;
}
« no previous file with comments | « Source/devtools/front_end/audits/AuditResultView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698