summaryrefslogtreecommitdiff
path: root/chromium/ui/webui/resources/css/i18n_process.css
blob: ce9ce6fe2432911da8bc98382b4f5c761cbd4fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2015 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

[i18n-content]::before,
[i18n-values*='.innerHTML:']::before {
  /* Insert a non-breaking space into nodes that have i18n content. */
  content: '\00a0';
}

[i18n-processed][i18n-content]::before,
[i18n-processed] [i18n-content]::before,
[i18n-processed][i18n-values*='.innerHTML:']::before,
[i18n-processed] [i18n-values*='.innerHTML:']::before {
  /* Undo the non-breaking space hack after i18n processing has run. */
  content: normal;
}