We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f8d37 commit 30b76feCopy full SHA for 30b76fe
lib/Sabberworm/CSS/Parser.php
@@ -110,6 +110,20 @@ private function parseAtRule() {
110
$this->consume(';');
111
$this->setCharset($sCharset->getString());
112
return new Charset($sCharset);
113
+ } else if ($sIdentifier === 'namespace') {
114
+ $this->consumeWhiteSpace();
115
+
116
+ if ($this->comes('"')) {
117
+ $prefix = "";
118
+ $namespace = $this->parseStringValue()->getString();
119
120
+ }else{
121
+ $prefix = $this->parseIdentifier(false);
122
123
124
+ }
125
+ $this->consume(';');
126
+ return new CssNamespace($namespace, $prefix);
127
} else {
128
//Unknown other at rule (font-face or such)
129
$this->consume('{');
0 commit comments