Skip to content

Releases: mehdiRma10/php-css-parser

3.0.0: Update README

03 Oct 19:42
Compare
Choose a tag to compare
• Add instructions for strict parsing
• Update example output

2.0.0: Allow multiple rules of the same name per RuleSet

28 Sep 18:27
Compare
Choose a tag to compare
This allows for constructs like these

	* {
		color: red;
		color: rgba(255, 0, 0, 0.9);
		width: 250%;
		width: -moz-device-width; //I don’t think there is a vendor-property like this but you get the point.
		height: 3px !important;
		height: 9px;
	}

Closes #30 (for its most relevant change).

The API had to be changed to accommodate this feature. RuleSet’s `getRules` method now returns indexed arrays. To get the old behaviour, use `getRulesAssoc`.
`removeRule` changed as well but only for the case of passing a Rule instance directly. To get the old behaviour back in case you wanted it, use `removeRule($oRuleInstance->getRule())`.

first realease

28 Sep 16:52
Compare
Choose a tag to compare
Merge pull request #49 from shannmcnicholl/patch-1

Fix KeyFrame reference in Parser.php