Quote:
Originally Posted by odedta
People here always say that ADE is problematic when it comes to CSS rules. If the CSS is not accepted by ADE it will not be loaded at all.
How about inline CSS rules? What happens if ADE sees a CSS rule inline in the html file that it doesn't like? Will the style simply not apply or the object won' t even show...?
|
I'm pretty sure it will just throw away the style declaration for that element. Of course, if that causes the element to have "visibility: none", then....
There's an easy way to find out.
PHP Code:
<html>
<head>
<style type="text/css">
.evil {
display: none;
}
</style>
</head>
<body>
<p class="evil" style="display: block !important; filter:alpha(opacity=100);">Is this visible?</p>
</body>
</html>
Incidentally, if memory serves, I've found it occasionally necessary to work around bugs in readers' handling of CSS by adding inline styles in SVG content. YMMV.