4

When I load jQueryUI on a Windows XP machine using Firefox 3.6.3, I get a bunch of css errors:

Error in parsing value for 'filter' Lines 18, 76, 77.
Unknown property 'border-top-left-radius' Line 274.
Unknown property 'border-top-right-radius' Line 275.
unknown property 'zoom' Lines 300,306,336,345,385,408.

Q: Should I just ignore these errors?

3 Answers 3

5

The basic reason for these CSS errors is that every browser has its own set of CSS properties that jQuery UI makes use of. For example:

-moz-user-select is only available in Firefox and Mozilla-based browsers. Equivalent to this property, WebKit-based browsers (like Google Chrome and Safari) have -webkit-user-select.

jQuery UI makes use of these special CSS properties available in different browsers and this gracefully degrades to nothing if the browser doesn't support that particular property. jQuery UI makes pretty sure that all its widgets appear consistent across browsers. And that is the reason why its safe to avoid such errors without any visual artifacts being generated by them.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks themoondothsine! I read your profile and: I believe it!
2

Yes, you should ignore these.

There are attributes in there to support all browsers, not all necessarily valid CSS, but it works.

You can see a full list of current validation errors here (jQuery UI 1.8)

2 Comments

Nick, +1 for the link! I'm impressed with your profile. I'm going to accept 'themoondothshine' answer because I want to spread the love and encourage him.
@cf_PhillipSenn - Anytime a valid answer is accepted, so the next person that googles and finds this is helped seems right by me...and these are all valid, spread away :)
2

Yes. jQuery UI is using properties that are not consistent across browsers. Since there really isn't any "logic" in CSS, they have to list all possibilities for all browsers.

These errors are safe to ignore.

1 Comment

Thanks Matt. I bet Virginia is beautiful today.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.