Skip to content

Better parsing of unknown at rule #53

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

Closed
wants to merge 3 commits into from
Closed

Better parsing of unknown at rule #53

wants to merge 3 commits into from

Conversation

slusarz
Copy link
Contributor

@slusarz slusarz commented Mar 19, 2013

This parses rules such as @-moz-document url-prefix() { ... }

slusarz added 3 commits March 18, 2013 22:55
This parses rules such as @-moz-document url-prefix() { ... }
Since AtRule needs to generically handle unknown @ rules, it should be a
list instead of a ruleset since the former can handle possible embedded
lists while the latter cannot.

For example, this is CSS from the jquerymobile project:

@-moz-document url-prefix() { .ui-select .ui-btn select { opacity: 0.0001; }}
@sabberworm
Copy link
Collaborator

Thanks for the patch but this does not really work so well. A CSSList completely independant from a RuleSet. Your patch adds support for @document and @supports (which are lists) but at the same time removes support for @font-face and @page (which are both rule sets).

sabberworm added a commit that referenced this pull request Mar 19, 2013
Unknown at-rules stil get to be `RuleSet`s but block rules like document/supports/region-style/font-feature-values
are now supported via the AtRuleBlockList class.

Also, all at rules now implement the Sabberworm\CSS\Property\AtRule interface.

MediaQuery has been removed as its functionality is included fully in the AtRuleBlockList class.

Closes #53 as fixed
sabberworm added a commit that referenced this pull request Mar 19, 2013
Unknown at-rules stil get to be `RuleSet`s but block rules like document/supports/region-style/font-feature-values
are now supported via the AtRuleBlockList class.

Also, all at rules now implement the Sabberworm\CSS\Property\AtRule interface.

MediaQuery has been removed as its functionality is included fully in the AtRuleBlockList class.

Closes #53 as fixed
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