Ignore browser specific CSS

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Ignore browser specific CSS

Postby CA Traveler » Thu Sep 01, 2011 10:35 am

Is there a way to ignore browser specific css? Something like cseignore.

I have two IE hacks, one shown below.

The "f\loat" property is not a recognized style property. Should this property be "float"?

f\loat: left;
CA Traveler
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 7
Joined: Tue Aug 30, 2011 5:05 pm

Re: Ignore browser specific CSS

Postby Albert Wiersch » Thu Sep 01, 2011 1:09 pm

CA Traveler wrote:Is there a way to ignore browser specific css? Something like cseignore.


No, but that's a good idea! I will make a note of it for a possible future addition.

CA Traveler wrote:I have two IE hacks, one shown below.

The "f\loat" property is not a recognized style property. Should this property be "float"?

f\loat: left;


The easiest way to ignore this is to right-click on the message (when displayed in CSE HTML Validator's editor and disable it using Message Options->Disable using Exact Text Match.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore browser specific CSS

Postby Albert Wiersch » Fri Sep 02, 2011 7:54 pm

I've added special CSS comments that can be used to ignore sections of CSS documents, but this new feature could use more testing. If you'd like to try a BETA build to test this, then please email me at support at htmlvalidator dot com.

From the documentation:
To ignore sections of CSS documents, surround the section in /*cseignore*/ ... /*/cseignore*/ comments. Note that the comments must be exact and are case sensitive. (New v10.9923)
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 2 guests