3 namespace Sabberworm\CSS\CSSList
;
5 use Sabberworm\CSS\Property\AtRule
;
8 * A BlockList constructed by an unknown @-rule. @media rules are rendered into AtRuleBlockList objects.
10 class AtRuleBlockList
extends CSSBlockList
implements AtRule
{
15 public function __construct($sType, $sArgs = '', $iLineNo = 0) {
16 parent
::__construct($iLineNo);
17 $this->sType
= $sType;
18 $this->sArgs
= $sArgs;
21 public function atRuleName() {
25 public function atRuleArgs() {
29 public function __toString() {
30 return $this->render(new \Sabberworm\CSS\
OutputFormat());
33 public function render(\Sabberworm\CSS\OutputFormat
$oOutputFormat) {
34 $sArgs = $this->sArgs
;
36 $sArgs = ' ' . $sArgs;
38 $sResult = "@{$this->sType}$sArgs{$oOutputFormat->spaceBeforeOpeningBrace()}{";
39 $sResult .= parent
::render($oOutputFormat);
44 public function isRootList() {