From 0037f28f07364d6a8ba015ad787e7a320b1aa9fe Mon Sep 17 00:00:00 2001 From: Ben Rohlfs Date: Thu, 18 Apr 2019 11:53:21 +0200 Subject: [PATCH] Make the trailing-whitespace CSS rule more specific Bug: Issue 10710 Change-Id: I49a8029bc4bf48bcbfc743e72d2dc799f9e8691b --- polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html index 4ccdf9671d..61e8603ed0 100644 --- a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html +++ b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html @@ -184,7 +184,12 @@ limitations under the License. /* >> character */ content: '\00BB'; } - .trailing-whitespace { + /* Is defined after other background-colors, such that this + rule wins in case of same specificity. */ + .trailing-whitespace, + .content .trailing-whitespace, + .trailing-whitespace .intraline, + .content .trailing-whitespace .intraline { border-radius: .4em; background-color: var(--diff-trailing-whitespace-indicator); }