I am writing a Python module that will be doing some css manipulations and modifications. As of my knowledge, the css template is:
selector{
property:value;
}
my question is, is there any instance where value contains a colon?
The reason for this is that I want to split the lines inside selectors by a colon and essentially grab the property and the value, but if the value has a colon in it, then the entire function will manipulate the css incorrectly.
If you specify a filter (IE) it contains a second colon.
Example:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fad59f', endColorstr='#fa9907')
Any CSS property that takes a url could easily contain http:
Example:
background-image: url("http://example.com/image.jpg");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With