Posted by Jim Higson on 10/22/16 11:40
Toby Inkster wrote:
> Julien CROUZET wrote:
>
>> _You cannot have both._ [proprietary CSS and valid CSS]
>
> Actually, you probably can.
>
> There are numerous documented bugs in browser CSS parsers. By tripping the
> right ones, you should be able to trick the browsers into reading some
> proprietary CSS properties which are really within a CSS comment.
>
> e.g. IE 5.x for Mac will apply this:
>
> /* \*/ /* div{property:value;} */
>
> though a standards-compliant browser should treat it as a comment (as
> indeed all other CSS rendering engines seem to) and the CSS validator
> should pass it OK.
Since standards compliant browsers ignore rules they doesn't understand
anyway, this seems like validation for it's own sake. And a nightmare to
maintain.
> Not that I'd recommend that in most circumstances.
I agree :)
Navigation:
[Reply to this message]
|