Cloaking Stylesheet

  • cssThere is heated debate in WordPress mailing list ( [wp-hackers] WP Theme Directory Submission Restrictions ). Its very petty issue regarding “link and import CSS” and new guideline for theme submission.

    Frankly, I don’t have much opinion regarding this matters as Its kind of trivial making point with a programmer.

    Trying to sort thing out I tested few methods on linking and embedding stylesheet. Below is few possible way to links a stylesheet in XHTML document.

    1. Internal styles

      <style type="text/css">
      ...
      </style>
    2. Internal styles using @import

      <style type="text/css">
       @import url('style.css')
      </style>
    3. External Link

      <link rel="stylesheet" type="text/css" href="style.css">
    4. External Link and @import

      This will work if the import statements is in first row or before any tag selector inside the external stylesheet.

      @import url('reset.css')
      @import url('typography.css')
    5. xml-stylesheet

      Will work on browser that fully support “xhtml+xml”.

      <?xml-stylesheet href="style.css" type="text/css" ?>

    6. Check out this page → Robot Exclusion Profile.

    robot-exclusion-profile

    What you should know

    • Doctype XHTML 1.0 strict.
    • Content type “application/xhtml+xml” (will also work with text/html).
    • Valid XHTML 1.0 Strict

    If you view the document sources there is no internal/embed styles, inline styles or external link styles but the page do have a main stylesheet & its also conformed with w3c XHTML 1.0 specs.

    Cross Browser Test

    • Mozilla Firefox 2.x & 3 - render successfully parsed xhtml+xml
    • Google Chrome 0.2.149.27 - not supported but parse xhtml+xml
    • Opera 9.5 & 9.6 - render successfully and parsed xhtml+xml.
    • Safari 3.11 (Win) - not supported but parse xhtml+xml
    • MS Internet Explorer 6, 7 & 8b - quirks mode, failed

    There is two major browser support this implementation Firefox & Opera.

    About the Author
     

No Responsesto “Cloaking Stylesheet”

    • stalker's photo Kaizeku Ban
    • RE: Cloaking Stylesheet - 'Commenting Guidlines' ↓
      1 month, 1 week ago on Saturday, October 11th, 2008 at 9:17 am 5 url
      0%

      If you want to comment, please read the following guidelines.These are designed to protect you and other users of the site.

      1. Be relevant: Your comment should be a thoughtful contribution to the subject of the entry. Keep your comments constructive and polite.
      2. No advertising or spamming: Do not use the comment feature to promote commercial entities/products, affiliates services or websites. You are allowed to post a link as long as it's relevant to the entry.
      3. Keep within the law: Do not link to offensive or illegal content websites. Do not make any defamatory or disparaging comments which might damage the reputation of a person or organisation.
      4. Privacy: Do not post any personal information relating to yourself or anyone else - (ie: address, place of employment, telephone or mobile number or email address).

      In order to keep these experiences enjoyable and interesting for all of our users, we ask that you follow the above guidlines. Feel free to engage, ask questions, and tell us what you are thinking! insightful comments are most welcomed.

      be the first to comment.

"write as if you were talking to a good friend (in front of your mother)."

.haveyoursay

    • Email will not be published.

Disclaimer: For any content that you post, you hereby grant to Kaizeku Ban the royalty-free, irrevocable, perpetual, exclusive and fully sublicensable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform and display such content in whole or in part, world-wide and to incorporate it in other works, in any form, media or technology now known or later developed. Some rights reserved.