Skip to content

Commit d90b5c0

Browse files
committed
[css-syntax] Add column combinator.
1 parent 709f158 commit d90b5c0

3 files changed

Lines changed: 32 additions & 3 deletions

File tree

css-syntax/Diagrams.src.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ <h3>Parsing</h3>
171171

172172
add('SUBSTRING-MATCH', Diagram('*='));
173173

174+
add('COLUMN', Diagram('||'));
175+
174176
add('CDO', Diagram('<' + '!--'));
175177

176178
add('CDC', Diagram('-' + '->'));

css-syntax/Overview.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<meta content="CSS Syntax Module Level 3 (CSS3 Syntax)" name=dc.title>
1313
<meta content=text name=dc.type>
14-
<meta content=2013-04-03 name=dc.date>
14+
<meta content=2013-04-04 name=dc.date>
1515
<meta content="Tab Atkins Jr." name=dc.creator>
1616
<meta content=W3C name=dc.publisher>
1717
<meta content="http://dev.w3.org/csswg/css3-syntax/" name=dc.identifier>
@@ -31,7 +31,7 @@
3131
<h1 class=p-name>CSS Syntax Module Level 3</h1>
3232

3333
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft <time
34-
class=dt-updated datetime=20130403> 3 April 2013</time></h2>
34+
class=dt-updated datetime=20130404> 4 April 2013</time></h2>
3535

3636
<dl>
3737
<dt>This version:
@@ -677,7 +677,8 @@ <h2 id=tokenization><span class=secno>4. </span> Tokenization</h2>
677677
following tokens: ident, function, at-keyword, hash, string, bad-string,
678678
url, bad-url, delim, number, percentage, dimension, unicode-range,
679679
include-match, dash-match, prefix-match, suffix-match, substring-match,
680-
whitespace, cdo, cdc, colon, semicolon, comma, [, ], (, ), {, and }.
680+
column, whitespace, cdo, cdc, colon, semicolon, comma, [, ], (, ), {, and
681+
}.
681682

682683
<p> Ident, function, at-keyword, hash, string, and url tokens have a value
683684
composed of zero or more characters. Additionally, hash tokens have a type
@@ -1347,6 +1348,16 @@ <h3 id=token-diagrams><span class=secno>4.1. </span> Token Railroad
13471348
y=20></rect><text x=68 y=35>*=</text></g><path d="M86 31h10"></path><path
13481349
d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
13491350

1351+
<dt id=column-diagram>COLUMN
1352+
1353+
<dd><svg class=railroad-diagram height=62 width=137><g
1354+
transform="translate(.5 .5)"><path
1355+
d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path><path
1356+
d="M40 31h10"></path><g><path d="M50 31h0"></path><path
1357+
d="M86 31h0"></path><rect height=22 rx=10 ry=10 width=36 x=50
1358+
y=20></rect><text x=68 y=35>||</text></g><path d="M86 31h10"></path><path
1359+
d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
1360+
13501361
<dt id=cdo-diagram>CDO
13511362

13521363
<dd><svg class=railroad-diagram height=62 width=153><g
@@ -1686,6 +1697,10 @@ <h4 id=data-state><span class=secno>4.4.1. </span> <dfn id=data-state0>Data
16861697
<dd> If the <a href="#next-input-character"><i>next input
16871698
character</i></a> is U+003D EQUALS SIGN (=), consume it and emit a
16881699
dash-match token. Remain in this state.
1700+
<p> Otherwise, if the <a href="#next-input-character"><i>next input
1701+
character</i></a> is U+0073 VERTICAL LINE (|), consume it and emit a
1702+
column token. Remain in this state.
1703+
16891704
<p> Otherwise, emit a delim token with its value set to the <a
16901705
href="#current-input-character"><i>current input character</i></a>.
16911706
Remain in this state.

css-syntax/Overview.src.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ <h2>
424424
prefix-match,
425425
suffix-match,
426426
substring-match,
427+
column,
427428
whitespace,
428429
cdo,
429430
cdc,
@@ -541,6 +542,9 @@ <h3 id='token-diagrams'>
541542
<dt id="substring-match-diagram">SUBSTRING-MATCH</dt>
542543
<dd><svg class="railroad-diagram" width="137" height="62"><g transform="translate(.5 .5)"><path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path><path d="M40 31h10"></path><g><path d="M50 31h0"></path><path d="M86 31h0"></path><rect x="50" y="20" width="36" height="22" rx="10" ry="10"></rect><text x="68" y="35">*=</text></g><path d="M86 31h10"></path><path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg></dd>
543544

545+
<dt id="column-diagram">COLUMN</dt>
546+
<dd><svg class="railroad-diagram" width="137" height="62"><g transform="translate(.5 .5)"><path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path><path d="M40 31h10"></path><g><path d="M50 31h0"></path><path d="M86 31h0"></path><rect x="50" y="20" width="36" height="22" rx="10" ry="10"></rect><text x="68" y="35">||</text></g><path d="M86 31h10"></path><path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg></dd>
547+
544548
<dt id="cdo-diagram">CDO</dt>
545549
<dd><svg class="railroad-diagram" width="153" height="62"><g transform="translate(.5 .5)"><path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path><path d="M40 31h10"></path><g><path d="M50 31h0"></path><path d="M102 31h0"></path><rect x="50" y="20" width="52" height="22" rx="10" ry="10"></rect><text x="76" y="35">&lt;!--</text></g><path d="M102 31h10"></path><path d="M 112 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg></dd>
546550

@@ -897,6 +901,14 @@ <h4>
897901
and emit a dash-match token.
898902
Remain in this state.
899903

904+
<p>
905+
Otherwise,
906+
if the <i>next input character</i> is
907+
U+0073 VERTICAL LINE (|),
908+
consume it
909+
and emit a column token.
910+
Remain in this state.
911+
900912
<p>
901913
Otherwise,
902914
emit a delim token

0 commit comments

Comments
 (0)