aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/css/curCSS.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index 6d8b6a2d3..15d624bbb 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -16,6 +16,12 @@ function curCSS( elem, name, computed ) {
// trim whitespace for custom property (issue gh-4926)
if ( isCustomProp ) {
+
+ // rtrim treats U+000D CARRIAGE RETURN and U+000C FORM FEED
+ // as whitespace while CSS does not, but this is not a problem
+ // because CSS preprocessing replaces them with U+000A LINE FEED
+ // (which *is* CSS whitespace)
+ // https://www.w3.org/TR/css-syntax-3/#input-preprocessing
ret = ret.replace( rtrim, "$1" );
}