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

Issue 11949043: Schema support for CSS3 transitions module (Closed)

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

Description

This adds schema support for "CSS Transitions" as speced at http://dev.w3.org/csswg/css-transitions OPEN QUESTION: How do we sanitize values of <single-transition-property>? Check that they are allowed in the CSS white-list? Should this be special cased? > 2. Transitions > Normally when the value of a CSS property changes, the rendered result > is instantly updated, with the affected elements immediately changing > from the old property value to the new property value. This section > describes a way to specify transitions using new CSS properties. > These properties are used to animate smoothly from the old state to > the new state over time. > For example, suppose that transitions of one second have been defined > on the ‘left’ and ‘background-color’ properties. The following diagram > illustrates the effect of updating those properties on an element, in > this case moving it to the right and changing the background from red > to blue. This assumes other transition parameters still have their > default values. ---- Submitted @ r5512

Patch Set 1 #

Patch Set 2 : Schema support for CSS3 transitions module #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -2 lines) Patch
M src/com/google/caja/lang/css/CssPropBit.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/com/google/caja/lang/css/CssPropertyPatterns.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/com/google/caja/lang/css/css-extensions-defs.json View 2 chunks +54 lines, -0 lines 0 comments Download
M src/com/google/caja/lang/css/css-extensions-whitelist.json View 1 chunk +2 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/sanitizecss.js View 1 3 chunks +12 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 1 chunk +35 lines, -0 lines 2 comments Download

Messages

Total messages: 7
MikeSamuel
12 years, 7 months ago (2013-07-26 22:11:57 UTC) #1
felix8a
lgtm. I'm ok with allowing <single-transition-property> to match /[\w\-]+/ I can't think of any particular ...
12 years, 7 months ago (2013-07-26 23:00:18 UTC) #2
MikeSamuel
On 2013/07/26 23:00:18, felix8a wrote: > lgtm. > > I'm ok with allowing <single-transition-property> to ...
12 years, 7 months ago (2013-07-26 23:15:46 UTC) #3
MikeSamuel
This adds schema support for "CSS Transitions" as speced at http://dev.w3.org/csswg/css-transitions OPEN QUESTION: How do ...
12 years, 7 months ago (2013-07-26 23:16:01 UTC) #4
felix8a
https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugin/sanitizecss_test.js File tests/com/google/caja/plugin/sanitizecss_test.js (right): https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugin/sanitizecss_test.js#newcode579 tests/com/google/caja/plugin/sanitizecss_test.js:579: 'transition-property:opacity , , left;', // bogus elided eliding properties ...
12 years, 7 months ago (2013-07-26 23:35:27 UTC) #5
MikeSamuel
https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugin/sanitizecss_test.js File tests/com/google/caja/plugin/sanitizecss_test.js (right): https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugin/sanitizecss_test.js#newcode579 tests/com/google/caja/plugin/sanitizecss_test.js:579: 'transition-property:opacity , , left;', // bogus elided On 2013/07/26 ...
12 years, 7 months ago (2013-07-27 02:19:21 UTC) #6
felix8a
12 years, 7 months ago (2013-07-27 02:54:56 UTC) #7
On 2013/07/27 02:19:21, MikeSamuel wrote:
>
https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugi...
> File tests/com/google/caja/plugin/sanitizecss_test.js (right):
> 
>
https://codereview.appspot.com/11949043/diff/5001/tests/com/google/caja/plugi...
> tests/com/google/caja/plugin/sanitizecss_test.js:579:
> 'transition-property:opacity , , left;',  // bogus elided
> On 2013/07/26 23:35:27, felix8a wrote:
> > eliding properties makes the value invalid, there needs to be at least a
> > placeholder item. the spec doesn't define any allowed null value, the
keyword
> > 'none' is invalid in this context. but if we really want to filter invalid
> > props, we can use some value like 'invalid'.
> 
> We're doing token filtering now.  We could drop the property entirely, or have
a
> per-property substitution token, but that's a fairly significant change.

ok, lgtm. if the elision becomes a problem we can fix that later.
Sign in to reply to this message.

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