You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The resulting data structure consists mainly of five basic types: `CSSList`, `CS
30
30
31
31
#### CSSList
32
32
33
-
`CSSList` represents a generic CSS container, most likely containing selectors but it may also contain at-rules, charset declarations, etc. `CSSList` has the following concrete subtypes:
33
+
`CSSList` represents a generic CSS container, most likely containing declaration blocks (rule sets with a selector) but it may also contain at-rules, charset declarations, etc. `CSSList` has the following concrete subtypes:
34
34
35
35
*`CSSDocument` – representing the root of a CSS file.
36
36
*`CSSMediaQuery` – represents a subsection of a CSSList that only applies to a output device matching the contained media query.
@@ -67,7 +67,7 @@ If you want to manipulate a `CSSRuleSet`, use the methods `addRule(CSSRule $oRul
67
67
68
68
There are a few convenience methods on CSSDocument to ease finding, manipulating and deleting rules:
69
69
70
-
*`getAllDeclarationBlocks()` – does what it says; no matter how deeply nested your selectors are aliased as `getAllSelectors()`.
70
+
*`getAllDeclarationBlocks()` – does what it says; no matter how deeply nested your selectors are. Aliased as `getAllSelectors()`.
71
71
*`getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are.
72
72
*`getAllValues()` – finds all `CSSValue` objects inside `CSSRule`s.
73
73
@@ -355,12 +355,13 @@ To output the entire CSS document into a variable, just use `->__toString()`:
355
355
* Named color support (using `CSSColor` instead of an anonymous string literal)
356
356
* Test suite
357
357
* Adopt lenient parsing rules
358
+
* Support for @-rules (other than @media) that are CSSLists (to support @-webkit-keyframes)
358
359
359
360
## Contributors/Thanks to
360
361
361
362
*[ju1ius](https://github.com/ju1ius) for the specificity parsing code and the ability to expand/compact shorthand properties.
362
363
*[GaryJones](https://github.com/GaryJones) for lots of input and [http://css-specificity.info/](http://css-specificity.info/).
363
-
*[docteurklein](https://github.com/docteurklein) for output formatting and CSSList->remove() inspiration.
364
+
*[docteurklein](https://github.com/docteurklein) for output formatting and `CSSList->remove()` inspiration.
0 commit comments