Skip to content

improved atimport() for other at-rules. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 1, 2012
Merged

improved atimport() for other at-rules. #1

merged 3 commits into from
Sep 1, 2012

Conversation

elegantcoder
Copy link
Contributor

I found that the parser cannot parse '@charset' rule.

so, modified atimport() for other at-rules and renamed "atimport" to "atruleSimple"

"simple" in "atruleSimple" means "not for block rule". If you have better idea, change it please.

and added test case for @charset.

@@ -234,7 +237,8 @@ module.exports = function(css){
function atrule() {
return keyframes()
|| media()
|| atimport();
|| atruleSimple('import')
|| atruleSimple('charset')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally I would rather just duplicate the above function and do atimport() || atcharset() etc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than that looks good thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree. i'm gonna change it.

tj added a commit that referenced this pull request Sep 1, 2012
improved atimport() for other at-rules.
@tj tj merged commit b82bcc3 into reworkcss:master Sep 1, 2012
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.

2 participants