Class: Dommy::Internal::CSS::Parser::MediaRule
- Inherits:
-
Struct
- Object
- Struct
- Dommy::Internal::CSS::Parser::MediaRule
- Defined in:
- lib/dommy/internal/css/parser.rb
Overview
Grouping at-rules (CSS conditional rules): their block contributes its rules to the cascade only when the rule is "active" (RuleIndex decides — @media query matches, @supports condition holds, @layer always). The block is flattened in source order; @layer ordering and @supports/@media precedence beyond source order are out of scope.
Instance Attribute Summary collapse
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition
32 33 34 |
# File 'lib/dommy/internal/css/parser.rb', line 32 def condition @condition end |
#rules ⇒ Object
Returns the value of attribute rules
32 33 34 |
# File 'lib/dommy/internal/css/parser.rb', line 32 def rules @rules end |
Instance Method Details
#grouping? ⇒ Boolean
33 |
# File 'lib/dommy/internal/css/parser.rb', line 33 def grouping? = true |