Wed, 09 Dec 2009 20:13:33 +0000
Copy out css-style-attr draft
fantasai@1563 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
fantasai@1563 | 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
fantasai@1563 | 3 | |
fantasai@1563 | 4 | <html> |
fantasai@1563 | 5 | <head> |
fantasai@1563 | 6 | <title>Syntax of CSS rules in HTML's "style" attribute</title> |
fantasai@1563 | 7 | |
fantasai@1563 | 8 | <style type="text/css"> |
fantasai@1563 | 9 | .emph-code {text-decoration: underline} |
fantasai@1563 | 10 | table.tprofile th.title { background: gray; color: white } |
fantasai@1563 | 11 | table.tprofile th { width:29% } |
fantasai@1563 | 12 | table.tprofile td { width:71% } |
fantasai@1563 | 13 | table.tprofile td ul { margin:0; list-style:none } |
fantasai@1563 | 14 | </style> |
fantasai@1563 | 15 | |
fantasai@1563 | 16 | <link href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" rel="stylesheet" type="text/css"> |
fantasai@1563 | 17 | </head> |
fantasai@1563 | 18 | |
fantasai@1563 | 19 | <body> |
fantasai@1563 | 20 | <div class="head"> |
fantasai@1563 | 21 | <p><a href="http://www.w3.org/"><img alt="W3C" height="48" |
fantasai@1563 | 22 | src="http://www.w3.org/Icons/w3c_home" width="72"></a> |
fantasai@1563 | 23 | |
fantasai@1563 | 24 | <h1 id="syntax">Syntax of CSS rules in HTML's "style" attribute</h1> |
fantasai@1563 | 25 | |
fantasai@1563 | 26 | <h2 class="no-num no-toc" id="w3c-working">W3C Working Draft 15 May 2002</h2> |
fantasai@1563 | 27 | |
fantasai@1563 | 28 | <dl> |
fantasai@1563 | 29 | <dt>This version: |
fantasai@1563 | 30 | |
fantasai@1563 | 31 | <dd><a |
fantasai@1563 | 32 | href="http://www.w3.org/TR/2002/WD-css-style-attr-20020515">http://www.w3.org/TR/2002/WD-css-style-attr-20020515</a> |
fantasai@1563 | 33 | |
fantasai@1563 | 34 | <dt>Latest version: |
fantasai@1563 | 35 | |
fantasai@1563 | 36 | <dd><a |
fantasai@1563 | 37 | href="http://www.w3.org/TR/css-style-attr">http://www.w3.org/TR/css-style-attr</a> |
fantasai@1563 | 38 | |
fantasai@1563 | 39 | <dt>Previous version: |
fantasai@1563 | 40 | |
fantasai@1563 | 41 | <dd><a |
fantasai@1563 | 42 | href="http://www.w3.org/TR/2001/WD-css-style-attr-20010305">http://www.w3.org/TR/2001/WD-css-style-attr-20010305</a> |
fantasai@1563 | 43 | |
fantasai@1563 | 44 | <dt>Editors: |
fantasai@1563 | 45 | |
fantasai@1563 | 46 | <dd><span lang="tr">Tantek Çelik</span> |
fantasai@1563 | 47 | (<a href="http://www.microsoft.com/">Microsoft</a>), |
fantasai@1563 | 48 | <<a href="mailto:tantekc@microsoft.com">tantekc@microsoft.com</a>> |
fantasai@1563 | 49 | |
fantasai@1563 | 50 | <dd><a href="http://www.w3.org/People/Bos/">Bert Bos</a> |
fantasai@1563 | 51 | (<a href="http://www.w3.org/">W3C</a>), |
fantasai@1563 | 52 | <<a href="mailto:bert@w3.org">bert@w3.org</a>> |
fantasai@1563 | 53 | |
fantasai@1563 | 54 | <dd>Marc Attinasi (AOL/Netscape), |
fantasai@1563 | 55 | <<a href="mailto:attinasi@netscape.com">attinasi@netscape.com</a>> |
fantasai@1563 | 56 | </dl> |
fantasai@1563 | 57 | <!--begin-include "../css3-src/copyright.inc"--> |
fantasai@1563 | 58 | <p class="copyright"><a |
fantasai@1563 | 59 | href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Copyright"> |
fantasai@1563 | 60 | Copyright</a> ©2002 <a href="http://www.w3.org/"><abbr title="World Wide |
fantasai@1563 | 61 | Web Consortium">W3C</abbr></a><sup>®</sup> (<a |
fantasai@1563 | 62 | href="http://www.lcs.mit.edu/"><abbr title="Massachusetts Institute of |
fantasai@1563 | 63 | Technology">MIT</abbr></a>, <a href="http://www.inria.fr/"><abbr lang="fr" |
fantasai@1563 | 64 | title="Institut National de Recherche en Informatique et |
fantasai@1563 | 65 | Automatique">INRIA</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), |
fantasai@1563 | 66 | All Rights Reserved. W3C <a |
fantasai@1563 | 67 | href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Legal_Disclaimer">liability</a>, |
fantasai@1563 | 68 | <a |
fantasai@1563 | 69 | href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#W3C_Trademarks">trademark</a>, |
fantasai@1563 | 70 | <a |
fantasai@1563 | 71 | href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405">document |
fantasai@1563 | 72 | use</a> and <a |
fantasai@1563 | 73 | href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">software |
fantasai@1563 | 74 | licensing</a> rules apply. |
fantasai@1563 | 75 | <!--end-include--> |
fantasai@1563 | 76 | <hr title="Separator for header"> |
fantasai@1563 | 77 | </div> |
fantasai@1563 | 78 | |
fantasai@1563 | 79 | <h2 class="no-num no-toc" id="abstract">Abstract</h2> |
fantasai@1563 | 80 | |
fantasai@1563 | 81 | <p>HTML provides a "style" attribute on most elements, to hold a fragment of |
fantasai@1563 | 82 | a style sheet that applies to those elements. One of the possible style sheet |
fantasai@1563 | 83 | languages is CSS. This draft describes the syntax of the CSS fragment that |
fantasai@1563 | 84 | can be used in the "style" attribute. |
fantasai@1563 | 85 | |
fantasai@1563 | 86 | <h2 class="no-num no-toc" id="status">Status of this document</h2> |
fantasai@1563 | 87 | |
fantasai@1563 | 88 | <p><em>This section describes the status of this document at the time of its |
fantasai@1563 | 89 | publication.</em> |
fantasai@1563 | 90 | |
fantasai@1563 | 91 | <p>This draft has been produced by the CSS working group as part of the <a |
fantasai@1563 | 92 | href="/Style/">style</a> activity (see <a |
fantasai@1563 | 93 | href="/Style/Activity">summary</a>). It is a public W3C |
fantasai@1563 | 94 | Working Draft for review by W3C members and other interested parties. As a |
fantasai@1563 | 95 | draft document it may be updated, replaced, or obsoleted by other documents |
fantasai@1563 | 96 | at any time. It is inappropriate to use W3C Working Drafts as reference |
fantasai@1563 | 97 | material or to cite them as other than "work in progress." |
fantasai@1563 | 98 | |
fantasai@1563 | 99 | <p>Comments are invited and may be sent to the public mailing list <a |
fantasai@1563 | 100 | href="http://www.w3.org/Mail/Lists#www-style">www-style@w3.org</a> (see <a |
fantasai@1563 | 101 | href="http://www.w3.org/Mail/Request">instructions</a> for subscribing), or |
fantasai@1563 | 102 | to the editors. Discussions should take place on the mailing list. |
fantasai@1563 | 103 | |
fantasai@1563 | 104 | <p>A list of current public W3C Working Drafts can be found at <a |
fantasai@1563 | 105 | href="http://www.w3.org/TR/">http://www.w3.org/TR</a>. |
fantasai@1563 | 106 | |
fantasai@1563 | 107 | <h2 class="no-num no-toc" id="table">Table of contents</h2> |
fantasai@1563 | 108 | |
fantasai@1563 | 109 | <div> <!--begin-toc--> |
fantasai@1563 | 110 | <ul class="toc"> |
fantasai@1563 | 111 | <li><a href="#history"><span class="secno">1. </span>History</a> |
fantasai@1563 | 112 | |
fantasai@1563 | 113 | <li><a href="#examples"><span class="secno">2. </span>Examples</a> |
fantasai@1563 | 114 | |
fantasai@1563 | 115 | <li><a href="#grammar"><span class="secno">3. </span>Grammar</a> |
fantasai@1563 | 116 | |
fantasai@1563 | 117 | <li><a href="#cascading"><span class="secno">4. </span>Cascading order</a> |
fantasai@1563 | 118 | |
fantasai@1563 | 119 | <li><a href="#profiles"><span class="secno">5. </span>Profiles</a> |
fantasai@1563 | 120 | <ul class="toc"> |
fantasai@1563 | 121 | <li><a href="#basic"><span class="secno">5.1. </span>Basic 'style' attribute |
fantasai@1563 | 122 | profile</a> |
fantasai@1563 | 123 | |
fantasai@1563 | 124 | <li><a href="#pseudo-rules"><span class="secno">5.2. </span>Pseudo-rules |
fantasai@1563 | 125 | 'style' attribute profile</a> |
fantasai@1563 | 126 | |
fantasai@1563 | 127 | <li><a href="#complete"><span class="secno">5.3. </span>Complete style sheet |
fantasai@1563 | 128 | 'style' attribute profile</a> |
fantasai@1563 | 129 | </ul> |
fantasai@1563 | 130 | |
fantasai@1563 | 131 | <li><a href="#acknowledgments"><span class="secno">6. |
fantasai@1563 | 132 | </span>Acknowledgments</a> |
fantasai@1563 | 133 | |
fantasai@1563 | 134 | <li><a href="#references"><span class="secno">7. </span>References</a> |
fantasai@1563 | 135 | <ul class="toc"> |
fantasai@1563 | 136 | <li><a href="#normative"><span class="secno">7.1. </span>Normative |
fantasai@1563 | 137 | References</a> |
fantasai@1563 | 138 | |
fantasai@1563 | 139 | <li><a href="#informative"><span class="secno">7.2. </span>Informative |
fantasai@1563 | 140 | References</a> |
fantasai@1563 | 141 | </ul> |
fantasai@1563 | 142 | </ul> |
fantasai@1563 | 143 | <!--end-toc--> </div> |
fantasai@1563 | 144 | |
fantasai@1563 | 145 | <hr> |
fantasai@1563 | 146 | |
fantasai@1563 | 147 | <h2 id="history"><span class="secno">1. </span>History</h2> |
fantasai@1563 | 148 | |
fantasai@1563 | 149 | <p><a href="/TR/REC-html40/">HTML 4.0</a> introduced the <a |
fantasai@1563 | 150 | href="/TR/REC-html40/present/styles#h-14.2.2">"style" attribute</a>, whose |
fantasai@1563 | 151 | contents could contain any styling language (through the use of META |
fantasai@1563 | 152 | http-equiv <a |
fantasai@1563 | 153 | href="/TR/REC-html40/present/styles#h-14.2.1">Content-Style-Type</a>), but by |
fantasai@1563 | 154 | default, and in practice, has only contained CSS. <a |
fantasai@1563 | 155 | href="/TR/xhtml-modularization/">XHTML Modularization</a> introduced the <a |
fantasai@1563 | 156 | href="/TR/xhtml-modularization/abstract_modules#s_styleattributemodule"> |
fantasai@1563 | 157 | Style Attribute Module</a> which also has a "style" attribute whose semantics |
fantasai@1563 | 158 | are the same as that in HTML 4. <a href="/TR/SVG/">SVG</a> also has a |
fantasai@1563 | 159 | language neutral <a href="/TR/SVG/styling#StyleAttribute">"style" |
fantasai@1563 | 160 | attribute</a>, whose language is specified with the contentStyleType |
fantasai@1563 | 161 | attribute which has the default value of "text/css". <a |
fantasai@1563 | 162 | href="/TR/REC-MathML/">MathML</a> states that all MathML elements accept the |
fantasai@1563 | 163 | "style" attribute to facilitate <a |
fantasai@1563 | 164 | href="/TR/REC-MathML/chapter2#sec2.3.4">compatibility with CSS</a>. |
fantasai@1563 | 165 | |
fantasai@1563 | 166 | <p>Not all XML-based document formats have a "style" attribute to permit the |
fantasai@1563 | 167 | user to use CSS to style documents and specific elements in documents, but in |
fantasai@1563 | 168 | case a certain format has a "style" attribute and the attribute accepts CSS |
fantasai@1563 | 169 | as its value, then this specification describes the attribute's syntax and |
fantasai@1563 | 170 | interpretation. |
fantasai@1563 | 171 | |
fantasai@1563 | 172 | <h2 id="examples"><span class="secno">2. </span>Examples</h2> |
fantasai@1563 | 173 | |
fantasai@1563 | 174 | <p>Here are a few examples: |
fantasai@1563 | 175 | |
fantasai@1563 | 176 | <ol> |
fantasai@1563 | 177 | <li>Only setting properties on the element itself, no pseudo-elements or |
fantasai@1563 | 178 | pseudo-classes: |
fantasai@1563 | 179 | <pre><p style="<span class="emph-code">color: #090; line-height: 1.2</span>">...</p></pre> |
fantasai@1563 | 180 | |
fantasai@1563 | 181 | <li>Setting properties on the element, as well as on the first letter of the |
fantasai@1563 | 182 | element, by means of the '::first-letter' pseudo-element. Note that curly |
fantasai@1563 | 183 | braces ({...}) are required in this case: |
fantasai@1563 | 184 | <pre><p style="<span class="emph-code">{color: #090; line-height: 1.2}</span> |
fantasai@1563 | 185 | <span class="emph-code">::first-letter {color: #900}</span>">...</p></pre> |
fantasai@1563 | 186 | |
fantasai@1563 | 187 | <li>Setting properties on a source anchor for each of its dynamic states, |
fantasai@1563 | 188 | using pseudo-classes: |
fantasai@1563 | 189 | <pre><a href="http://www.w3.org/" |
fantasai@1563 | 190 | style="<span class="emph-code">{color: #900}</span> |
fantasai@1563 | 191 | <span class="emph-code">:link {background: #ff0}</span> |
fantasai@1563 | 192 | <span class="emph-code">:visited {background: #fff}</span> |
fantasai@1563 | 193 | <span class="emph-code">:hover {outline: thin red solid}</span> |
fantasai@1563 | 194 | <span class="emph-code">:active {background: #00f}</span>">...</a></pre> |
fantasai@1563 | 195 | |
fantasai@1563 | 196 | <li>Importing a style sheet to apply as a scoped style sheet: |
fantasai@1563 | 197 | <pre><div class="navigation" |
fantasai@1563 | 198 | style="<span class="emph-code">@import url(navigationstyles.css);</span>">...</div></pre> |
fantasai@1563 | 199 | </ol> |
fantasai@1563 | 200 | |
fantasai@1563 | 201 | <p class="note">Note: in CSS1 and CSS2, the spelling of '::first-letter' and |
fantasai@1563 | 202 | '::first-line' is ':first-letter' and ':first-line' respectively, i.e., with |
fantasai@1563 | 203 | a single colon, but Selectors recommends using double colons for |
fantasai@1563 | 204 | pseudo-elements. |
fantasai@1563 | 205 | </p> |
fantasai@1563 | 206 | |
fantasai@1563 | 207 | <p>This document defines both the simple case (only properties on the element |
fantasai@1563 | 208 | itself, example 1), as well as more complex cases such as rules that apply only to the element |
fantasai@1563 | 209 | (e.g. properties on the element's pseudo-elements and pseudo-classes, examples 2 and 3), |
fantasai@1563 | 210 | and scoped style sheets (the use of @import which apples the referenced style sheet |
fantasai@1563 | 211 | to the subdocument consisting of the element and its children with the element as the root, |
fantasai@1563 | 212 | example 4). |
fantasai@1563 | 213 | </p> |
fantasai@1563 | 214 | |
fantasai@1563 | 215 | <h2 id="grammar"><span class="secno">3. </span>Grammar</h2> |
fantasai@1563 | 216 | |
fantasai@1563 | 217 | <p class=issue>[The grammar is ambiguous, e.g., for ":hover {color: |
fantasai@1563 | 218 | red}". See |
fantasai@1563 | 219 | http://lists.w3.org/Archives/Public/www-style/2008Jan/0419.html] |
fantasai@1563 | 220 | |
fantasai@1563 | 221 | <p>The syntax of the CSS fragment that is allowed in the HTML "style" |
fantasai@1563 | 222 | attribute can be formally specified as follows: |
fantasai@1563 | 223 | |
fantasai@1563 | 224 | <pre> |
fantasai@1563 | 225 | inline-stylesheet |
fantasai@1563 | 226 | : S* [ declarations | declarations-block | inline-ruleset* | stylesheet ] |
fantasai@1563 | 227 | ; |
fantasai@1563 | 228 | |
fantasai@1563 | 229 | declarations |
fantasai@1563 | 230 | : declaration [ ';' S* declaration ]* |
fantasai@1563 | 231 | ; |
fantasai@1563 | 232 | |
fantasai@1563 | 233 | declarations-block |
fantasai@1563 | 234 | : '{' S* declarations '}' S* |
fantasai@1563 | 235 | ; |
fantasai@1563 | 236 | |
fantasai@1563 | 237 | inline-ruleset |
fantasai@1563 | 238 | : [ pseudo* S* [ ',' S* pseudo* S* ]* ]? |
fantasai@1563 | 239 | declarations-block |
fantasai@1563 | 240 | ; |
fantasai@1563 | 241 | </pre> |
fantasai@1563 | 242 | |
fantasai@1563 | 243 | <p>Please refer to the grammar in <a href="/TR/REC-CSS2/grammar">appendix D |
fantasai@1563 | 244 | of the CSS2 specification</a> <a href="#CSS2" rel="biblioentry">[CSS2]</a> |
fantasai@1563 | 245 | for the definition of the symbols not defined here. |
fantasai@1563 | 246 | |
fantasai@1563 | 247 | <p>The same rules for forward-compatible parsing apply to the inline style |
fantasai@1563 | 248 | sheet as to a normal style sheet. See <a href="/TR/REC-CSS2/syndata">chapter |
fantasai@1563 | 249 | 4 of the CSS2 specification</a>. |
fantasai@1563 | 250 | |
fantasai@1563 | 251 | <h2 id="cascading"><span class="secno">4. </span>Cascading order</h2> |
fantasai@1563 | 252 | |
fantasai@1563 | 253 | <p>CSS already <a href="/TR/REC-CSS2/cascade#specificity">defines</a> how |
fantasai@1563 | 254 | style sheets and "style" attributes are cascaded together for the case where |
fantasai@1563 | 255 | the inline fragment consists of declarations only. |
fantasai@1563 | 256 | |
fantasai@1563 | 257 | <p>In addition to simple declarations, the style attribute is now permitted |
fantasai@1563 | 258 | to take rulesets. These rules have the additive specificity of their |
fantasai@1563 | 259 | selectors in addition to the specificity of the style attribute. The examples |
fantasai@1563 | 260 | indicate what is added to each of the specificity components using the |
fantasai@1563 | 261 | familiar '+=' notation. |
fantasai@1563 | 262 | |
fantasai@1563 | 263 | <p>Example: |
fantasai@1563 | 264 | |
fantasai@1563 | 265 | <pre><p style="<span class="emph-code">{color: green; width: 10em}</span> /* a+=0 b+=0 c+=0 */ |
fantasai@1563 | 266 | <span class="emph-code">::first-letter {float: left; font-size: 300%}</span> /* a+=0 b+=0 c+=1 */ |
fantasai@1563 | 267 | "> |
fantasai@1563 | 268 | This is an example of a paragraph with inline style attribute rules |
fantasai@1563 | 269 | to create a spot effect, in this case, a drop-cap first letter. |
fantasai@1563 | 270 | </p></pre> |
fantasai@1563 | 271 | |
fantasai@1563 | 272 | <p>Example: |
fantasai@1563 | 273 | |
fantasai@1563 | 274 | <pre><a href="http://www.w3.org/Style/CSS" |
fantasai@1563 | 275 | style="<span class="emph-code">{color: blue; background: white}</span> /* a+=0 b+=0 c+=0 */ |
fantasai@1563 | 276 | <span class="emph-code">:visited {color: green}</span> /* a+=0 b+=1 c+=0 */ |
fantasai@1563 | 277 | <span class="emph-code">:hover {background: yellow}</span> /* a+=0 b+=1 c+=0 */ |
fantasai@1563 | 278 | <span class="emph-code">:visited:hover {color: purple}</span> /* a+=0 b+=2 c+=0 */ |
fantasai@1563 | 279 | "> |
fantasai@1563 | 280 | Example of a hyperlink to the CSS home page with special one-off |
fantasai@1563 | 281 | visited and hover effects. |
fantasai@1563 | 282 | </a></pre> |
fantasai@1563 | 283 | |
fantasai@1563 | 284 | <h2 id="profiles"><span class="secno">5. </span>Profiles</h2> |
fantasai@1563 | 285 | |
fantasai@1563 | 286 | <p>Several profiles are provided for implementation conformance. The profiles |
fantasai@1563 | 287 | are of increasing power and complexity. Each profile is a superset of, and |
fantasai@1563 | 288 | backwards compatible with, all profiles that preceed it. This permits |
fantasai@1563 | 289 | implementations to first implement simpler profiles, and later implement more |
fantasai@1563 | 290 | powerful ones. An implementation must implement at least one profile in order |
fantasai@1563 | 291 | to be conformant. |
fantasai@1563 | 292 | |
fantasai@1563 | 293 | <p> Each profile defines a subset of CSS syntax that a 'style' attribute |
fantasai@1563 | 294 | allows and excludes by listing both the grammar productions for |
fantasai@1563 | 295 | inline-stylesheet which are accepted, and those which are excluded. |
fantasai@1563 | 296 | Productions which are excluded by a profile are to be treated as |
fantasai@1563 | 297 | unrecognized, and ignored, according to the rules for forward-compatible |
fantasai@1563 | 298 | parsing. See <a href="http://www.w3.org/TR/REC-CSS2/syndata">chapter 4 of the |
fantasai@1563 | 299 | CSS2 specification</a>. |
fantasai@1563 | 300 | |
fantasai@1563 | 301 | <div class="profile"> |
fantasai@1563 | 302 | <h3 id="basic"><span class="secno">5.1. </span>Basic 'style' attribute |
fantasai@1563 | 303 | profile</h3> |
fantasai@1563 | 304 | |
fantasai@1563 | 305 | <table border="1" class="tprofile" width="75%"> |
fantasai@1563 | 306 | <tbody> |
fantasai@1563 | 307 | <tr> |
fantasai@1563 | 308 | <th class="title" colspan="2">Basic profile |
fantasai@1563 | 309 | |
fantasai@1563 | 310 | <tr> |
fantasai@1563 | 311 | <th>Accepts |
fantasai@1563 | 312 | |
fantasai@1563 | 313 | <td> |
fantasai@1563 | 314 | <ul> |
fantasai@1563 | 315 | <li>declarations |
fantasai@1563 | 316 | |
fantasai@1563 | 317 | <li>declarations-block |
fantasai@1563 | 318 | </ul> |
fantasai@1563 | 319 | |
fantasai@1563 | 320 | <tr> |
fantasai@1563 | 321 | <th>Excludes |
fantasai@1563 | 322 | |
fantasai@1563 | 323 | <td> |
fantasai@1563 | 324 | <ul> |
fantasai@1563 | 325 | <li>inline-ruleset |
fantasai@1563 | 326 | |
fantasai@1563 | 327 | <li>stylesheet |
fantasai@1563 | 328 | </ul> |
fantasai@1563 | 329 | |
fantasai@1563 | 330 | <tr> |
fantasai@1563 | 331 | <th>Extra constraints |
fantasai@1563 | 332 | |
fantasai@1563 | 333 | <td> |
fantasai@1563 | 334 | <p>Implementations are required to support the declarations-block syntax. |
fantasai@1563 | 335 | This was ambiguous/unclear in CSS1 and CSS2, and is made explicit by this |
fantasai@1563 | 336 | document. |
fantasai@1563 | 337 | |
fantasai@1563 | 338 | <tr> |
fantasai@1563 | 339 | <th>Comments |
fantasai@1563 | 340 | |
fantasai@1563 | 341 | <td>This profile corresponds to CSS level 1 & 2. |
fantasai@1563 | 342 | </table> |
fantasai@1563 | 343 | </div> |
fantasai@1563 | 344 | |
fantasai@1563 | 345 | <div class="profile"> |
fantasai@1563 | 346 | <h3 id="pseudo-rules"><span class="secno">5.2. </span>Pseudo-rules 'style' |
fantasai@1563 | 347 | attribute profile</h3> |
fantasai@1563 | 348 | |
fantasai@1563 | 349 | <table border="1" class="tprofile" width="75%"> |
fantasai@1563 | 350 | <tbody> |
fantasai@1563 | 351 | <tr> |
fantasai@1563 | 352 | <th class="title" colspan="2">Pseudo-rules profile |
fantasai@1563 | 353 | |
fantasai@1563 | 354 | <tr> |
fantasai@1563 | 355 | <th>Accepts |
fantasai@1563 | 356 | |
fantasai@1563 | 357 | <td> |
fantasai@1563 | 358 | <ul> |
fantasai@1563 | 359 | <li>declarations |
fantasai@1563 | 360 | |
fantasai@1563 | 361 | <li>declarations-block |
fantasai@1563 | 362 | |
fantasai@1563 | 363 | <li>inline-ruleset |
fantasai@1563 | 364 | </ul> |
fantasai@1563 | 365 | |
fantasai@1563 | 366 | <tr> |
fantasai@1563 | 367 | <th>Excludes |
fantasai@1563 | 368 | |
fantasai@1563 | 369 | <td> |
fantasai@1563 | 370 | <ul> |
fantasai@1563 | 371 | <li>stylesheet |
fantasai@1563 | 372 | </ul> |
fantasai@1563 | 373 | |
fantasai@1563 | 374 | <tr> |
fantasai@1563 | 375 | <th>Extra constraints |
fantasai@1563 | 376 | |
fantasai@1563 | 377 | <td> |
fantasai@1563 | 378 | <p>None. |
fantasai@1563 | 379 | |
fantasai@1563 | 380 | <tr> |
fantasai@1563 | 381 | <th>Comments |
fantasai@1563 | 382 | |
fantasai@1563 | 383 | <td>This profile is new and defined by CSS level 3. |
fantasai@1563 | 384 | </table> |
fantasai@1563 | 385 | </div> |
fantasai@1563 | 386 | |
fantasai@1563 | 387 | <div class="profile"> |
fantasai@1563 | 388 | <h3 id="complete"><span class="secno">5.3. </span>Complete style sheet |
fantasai@1563 | 389 | 'style' attribute profile</h3> |
fantasai@1563 | 390 | |
fantasai@1563 | 391 | <table border="1" class="tprofile" width="75%"> |
fantasai@1563 | 392 | <tbody> |
fantasai@1563 | 393 | <tr> |
fantasai@1563 | 394 | <th class="title" colspan="2">Complete style sheet profile |
fantasai@1563 | 395 | |
fantasai@1563 | 396 | <tr> |
fantasai@1563 | 397 | <th>Accepts |
fantasai@1563 | 398 | |
fantasai@1563 | 399 | <td> |
fantasai@1563 | 400 | <ul> |
fantasai@1563 | 401 | <li>declarations |
fantasai@1563 | 402 | |
fantasai@1563 | 403 | <li>declarations-block |
fantasai@1563 | 404 | |
fantasai@1563 | 405 | <li>inline-ruleset |
fantasai@1563 | 406 | |
fantasai@1563 | 407 | <li>stylesheet |
fantasai@1563 | 408 | </ul> |
fantasai@1563 | 409 | |
fantasai@1563 | 410 | <tr> |
fantasai@1563 | 411 | <th>Excludes |
fantasai@1563 | 412 | |
fantasai@1563 | 413 | <td> |
fantasai@1563 | 414 | <p>N/A. |
fantasai@1563 | 415 | |
fantasai@1563 | 416 | <tr> |
fantasai@1563 | 417 | <th>Extra constraints |
fantasai@1563 | 418 | |
fantasai@1563 | 419 | <td> |
fantasai@1563 | 420 | <p>None. |
fantasai@1563 | 421 | |
fantasai@1563 | 422 | <tr> |
fantasai@1563 | 423 | <th>Comments |
fantasai@1563 | 424 | |
fantasai@1563 | 425 | <td>This profile is new and defined by CSS level 3. |
fantasai@1563 | 426 | </table> |
fantasai@1563 | 427 | </div> |
fantasai@1563 | 428 | |
fantasai@1563 | 429 | <h2 id="acknowledgments"><span class="secno">6. </span>Acknowledgments</h2> |
fantasai@1563 | 430 | |
fantasai@1563 | 431 | <p>Thanks to feedback from Daniel Glazman, Ian Hickson, Eric A. Meyer, |
fantasai@1563 | 432 | Björn Höhrmann. |
fantasai@1563 | 433 | |
fantasai@1563 | 434 | <h2 id="references"><span class="secno">7. </span>References</h2> |
fantasai@1563 | 435 | |
fantasai@1563 | 436 | <h3 id="normative"><span class="secno">7.1. </span>Normative References</h3> |
fantasai@1563 | 437 | |
fantasai@1563 | 438 | <dl class="bibliography"> |
fantasai@1563 | 439 | <dt id="CSS2">[CSS2] |
fantasai@1563 | 440 | |
fantasai@1563 | 441 | <dd>Bert Bos; Håkon Wium Lie; Chris Lilley; Ian Jacobs. <cite>Cascading |
fantasai@1563 | 442 | Style Sheets, level 2.</cite> 12 May 1998. W3C Recommendation. URL: <a |
fantasai@1563 | 443 | href="http://www.w3.org/TR/REC-CSS2/">http://www.w3.org/TR/REC-CSS2</a> |
fantasai@1563 | 444 | |
fantasai@1563 | 445 | <dt id="HTML40">[HTML40] |
fantasai@1563 | 446 | |
fantasai@1563 | 447 | <dd>Raggett, D.; Le Hors, A.; Jacobs, I.. <cite>HTML 4.0 |
fantasai@1563 | 448 | Specification.</cite> 8 July 1997. W3C Recommendation. URL: <a |
fantasai@1563 | 449 | href="http://www.w3.org/TR/REC-html40/">http://www.w3.org/TR/REC-html40</a> |
fantasai@1563 | 450 | </dl> |
fantasai@1563 | 451 | |
fantasai@1563 | 452 | <h3 id="informative"><span class="secno">7.2. </span>Informative References</h3> |
fantasai@1563 | 453 | |
fantasai@1563 | 454 | <dl class="bibliography"> |
fantasai@1563 | 455 | <dt id="MathML">[MathML] |
fantasai@1563 | 456 | |
fantasai@1563 | 457 | <dd>Patrick Ion; Robert Miner. <cite> Mathematical Markup Language |
fantasai@1563 | 458 | (MathML<span class="tm">™</span>) 1.01</cite> 7 July 1999. W3C Recommendation. |
fantasai@1563 | 459 | URL: <a |
fantasai@1563 | 460 | href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC-MathML</a> |
fantasai@1563 | 461 | |
fantasai@1563 | 462 | <dt id="SVG10">[SVG10] |
fantasai@1563 | 463 | |
fantasai@1563 | 464 | <dd>Jon Ferraiolo ed. <cite> Scalable Vector Graphics (SVG) 1.0 |
fantasai@1563 | 465 | Specification.</cite> 5 September 2001. W3C Recommendation. URL: <a |
fantasai@1563 | 466 | href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG</a> |
fantasai@1563 | 467 | |
fantasai@1563 | 468 | <dt id="XHTMLMOD">[XHTMLMOD] |
fantasai@1563 | 469 | |
fantasai@1563 | 470 | <dd><cite>Modularization of XHTML<span class="tm">™</span>.</cite> |
fantasai@1563 | 471 | 10 April 2001. W3C Recommendation. URL: <a |
fantasai@1563 | 472 | href="http://www.w3.org/TR/xhtml-modularization/">http://www.w3.org/TR/xhtml-modularization</a> |
fantasai@1563 | 473 | </dl> |
fantasai@1563 | 474 | </body> |
fantasai@1563 | 475 | </html> |
fantasai@1563 | 476 | <!-- Keep this comment at the end of the file |
fantasai@1563 | 477 | Local variables: |
fantasai@1563 | 478 | mode: sgml |
fantasai@1563 | 479 | sgml-declaration:"~/SGML/HTML4.decl" |
fantasai@1563 | 480 | sgml-default-doctype-name:"html" |
fantasai@1563 | 481 | sgml-minimize-attributes:t |
fantasai@1563 | 482 | sgml-nofill-elements:("pre" "style" "br") |
fantasai@1563 | 483 | End: |
fantasai@1563 | 484 | --> |