Skip to content

Commit bc0d223

Browse files
committed
Removed initial rule values to prevent the addition of rules not specified in shorthand rule
1 parent 71f8d37 commit bc0d223

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/Sabberworm/CSS/RuleSet/DeclarationBlock.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,7 @@ public function expandFontShorthand() {
195195
return;
196196
$oRule = $aRules['font'];
197197
// reset properties to 'normal' per http://www.w3.org/TR/21/fonts.html#font-shorthand
198-
$aFontProperties = array(
199-
'font-style' => 'normal',
200-
'font-variant' => 'normal',
201-
'font-weight' => 'normal',
202-
'font-size' => 'normal',
203-
'line-height' => 'normal'
204-
);
198+
$aFontProperties = array();
205199
$mRuleValue = $oRule->getValue();
206200
$aValues = array();
207201
if (!$mRuleValue instanceof RuleValueList) {

0 commit comments

Comments
 (0)