This is a migrated thread and some comments may be shown as answers.

RadEditor CSS Invalid

3 Answers 107 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David Moore
Top achievements
Rank 1
David Moore asked on 10 Nov 2009, 06:52 PM
I'm attempting to get one of my projects to css/xhtml validate and I'm running into a lot of problems with the radeditor control.  It's giving me ~50 css  errors/page.  Here's a quick subset:

870 .reTool span Property _display doesn't exist : inline
885 .reToolbar .reTool_text Property _display doesn't exist : inline
898 .reToolbar .reTool_text span Property _display doesn't exist : inline
921 * html .RadEditor .reSplitButton Property _display doesn't exist : inline-block


Is there any way to get this control to validate?



3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 11 Nov 2009, 11:46 AM
Hello David Moore,

We do not claim that our CSS is valid, just the HTML output.

As you are interested in the matter of CSS validation, I assume that you know enough about CSS browser support, vendor-proprietary CSS and hacks, and I believe that you understand why the code will not validate, at least until IE6 is being supported by our controls. Especially in the case of RadEditor, where we make really heavy use of CSS inheritance it is imposible to put things to work for IE6 (you know that IE6 has issues with composite classes in parents with a composite class, etc), and this is why I have used both the star and the underscore hacks. Also - IE still does not support CSS opacity, and we achieve transparency with the MS-proprietary "filter", which is non standard CSS as well. Unfortunately, CSS will be hard to validate as long as browsers support their own CSS properties, instead of standard CSS.

Kind regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David Moore
Top achievements
Rank 1
answered on 11 Nov 2009, 02:18 PM
I figured as much, just wasn't sure if you had separated them out in to conditional stylesheets or something.  Thanks for the reply.

~Dave
0
Martin
Telerik team
answered on 12 Nov 2009, 06:45 AM
Hi David Moore,

Conditional comments are a good idea, however in the case of RadControls this cannot be done - all of the controls follow a unified convention for styling - one base stylesheet and one skin stylesheet, and separating the valid and invalid CSS rules in more files will make things hard to maintain, and also - it will spoil that cascading in the CSS rules, which is of highest importance in CSS.

All the best,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
David Moore
Top achievements
Rank 1
Answers by
Martin
Telerik team
David Moore
Top achievements
Rank 1
Share this question
or