Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(35)

Issue 32143: Add support for IE-specific CSS Filters and Transforms. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 8 months ago by MikeSamuel
Modified:
17 years, 4 months ago
Reviewers:
Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add support to CSS Parser and schemas for IE filters. Also addresses these bugs: From http://code.google.com/p/google-caja/issues/detail?id=993 Caja's CSS parser does'nt tolerate CSS that is in common use or at least that browsers ignore. e.g ...{ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80); } From http://code.google.com/p/google-caja/issues/detail?id=738 div { filter:alpha(opacity=50)progid:DXImageTransform.Microsoft.Blur(strength=10); } Outputs the following error: ERROR index.html:3+33 - 34: Expected !important not : index.html:3: filter:alpha(opacity=50)progid:DXImageTransform.Microsoft.Blur(strength=10); Submitted @3241

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1571 lines, -49 lines) Patch
M src/com/google/caja/lang/css/css-extensions-defs.json View 2 chunks +18 lines, -2 lines 0 comments Download
M src/com/google/caja/parser/css/CssParser.java View 6 chunks +119 lines, -34 lines 2 comments Download
M src/com/google/caja/parser/css/CssPropertySignature.java View 6 chunks +107 lines, -4 lines 0 comments Download
M src/com/google/caja/parser/css/CssTree.java View 6 chunks +105 lines, -4 lines 2 comments Download
M src/com/google/caja/plugin/CssValidator.java View 4 chunks +47 lines, -3 lines 0 comments Download
M tests/com/google/caja/parser/css/CssParserTest.java View 4 chunks +63 lines, -0 lines 0 comments Download
M tests/com/google/caja/parser/css/CssPropertySignatureTest.java View 3 chunks +13 lines, -2 lines 0 comments Download
M tests/com/google/caja/parser/css/CssTreeTest.java View 1 chunk +5 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/css/cssparsergolden-filters.txt View 1 chunk +739 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/css/cssparserinput-filters.css View 1 chunk +168 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/css/cssrendergolden-filters.css View 1 chunk +145 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/CssValidatorTest.java View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 3
MikeSamuel
17 years, 8 months ago (2009-04-07 23:29:04 UTC) #1
Jasvir
LGTM http://codereview.appspot.com/32143/diff/1/11 File src/com/google/caja/parser/css/CssParser.java (right): http://codereview.appspot.com/32143/diff/1/11#newcode821 Line 821: // IE Filters use #RRGGBBAA style color ...
17 years, 7 months ago (2009-04-17 18:26:10 UTC) #2
MikeSamuel
17 years, 7 months ago (2009-04-17 23:32:29 UTC) #3
http://codereview.appspot.com/32143/diff/1/11
File src/com/google/caja/parser/css/CssParser.java (right):

http://codereview.appspot.com/32143/diff/1/11#newcode821
Line 821: // IE Filters use #RRGGBBAA style color literals which are different
from
On 2009/04/17 18:26:10, jasvir wrote:
> Please wrap at 80 chars

Done.

http://codereview.appspot.com/32143/diff/1/12
File src/com/google/caja/parser/css/CssTree.java (right):

http://codereview.appspot.com/32143/diff/1/12#newcode810
Line 810: "^#[a-fA-F0-9]{3,}");
On 2009/04/17 18:26:10, jasvir wrote:
> I think this can be more specific {3,8} rather than unbound. 

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b