Skip to content

Commit dca5859

Browse files
committed
Add conformance requirements for multiple style attributes. Finish Conformance section.
1 parent e918e0c commit dca5859

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

css-style-attr/Overview.html

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
<h1>CSS Style Attribute Syntax Level 1</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 11 December
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 12 December
1919
2009</h2>
2020

2121
<dl>
2222
<dt>This version:</dt>
23-
<!-- <dd><dd><a href="http://www.w3.org/TR/2009/WD-css-style-attr-20091211/">http://www.w3.org/TR/2009/WD-css-style-attr-20091211/</a></dd> -->
23+
<!-- <dd><dd><a href="http://www.w3.org/TR/2009/WD-css-style-attr-20091212/">http://www.w3.org/TR/2009/WD-css-style-attr-20091212/</a></dd> -->
2424

2525
<dd><a
2626
href="http://dev.w3.org/csswg/css-style-attr/">http://dev.w3.org/csswg/css-style-attr/</a>
@@ -208,8 +208,37 @@ <h2 id=interpret><span class=secno>4. </span>Cascading and Interpretation</h2>
208208
cascading, the declarations in a style attribute must be interpreted
209209
exactly as if they were given in a CSS style rule applied to the element.
210210

211+
<p>The CSS Working Group strongly recommends that document languages do not
212+
allow multiple style attributes on a single element. If a document
213+
language allows multiple style attributes, each is parsed independently
214+
and treated as a separate style rule, the ordering of which should be
215+
defined by the document language, else is undefined.
216+
211217
<h2 id=conformance><span class=secno>5. </span>Conformance</h2>
212218

219+
<p>A document or implementation cannot conform to CSS Style Attribute
220+
Syntax Level 1 alone, but can claim conformance to CSS Style Attribute
221+
Syntax Level 1 if it satisfies the conformance requirements in this
222+
specification when implementing CSS together with style attribute handling
223+
as defined in a document language that has style attributes.
224+
225+
<p>Conformance to CSS Style Attribute Syntax Level 1 is defined for two
226+
classes:
227+
228+
<dl>
229+
<dt><dfn id=document>document</dfn>
230+
231+
<dd>A document represented in a document language that defines a style
232+
attribute for one or more of its elements.
233+
234+
<dt><dfn id=interpreter>interpreter</dfn>
235+
236+
<dd>Someone or something that interprets the semantics of a document and
237+
its associated style information. (Most CSS <a
238+
href="http://www.w3.org/TR/CSS21/conform.html#user-agent">user agents</a>
239+
fall under this category.)
240+
</dl>
241+
213242
<p>The conformance requirements are expressed with a combination of
214243
descriptive assertions and RFC 2119 terminology. The key words "MUST",
215244
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",

css-style-attr/Overview.src.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,32 @@ <h2 id="interpret">Cascading and Interpretation</h2>
103103
attribute must be interpreted exactly as if they were given in a CSS
104104
style rule applied to the element.
105105

106+
<p>The CSS Working Group strongly recommends that document languages do
107+
not allow multiple style attributes on a single element. If a document
108+
language allows multiple style attributes, each is parsed independently
109+
and treated as a separate style rule, the ordering of which should be
110+
defined by the document language, else is undefined.
111+
106112
<h2 id="conformance">Conformance</h2>
107113

114+
<p>A document or implementation cannot conform to CSS Style Attribute Syntax
115+
Level 1 alone, but can claim conformance to CSS Style Attribute Syntax Level 1
116+
if it satisfies the conformance requirements in this specification when
117+
implementing CSS together with style attribute handling as defined in a
118+
document language that has style attributes.</p>
119+
120+
<p>Conformance to CSS Style Attribute Syntax Level 1 is defined for two classes:
121+
<dl>
122+
<dt><dfn>document</dfn></dt>
123+
<dd>A document represented in a document language that defines a style
124+
attribute for one or more of its elements.
125+
<dt><dfn>interpreter</dfn></dt>
126+
<dd>Someone or something that interprets the semantics of a document and
127+
its associated style information.
128+
(Most CSS <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">user
129+
agents</a> fall under this category.)</dd>
130+
</dl>
131+
108132
<p>The conformance requirements are expressed with a combination of
109133
descriptive assertions and RFC 2119 terminology. The key words "MUST",
110134
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",

0 commit comments

Comments
 (0)