Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can a css line contain multiple colons?

Tags:

css

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.

like image 545
Ryan Saxe Avatar asked Feb 13 '26 15:02

Ryan Saxe


1 Answers

Yes.

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");
like image 179
Gray Avatar answered Feb 17 '26 23:02

Gray



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!