-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
THE SOFTWARE. | ||
*/ | ||
/* Version v0.1.8, Build time: 23-July-2012 09:55:09 */ | ||
/* Version v0.1.9, Build time: 23-July-2012 10:52:31 */ | ||
var parserlib = {}; | ||
(function(){ | ||
|
||
|
@@ -931,7 +931,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
THE SOFTWARE. | ||
*/ | ||
/* Version v0.1.8, Build time: 23-July-2012 09:55:09 */ | ||
/* Version v0.1.9, Build time: 23-July-2012 10:52:31 */ | ||
(function(){ | ||
var EventTarget = parserlib.util.EventTarget, | ||
TokenStreamBase = parserlib.util.TokenStreamBase, | ||
|
@@ -2999,9 +2999,15 @@ Parser.prototype = function(){ | |
var tokenStream = this._tokenStream, | ||
token, | ||
tt, | ||
name; | ||
name, | ||
prefix = ""; | ||
|
||
tokenStream.mustMatch(Tokens.KEYFRAMES_SYM); | ||
token = tokenStream.token(); | ||
if (/^@\-([^\-]+)\-/.test(token.value)) { | ||
prefix = RegExp.$1; | ||
} | ||
|
||
this._readWhitespace(); | ||
name = this._keyframe_name(); | ||
|
||
|
@@ -3011,8 +3017,9 @@ Parser.prototype = function(){ | |
this.fire({ | ||
type: "startkeyframes", | ||
name: name, | ||
line: name.line, | ||
col: name.col | ||
prefix: prefix, | ||
line: token.startLine, | ||
col: token.startCol | ||
}); | ||
|
||
this._readWhitespace(); | ||
|
@@ -3028,8 +3035,9 @@ Parser.prototype = function(){ | |
this.fire({ | ||
type: "endkeyframes", | ||
name: name, | ||
line: name.line, | ||
col: name.col | ||
prefix: prefix, | ||
line: token.startLine, | ||
col: token.startCol | ||
}); | ||
|
||
this._readWhitespace(); | ||
|
@@ -5556,7 +5564,7 @@ var Tokens = [ | |
//{ name: "ATKEYWORD"}, | ||
|
||
//CSS3 animations | ||
{ name: "KEYFRAMES_SYM", text: [ "@keyframes", "@-webkit-keyframes", "@-moz-keyframes", "@-ms-keyframes" ] }, | ||
{ name: "KEYFRAMES_SYM", text: [ "@keyframes", "@-webkit-keyframes", "@-moz-keyframes", "@-o-keyframes" ] }, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kristerkari
|
||
|
||
//important symbol | ||
{ name: "IMPORTANT_SYM"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change introduced a new error:
Error - Unknown @ rule: @-ms-keyframes
Looks like @-ms-keyframes was overwritten with @-o-keyframes here instead of being appended.