You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/03/30 19:32:46 UTC

[royale-compiler] branch develop updated: add all filter css functions

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2792a3b  add all filter css functions
2792a3b is described below

commit 2792a3b7d500aa601dd3eeb01360008a50199913
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Mar 30 21:32:41 2018 +0200

    add all filter css functions
---
 .../internal/driver/js/royale/JSCSSCompilationSession.java   | 12 +++++++++++-
 .../src/test/resources/royale/files/CSSTestSource.css        |  4 ++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
index e4007ef..0900975 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
@@ -46,7 +46,17 @@ public class JSCSSCompilationSession extends CSSCompilationSession
 	         "progid:DXImageTransform.Microsoft.gradient",
 	         "translateX",
 	         "translateY",
-	         "translate"	
+	         "translate",
+             "blur",
+             "brightness",
+             "contrast",
+             "drop-shadow",
+             "grayscale",
+             "hue-rotate",
+             "invert",
+             "opacity",
+             "saturate",
+             "sepia"
 	);
 	
     private ArrayList<String> requires;
diff --git a/compiler-jx/src/test/resources/royale/files/CSSTestSource.css b/compiler-jx/src/test/resources/royale/files/CSSTestSource.css
index b998e3e..f5c670e 100755
--- a/compiler-jx/src/test/resources/royale/files/CSSTestSource.css
+++ b/compiler-jx/src/test/resources/royale/files/CSSTestSource.css
@@ -151,3 +151,7 @@ input[type="range"] {
 .complex {
   background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 13' version='1.1' xmlns='http://www.w3.org/2000/svg'><g transform='translate(-763, -290)'><g transform='translate(760, 285)'><g><polygon fill='#ffffff' points='3 13 9 18 19 7 16 5 9 13 6 10'></polygon></g></g></g></svg>"), #b3dffa;
 }
+
+.blurfilter {
+  filter: blur(5px)
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
carlosrovira@apache.org.