Revision: 5640
Author:   [email protected]
Date:     Tue Nov 26 22:29:42 2013 UTC
Log:      add 'appearance' to the css whitelist (merge from trunk)
svn merge -c 5639 https://google-caja.googlecode.com/svn/trunk/

http://code.google.com/p/google-caja/source/detail?r=5640

Modified:
 /branches/es53
 /branches/es53/src/com/google/caja/lang/css/css3-defs.json
 /branches/es53/src/com/google/caja/lang/css/css3-whitelist.json

=======================================
--- /branches/es53/src/com/google/caja/lang/css/css3-defs.json Tue Sep 3 20:37:43 2013 UTC +++ /branches/es53/src/com/google/caja/lang/css/css3-defs.json Tue Nov 26 22:29:42 2013 UTC
@@ -88,6 +88,23 @@
       "source": 
"http://dev.w3.org/csswg/css-animations/#animation-timing-function";
     },

+    { "key": "appearance",
+      "signature": "none",
+      "initial": "none",
+      "appliesTo": "*",
+      "inherited": false,
+      "mediaGroups": ["visual"],
+      "source": 
"https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance";,
+      "comment": [
+        "This exists as -moz-appearance and -webkit-appearance.",
+        "It won't be standardized, and use is strongly discouraged.",
+        "There's a very large set of valid values: button, caret, etc.",
+        "But use in the wild is mostly just appearance:none.",
+        "So we're only allowing 'none' to keep the sanitizer small.",
+ "TODO(felix8a): css sanitizer needs a way to allow bare identifiers."
+      ]
+    },
+
     { "key": "azimuth",
"signature": "<angle> | [[ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",
       "default": "center",
=======================================
--- /branches/es53/src/com/google/caja/lang/css/css3-whitelist.json Tue Sep 3 20:37:43 2013 UTC +++ /branches/es53/src/com/google/caja/lang/css/css3-whitelist.json Tue Nov 26 22:29:42 2013 UTC
@@ -15,6 +15,7 @@
     "animation-name",
     "animation-play-state",
     "animation-timing-function",
+    "appearance",
     "azimuth",
     "backface-visibility",
     "background",

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to