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

Unified Diff: ui/webui/resources/css/i18n_process.css

Issue 1233883005: Fix i18nTemplate.process() for DocumentFragments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stronger typing Created 5 years, 5 months 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 | « chrome/test/data/webui/i18n_process_test.html ('k') | ui/webui/resources/js/i18n_template_no_process.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/css/i18n_process.css
diff --git a/ui/webui/resources/css/i18n_process.css b/ui/webui/resources/css/i18n_process.css
index b74527a08f2c9f34c6dc6e0b406070eaa531d537..ee92c6027896056053e89b8b7ee937d20b7dcee4 100644
--- a/ui/webui/resources/css/i18n_process.css
+++ b/ui/webui/resources/css/i18n_process.css
@@ -3,15 +3,21 @@
* found in the LICENSE file. */
[i18n-content]::before,
-[i18n-values*=".innerHTML:"]::before {
- /* Insert a non-breaking space into nodes that have i18n'd content. */
+[i18n-values*=".innerHTML:"]::before,
+::shadow [i18n-content]::before,
+::shadow [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. */
+[i18n-processed] [i18n-values*=".innerHTML:"]::before,
+::shadow [i18n-processed][i18n-content]::before,
+::shadow [i18n-processed] [i18n-content]::before,
+::shadow [i18n-processed][i18n-values*=".innerHTML:"]::before,
+::shadow [i18n-processed] [i18n-values*=".innerHTML:"]::before {
+ /* Undo the non-breaking space hack after i18n processing has run. */
content: normal;
}
« no previous file with comments | « chrome/test/data/webui/i18n_process_test.html ('k') | ui/webui/resources/js/i18n_template_no_process.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698