Skip to content

Workaround to fix semicolon syntax issue with keyframes#140

Open
arbylee wants to merge 1 commit into
madebysource:masterfrom
arbylee:master
Open

Workaround to fix semicolon syntax issue with keyframes#140
arbylee wants to merge 1 commit into
madebysource:masterfrom
arbylee:master

Conversation

@arbylee

@arbylee arbylee commented Dec 19, 2014

Copy link
Copy Markdown

Context: Lessc is adding a semicolon at the end of keyframes definition, which is
invalid css and causes issues on some devices. This also creates issues
if you use anything that parses your css such as grunt-cache-bust.

This adds a noop rule at the end of each keyframes definition, leading
to valid css

@arbylee

arbylee commented Dec 19, 2014

Copy link
Copy Markdown
Author

This should fix issues seen in #139 and #129. Not my favorite code, but I'm hoping to get a discussion going about other possible solutions. From what I could tell, lessc is the one adding that additional semicolon, which is actually invalid for a keyframes definition

Context: Lessc is adding a semicolon at the end of keyframes definition, which is
invalid css and causes issues on some devices.  This also creates issues
if you use anything that parses your css.

This adds a noop rule at the end of each keyframes definition, leading
to valid css
@OpakAlex

OpakAlex commented Apr 2, 2015

Copy link
Copy Markdown

@arbylee problem with @-webkit-keyframes too. you fix in @Keyframes... but not in @-webkit-keyframes

@rlecaro2

Copy link
Copy Markdown

I'm currently using your fix so my grunt compiles correctly. I suscribed to this thread so I can port my lesshat version when this is merged.

Thanks, @arbylee.

@ndesorden

Copy link
Copy Markdown

Thanks arbylee, your fix works perfectly.

The extra colon a the top of a css file was causing htc one "not understand" some following css rules!

@Remco75

Remco75 commented Oct 22, 2015

Copy link
Copy Markdown

nice one, will it be merged, or will there be another fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants