Jump to content
Search Community

disable console for invalid CSS?

andytwoods test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi, 

 

I'm using the CSSPlugin.

 

is it possible to disable invalid CSS errors such as 

invalid -khtml-user-select tween value: none

I see this code in CSSPlugin.js

if (_gsScope.console) {
console.log(s);
}

I worry though if I interfere with console there, I'll break other stuff!

 

thanks,
Andy.

Link to comment
Share on other sites

I agree with Shaun, that looks like its more of a warning than an error. You can always either disable the CSS warnings and errors in the browser console. Or you You can always just add this before any code in your JS,

console.clear();

But again like Shaun advised console errors and logs are very important and are great for debugging. So its best you just disable the CSS warning and errors in the browser console options for the CSS tab.

 

The -khtml- prefix is for older versions of Safari.. i.e Safari 2 to be exact.. So it doesnt hurt to have it there :)

  • Like 1
Link to comment
Share on other sites

Cheers for the points :)

 

Actually wanted to hide them so that I get to see other messages whilst developing. I have to scroll to get past those messages.

 

My interim solution is just to remove the old school css.

 

Was using 'set' to dynamically set css. No tweeting :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...