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
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -88,9 +88,16 @@ There are a few convenience methods on Document to ease finding, manipulating an
88
88
*`getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are.
89
89
*`getAllValues()` – finds all `Value` objects inside `Rule`s.
90
90
91
-
### Use cases
91
+
##To-Do
92
92
93
-
#### Use `Parser` to prepend an id to all selectors
93
+
* More convenience methods [like `selectorsWithElement($sId/Class/TagName)`, `removeSelector($oSelector)`, `attributesOfType($sType)`, `removeAttributesOfType($sType)`]
94
+
* Options for output (compact, verbose, etc.)
95
+
* Real multibyte support. Currently only multibyte charsets whose first 255 code points take up only one byte and are identical with ASCII are supported (yes, UTF-8 fits this description).
96
+
* Named color support (using `Color` instead of an anonymous string literal)
97
+
98
+
## Use cases
99
+
100
+
### Use `Parser` to prepend an id to all selectors
94
101
95
102
$sMyId = "#my_id";
96
103
$oParser = new Sabberworm\CSS\Parser($sText);
@@ -102,7 +109,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
102
109
}
103
110
}
104
111
105
-
####Shrink all absolute sizes to half
112
+
### Shrink all absolute sizes to half
106
113
107
114
$oParser = new Sabberworm\CSS\Parser($sText);
108
115
$oCss = $oParser->parse();
@@ -112,7 +119,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
112
119
}
113
120
}
114
121
115
-
####Remove unwanted rules
122
+
### Remove unwanted rules
116
123
117
124
$oParser = new Sabberworm\CSS\Parser($sText);
118
125
$oCss = $oParser->parse();
@@ -470,13 +477,6 @@ To output the entire CSS document into a variable, just use `->__toString()`:
470
477
471
478
#header {margin: 10px 2em 1cm 2%;font-family: Verdana,Helvetica,"Gill Sans",sans-serif;color: red !important;}
472
479
473
-
474
-
## To-Do
475
-
476
-
* More convenience methods [like `selectorsWithElement($sId/Class/TagName)`, `removeSelector($oSelector)`, `attributesOfType($sType)`, `removeAttributesOfType($sType)`]
477
-
* Options for output (compact, verbose, etc.)
478
-
* Named color support (using `Color` instead of an anonymous string literal)
479
-
480
480
## Contributors/Thanks to
481
481
482
482
*[ju1ius](https://github.com/ju1ius) for the specificity parsing code and the ability to expand/compact shorthand properties.
0 commit comments