* @param {EvalContext} context * @param {CSSOutput} output
(context, output)
| 161 | * @param {CSSOutput} output |
| 162 | */ |
| 163 | genCSS(context, output) { |
| 164 | const value = this.value, rules = this.rules || this.declarations; |
| 165 | output.add(/** @type {string} */ (this.name), this.fileInfo(), this.getIndex()); |
| 166 | if (value) { |
| 167 | output.add(' '); |
| 168 | /** @type {Node} */ (value).genCSS(context, output); |
| 169 | } |
| 170 | if (this.simpleBlock) { |
| 171 | this.outputRuleset(context, output, /** @type {Node[]} */ (this.declarations)); |
| 172 | } else if (rules) { |
| 173 | this.outputRuleset(context, output, rules); |
| 174 | } else { |
| 175 | output.add(';'); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * @param {EvalContext} context |
no test coverage detected