/[suikacvs]/markup/selectors/ssft/ssft-work.en.html
Suika

Diff of /markup/selectors/ssft/ssft-work.en.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by wakaba, Sat Sep 22 12:42:44 2007 UTC revision 1.3 by wakaba, Tue Sep 25 13:28:00 2007 UTC
# Line 1  Line 1 
1  <!DOCTYPE html>  <!DOCTYPE html>
2  <html lang="en" class="formal-specification status-work-in-progress">  <html lang="en" class="formal-specification status-work-in-progress">
3  <head>  <head>
4  <title>Selectors Serialization Format for Testing (SSFT)</title>  <title>Selectors Serialization Format for Testing (SSFT) Specification</title>
5  <link rel="stylesheet" href="http://suika.fam.cx/www/style/html/spec">  <link rel="stylesheet" href="http://suika.fam.cx/www/style/html/spec">
6  <link rel="license" href="http://suika.fam.cx/c/gnu/fdl">  <link rel="license" href="http://suika.fam.cx/c/gnu/fdl">
7  </head>  </head>
8  <body class="has-abstract">  <body class="has-abstract">
9    
10  <div class="header">  <div class="header">
11  <h1>Selectors Serialization Format for Testing (<abbr>SSFT</abbr>)</h1>  <h1>Selectors Serialization Format for Testing (<abbr>SSFT</abbr>)
12  <h2>Working Draft 22 September 2007</h2>  Specification</h1>
13    <h2>Working Draft 25 September 2007</h2>
14    
15  <dl class="versions-uri">  <dl class="versions-uri">
16  <dt>This Version</dt>  <dt>This Version</dt>
# Line 101  document are to be interpreted as descri Line 102  document are to be interpreted as descri
102  for now.</p>  for now.</p>
103  </div>  </div>
104    
105    <p><dfn id=newline>Newline</dfn> is <code class=char>U+000A</code>
106    <code class=charname>LINE FEED</code> <span class=ed>or
107    U+000D U+000A or U+000A ??</span>.</p>
108    
109    <ol>
110    <li>Let <var>result</var> an empty string.</li>
111    <li>For each selector (<var>selector</var>) in the group of selectors:
112      <ol>
113      <li>If <var>selector</var> is <em>not</em> the first selector
114      in the group of selectors, then append a <code class=char>U+002C</code>
115      <code class=charname>COMMA</code> followed by a
116      <a href="#newline">newline</a> to <var>result</var>.</li>
117      <li>Append four <code class=char>U+0020</code>
118      <code class=charname>SPACE</code> characters to <var>result</var>.</li>
119      <li>Process each sequence of simple selectors or
120      combinator in <var>selector</var> by following algorithm:
121        <dl class=switch>
122        <dt>If it is a sequence of simle selector (<var>sss</var>)</dt>
123          <dd class=ed>@@</dd>
124        <dt>If it is a combinator (<var>c</var>)</dt>
125          <dd>
126            <ol>
127            <li>Append two <code class=char>U+0020</code>
128            <code class=charname>SPACE</code> characters to <var>result</var>.</li>
129            <li>
130              <dl class=switch>
131              <dt>If <var>c</var> is descendant combinator (white space)</dt>
132                <dd>Append a <code class=char>U+0020</code>
133                <code class=charname>SPACE</code> character to
134                <var>result</var>.</dd>
135              <dt>If <var>c</var> is child combinator
136              (<code class=char>></code>)</dt>
137                <dd>Append a <code class=char>U+003E</code>
138                <code class=charname>GREATER-THAN SIGN</code> character to
139                <var>result</var>.</dd>
140              <dt>If <var>c</var> is adjacent sibling combinator
141              (<code class=char>+</code>)</dt>
142                <dd>Append a <code class=char>U+0020</code>
143                <code class=charname>SPACE</code> character to
144                <var>result</var>.</dd>
145              <dt>If <var>c</var> is general sibling combinator
146              (<code class=char>~</code>)</dt>
147                <dd>Append a <code class=char>U+007E</code>
148                <code class=charname>TILDE</code> character to
149                <var>result</var>.</dd>
150              </dl>
151            </li>
152            <li>Append a <code class=char>U+0020</code>
153            <code class=charname>SPACE</code> character to
154            <var>result</var>.</li>
155            </ol>
156          </dd>
157        </dl>
158      </ol>
159    </li>
160    <li>Then, <var>result</var> is the
161    <abbr title="Selectors Serialization Format for Testing">SFFT</abbr>
162    representation of the group of selectors.</li>
163    </ol>
164    
165  </div>  </div>
166    
167  <div class="section" id="parsing">  <div class="section" id="parsing">
# Line 149  by choosing <q>Selectors</q> radio butto Line 210  by choosing <q>Selectors</q> radio butto
210    <dd class="ed">RFC 2119.  The exact version of the specification    <dd class="ed">RFC 2119.  The exact version of the specification
211    is referenced.</dd>    is referenced.</dd>
212  <dt id=ref-SELECTORS>SELECTORS</dt>  <dt id=ref-SELECTORS>SELECTORS</dt>
213    <dd class=ed><cite>Selectors</cite>, W3C WD, work in progress.</dd>    <dd><a href="http://www.w3.org/TR/2005/WD-css3-selectors-20051215"><cite>Selectors</cite></a>,
214      <abbr title="World Wide Web Consortium">W3C</abbr> Working Draft,
215      15 December 2005.  Work in progress.  
216      <a href="http://www.w3.org/TR/css3-selectors">The latest version</a>
217      of the specification is referenced.</dd>
218  </dl>  </dl>
219  </div>  </div>
220    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24