I want my <style></style> Tags! Someone please add this, I have cool and unusual things to do with them.

Note: after discussion in the chatterbox, tye's reasoning for deliberately disallowing <style> tags is that you could use them to mess up the display of the page.

Replies are listed 'Best First'.
Re: Why are STYLE tags not allowed in posts?
by PodMaster (Abbot) on Aug 13, 2004 at 06:19 UTC
    I am against the idea
    • because we have themes, and those who choose to use color often employ it wrongly
    • because perlmonks is about content, not color
    • because style can load images
    • because style can critically alter layout
    • because the only way to check the forementioned abuses is to filter css as strictly as we filter html, so most of the "cool and unusual" things you just won't be able to do anymore
    • because it will undoubtedly increase the load on editors
    • because we should keep things simple
    • because you can set style for yourself, and that should be enough
    Yeah, I know you're suprised :)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

•Re: Why are STYLE tags not allowed in posts?
by merlyn (Sage) on Aug 13, 2004 at 06:12 UTC
Re: Why are STYLE tags not allowed in posts?
by bart (Canon) on Aug 13, 2004 at 06:24 UTC
    I'd rather have more official CSS classes. People can define their display any way they choose, with a default offered by the site (which may be very subtle). A special class for quotes from the previous posts, for example, or quotes from external docs.

    You could have a special class for spoilers, where foreground and background are the same color. OTOH, behaviour on non-CSS compliant browsers is iffy. Perhaps you do need a <spoiler></spoiler> tag after all.

Re: Why are STYLE tags not allowed in posts?
by synistar (Pilgrim) on Aug 13, 2004 at 17:43 UTC

    Allowing embedded style tags enables some cross-site scripting "attacks". For example loading images from another site to collect information from all browsers who view the page or loading unwanted ads into the page.

      Another often-overlooked "backdoor" to loading data from third-party servers is the @import directive to pull in an external stylesheet.

      Makeshifts last the longest.