Thread: ADE css
View Single Post
Old 09-04-2014, 03:29 AM   #11
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by odedta View Post
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 {
                
displaynone;
            }
        </
style>
    </
head>
    <
body>
        <
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.
dgatwood is offline   Reply With Quote