Make the trailing-whitespace CSS rule more specific

Bug: Issue 10710
Change-Id: I49a8029bc4bf48bcbfc743e72d2dc799f9e8691b
(cherry picked from commit 0037f28f07)
This commit is contained in:
Ben Rohlfs 2019-04-18 11:53:21 +02:00
parent 6a393203a3
commit 7d78ef8e29

View File

@ -180,7 +180,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);
}