9
9
rel =dcterms.rights >
10
10
< meta content ="Selectors Level 4 " name =dcterms.title >
11
11
< meta content =text name =dcterms.type >
12
- < meta content =2013-01-16 name =dcterms.issued >
12
+ < meta content =2013-02-01 name =dcterms.issued >
13
13
< meta content ="http://dev.w3.org/csswg/selectors4/ " name =dcterms.creator >
14
14
< meta content =W3C name =dcterms.publisher >
15
- < meta content ="http://www.w3.org/TR/2013/ED-selectors4-20130116 / "
15
+ < meta content ="http://www.w3.org/TR/2013/ED-selectors4-20130201 / "
16
16
name =dcterms.identifier >
17
17
< link href ="../default.css " rel =stylesheet type ="text/css ">
18
18
< style type ="text/css ">
29
29
30
30
< h1 id =title > Selectors Level 4</ h1 >
31
31
32
- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 16 January
32
+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 1 February
33
33
2013</ h2 >
34
34
35
35
< dl >
36
36
< dt > This version:
37
37
38
- < dd > < a href ="http://www.w3.org/TR/2013/ED-selectors4-20130116 / ">
39
- http://www.w3.org/TR/2013/ED-selectors4-20130116 /</ a >
38
+ < dd > < a href ="http://www.w3.org/TR/2013/ED-selectors4-20130201 / ">
39
+ http://www.w3.org/TR/2013/ED-selectors4-20130201 /</ a >
40
40
41
41
< dt > Editor's draft:
42
42
@@ -87,7 +87,8 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 January
87
87
title ="Massachusetts Institute of Technology "> MIT</ abbr > </ a > , < a
88
88
href ="http://www.ercim.eu/ "> < abbr
89
89
title ="European Research Consortium for Informatics and Mathematics "> ERCIM</ abbr > </ a > ,
90
- < a href ="http://www.keio.ac.jp/ "> Keio</ a > ), All Rights Reserved. W3C < a
90
+ < a href ="http://www.keio.ac.jp/ "> Keio</ a > , < a
91
+ href ="http://ev.buaa.edu.cn/ "> Beihang</ a > ), All Rights Reserved. W3C < a
91
92
href ="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer "> liability</ a > ,
92
93
< a
93
94
href ="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks "> trademark</ a >
@@ -1318,65 +1319,68 @@ <h3 id=pseudo-classes><span class=secno>3.4. </span> Pseudo-classes</h3>
1318
1319
1319
1320
< h3 id =pseudo-elements > < span class =secno > 3.5. </ span > Pseudo-elements</ h3 >
1320
1321
1321
- < p > < dfn id =pseudo-elements0 > Pseudo-elements</ dfn > create abstractions about
1322
- the document tree beyond those specified by the document language. For
1323
- instance, document languages do not offer mechanisms to access the first
1324
- letter or first line of an element's content. < a
1325
- href ="#pseudo-elements0 "> < i > Pseudo-elements</ i > </ a > allow authors to refer
1326
- to this otherwise inaccessible information. < a
1327
- href ="#pseudo-elements0 "> < i > Pseudo-elements</ i > </ a > may also provide
1328
- authors a way to refer to content that does not exist in the source
1329
- document (e.g., the < code > ::before</ code > and < code > ::after</ code > < a
1330
- href ="#pseudo-elements0 "> < i > pseudo-elements</ i > </ a > give access to
1331
- generated content in CSS < a href ="#CSS21 "
1322
+ < p > < dfn id =pseudo-element title = pseudo-element > Pseudo-elements</ dfn > create
1323
+ abstractions about the document tree beyond those specified by the
1324
+ document language. For instance, document languages do not offer
1325
+ mechanisms to access the first letter or first line of an element's
1326
+ content. < a href ="#pseudo-element "> < i > Pseudo-elements</ i > </ a > allow
1327
+ authors to refer to this otherwise inaccessible information. < a
1328
+ href ="#pseudo-element "> < i > Pseudo-elements</ i > </ a > may also provide authors
1329
+ a way to refer to content that does not exist in the source document
1330
+ (e.g., the < code > ::before</ code > and < code > ::after</ code > < a
1331
+ href ="#pseudo-element "> < i > pseudo-elements</ i > </ a > give access to generated
1332
+ content in CSS < a href ="#CSS21 "
1332
1333
rel =biblioentry > [CSS21]<!--{{CSS21}}--> </ a > ).
1333
1334
1334
- < p > A < i > pseudo-element</ i > is made of two colons (< code > ::</ code > ) followed
1335
- by the name of the < i > pseudo-element</ i > .
1335
+ < p > A < a href ="#pseudo-element "> < i > pseudo-element</ i > </ a > is made of two
1336
+ colons (< code > ::</ code > ) followed by the name of the < a
1337
+ href ="#pseudo-element "> < i > pseudo-element</ i > </ a > .
1336
1338
1337
1339
< p > This < code > ::</ code > notation was chosen in order to establish a
1338
1340
discrimination between < a href ="#pseudo-class "> < i > pseudo-classes</ i > </ a >
1339
1341
(which subclass existing elements) and < a
1340
- href ="#pseudo-elements0 "> < i > pseudo-elements</ i > </ a > (which are elements
1341
- not represented in the document tree). However, for compatibility with
1342
+ href ="#pseudo-element "> < i > pseudo-elements</ i > </ a > (which are elements not
1343
+ represented in the document tree). However, for compatibility with
1342
1344
existing style sheets, user agents must also accept the previous one-colon
1343
- notation for < a href ="#pseudo-elements0 "> < i > pseudo-elements</ i > </ a >
1345
+ notation for < a href ="#pseudo-element "> < i > pseudo-elements</ i > </ a >
1344
1346
introduced in CSS levels 1 and 2 (namely, < code > :first-line</ code > ,
1345
1347
< code > :first-letter</ code > , < code > :before</ code > and < code > :after</ code > ).
1346
1348
This compatibility notation is not allowed any other < a
1347
- href ="#pseudo-elements0 "> < i > pseudo-elements</ i > </ a > .
1349
+ href ="#pseudo-element "> < i > pseudo-elements</ i > </ a > .
1348
1350
1349
1351
< p class =note > A future version of this specification may allow multiple
1350
1352
pseudo-elements per selector.
1351
1353
1352
- < p > Syntactically, a < i > pseudo-element</ i > immediately follows the < a
1353
- href ="#compound "> < i > compound selector</ i > </ a > representing its < dfn
1354
- id =originating-element > originating element</ dfn > , i.e. the element to
1355
- which it is associated. Unless otherwise overridden by the definition of
1356
- the < i > pseudo-element</ i > :
1354
+ < p > Syntactically, a < a href =" #pseudo-element " > < i > pseudo-element</ i > </ a >
1355
+ immediately follows the < a href ="#compound "> < i > compound selector</ i > </ a >
1356
+ representing its < dfn id =originating-element > originating element</ dfn > ,
1357
+ i.e. the element to which it is associated. Unless otherwise overridden by
1358
+ the definition of the < a href =" #pseudo-element " > < i > pseudo-element</ i > </ a > :
1357
1359
1358
1360
< ul >
1359
- < li > only one < i > pseudo-element</ i > may appear per < a
1360
- href ="#complex "> < i > complex selector</ i > </ a >
1361
+ < li > only one < a href =" #pseudo-element " > < i > pseudo-element</ i > </ a > may
1362
+ appear per < a href ="#complex "> < i > complex selector</ i > </ a >
1361
1363
1362
- < li > the < i > pseudo-element</ i > must appear after the < a
1363
- href ="#compound "> < i > compound selector</ i > </ a > that represents the < a
1364
- href ="#subject "> subjects</ a > of the selector
1364
+ < li > the < a href =" #pseudo-element " > < i > pseudo-element</ i > </ a > must appear
1365
+ after the < a href ="#compound "> < i > compound selector</ i > </ a > that
1366
+ represents the < a href ="#subject "> subjects</ a > of the selector
1365
1367
1366
- < li > the < i > pseudo-element</ i > may appear only if the subject of the
1367
- selector is the last < a href =" #compound " > < i > compound selector </ i > </ a > in
1368
- the selector.
1368
+ < li > the < a href =" #pseudo-element " > < i > pseudo-element</ i > </ a > may appear
1369
+ only if the subject of the selector is the last < a
1370
+ href =" #compound " > < i > compound selector </ i > </ a > in the selector.
1369
1371
</ ul >
1370
1372
1371
- < p > A < i > pseudo-element</ i > may be immediately followed by any combination
1372
- of the < a href ="#useraction-pseudos "> user action pseudo-classes</ a > , in
1373
- which case the < i > pseudo-element</ i > is represented only when it is in the
1374
- corresponding state. Whether these pseudo-classes can match on the
1375
- < i > pseudo-element</ i > depends on the < a
1376
- href ="#pseudo-class "> < i > pseudo-class</ i > </ a > and < i > pseudo-element</ i > ”s
1377
- definitions: unless otherwise-specified, none of these < a
1378
- href ="#pseudo-class "> < i > pseudo-classes</ i > </ a > will match on the
1379
- < i > pseudo-element</ i > .
1373
+ < p > A < a href ="#pseudo-element "> < i > pseudo-element</ i > </ a > may be immediately
1374
+ followed by any combination of the < a href ="#useraction-pseudos "> user
1375
+ action pseudo-classes</ a > , in which case the < a
1376
+ href ="#pseudo-element "> < i > pseudo-element</ i > </ a > is represented only when
1377
+ it is in the corresponding state. Whether these pseudo-classes can match
1378
+ on the < a href ="#pseudo-element "> < i > pseudo-element</ i > </ a > depends on the
1379
+ < a href ="#pseudo-class "> < i > pseudo-class</ i > </ a > and < a
1380
+ href ="#pseudo-element "> < i > pseudo-element</ i > </ a > ”s definitions: unless
1381
+ otherwise-specified, none of these < a
1382
+ href ="#pseudo-class "> < i > pseudo-classes</ i > </ a > will match on the < a
1383
+ href ="#pseudo-element "> < i > pseudo-element</ i > </ a > .
1380
1384
1381
1385
< div class =example >
1382
1386
< p > For example, the < a href ="#hover-pseudo "> < code > :hover</ code > </ a >
@@ -1390,6 +1394,11 @@ <h3 id=pseudo-elements><span class=secno>3.5. </span>Pseudo-elements</h3>
1390
1394
will never match anything.
1391
1395
</ div >
1392
1396
1397
+ < p > The host language defines which pseudo-elements exist and their meaning.
1398
+ For CSS, < a href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{CSS21}}--> </ a >
1399
+ defines the ::before, ::after, ::first-line and ::first-letter
1400
+ pseudo-elements.
1401
+
1393
1402
< h3 id =case-sensitive > < span class =secno > 3.6. </ span > Characters and case
1394
1403
sensitivity</ h3 >
1395
1404
@@ -1725,8 +1734,9 @@ <h3 id=universal-selector><span class=secno>5.2. </span> Universal selector</h3>
1725
1734
< p > If a universal selector represented by < code > *</ code > (i.e. without a
1726
1735
namespace prefix) is not the only component of a < a
1727
1736
href ="#compound "> < i > compound selector</ i > </ a > or is immediately followed
1728
- by a < i > pseudo-element</ i > , then the < code > *</ code > may be omitted and the
1729
- universal selector's presence implied.
1737
+ by a < a href ="#pseudo-element "> < i > pseudo-element</ i > </ a > , then the
1738
+ < code > *</ code > may be omitted and the universal selector's presence
1739
+ implied.
1730
1740
1731
1741
< div class =example >
1732
1742
< p > Examples:
@@ -4418,9 +4428,10 @@ <h3 id=informative-references><span class=secno>20.2. </span> Informative
4418
4428
< dt id =HTML5 > [HTML5]
4419
4429
4420
4430
< dd > Ian Hickson. < a
4421
- href ="http://www.w3.org/TR/2011/WD-html5-20110525/ "> < cite > HTML5.</ cite > </ a >
4422
- 25 May 2011. W3C Working Draft. (Work in progress.) URL: < a
4423
- href ="http://www.w3.org/TR/2011/WD-html5-20110525/ "> http://www.w3.org/TR/2011/WD-html5-20110525/</ a >
4431
+ href ="http://www.w3.org/TR/2012/CR-html5-20121217/ "> < cite > HTML5.</ cite > </ a >
4432
+ 17 December 2012. W3C Candidate Recommendation. (Work in progress.) URL:
4433
+ < a
4434
+ href ="http://www.w3.org/TR/2012/CR-html5-20121217/ "> http://www.w3.org/TR/2012/CR-html5-20121217/</ a >
4424
4435
</ dd >
4425
4436
<!---->
4426
4437
0 commit comments