This file is indexed.

/usr/share/doc/python-tinycss-doc/html/parsing.html is in python-tinycss-doc 0.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Parsing with tinycss &#8212; tinycss 0.4 documentation</title>
    
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '0.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="tinycss 0.4 documentation" href="index.html" />
    <link rel="next" title="CSS 3 Modules" href="css3.html" />
    <link rel="prev" title="tinycss: CSS parser for Python" href="index.html" />
    <link rel="stylesheet" href="_static/custom.css" />

  </head>
  <body role="document">
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="parsing-with-tinycss">
<h1>Parsing with tinycss<a class="headerlink" href="#parsing-with-tinycss" title="Permalink to this headline"></a></h1>
<div class="section" id="quickstart">
<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline"></a></h2>
<p>Import <em>tinycss</em>, make a parser object with the features you want,
and parse a stylesheet:</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">tinycss</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">parser</span> <span class="o">=</span> <span class="n">tinycss</span><span class="o">.</span><span class="n">make_parser</span><span class="p">(</span><span class="s1">&#39;page3&#39;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">stylesheet</span> <span class="o">=</span> <span class="n">parser</span><span class="o">.</span><span class="n">parse_stylesheet_bytes</span><span class="p">(</span><span class="n">b</span><span class="s1">&#39;&#39;&#39;@import &quot;foo.css&quot;;</span>
<span class="gp">... </span><span class="s1">    p.error { color: red }  @lorem-ipsum;</span>
<span class="gp">... </span><span class="s1">    @page tables { size: landscape }&#39;&#39;&#39;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">stylesheet</span><span class="o">.</span><span class="n">rules</span>
<span class="go">[&lt;ImportRule 1:1 foo.css&gt;, &lt;RuleSet at 2:5 p.error&gt;, &lt;PageRule 3:5 (&#39;tables&#39;, None)&gt;]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">stylesheet</span><span class="o">.</span><span class="n">errors</span>
<span class="go">[ParseError(&#39;Parse error at 2:29, unknown at-rule in stylesheet context: @lorem-ipsum&#39;,)]</span>
</pre></div>
</div>
<p>You’ll get a <a class="reference internal" href="#tinycss.css21.Stylesheet" title="tinycss.css21.Stylesheet"><code class="xref py py-class docutils literal"><span class="pre">Stylesheet</span></code></a> object which contains
all the parsed content as well as a list of encountered errors.</p>
</div>
<div class="section" id="parsers">
<h2>Parsers<a class="headerlink" href="#parsers" title="Permalink to this headline"></a></h2>
<p>Parsers are subclasses of <a class="reference internal" href="#tinycss.css21.CSS21Parser" title="tinycss.css21.CSS21Parser"><code class="xref py py-class docutils literal"><span class="pre">tinycss.css21.CSS21Parser</span></code></a>. Various
subclasses add support for more syntax. You can choose which features to
enable by making a new parser class with multiple inheritance, but there
is also a convenience function to do that:</p>
<span class="target" id="module-tinycss"></span><dl class="function">
<dt id="tinycss.make_parser">
<code class="descclassname">tinycss.</code><code class="descname">make_parser</code><span class="sig-paren">(</span><em>*features</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss.html#make_parser"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.make_parser" title="Permalink to this definition"></a></dt>
<dd><p>Make a parser object with the chosen features.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>features</strong> &#8211; Positional arguments are base classes the new parser class will extend.
The string <code class="docutils literal"><span class="pre">'page3'</span></code> is accepted as short for
<a class="reference internal" href="css3.html#tinycss.page3.CSSPage3Parser" title="tinycss.page3.CSSPage3Parser"><code class="xref py py-class docutils literal"><span class="pre">CSSPage3Parser</span></code></a>.
The string <code class="docutils literal"><span class="pre">'fonts3'</span></code> is accepted as short for
<a class="reference internal" href="css3.html#tinycss.fonts3.CSSFonts3Parser" title="tinycss.fonts3.CSSFonts3Parser"><code class="xref py py-class docutils literal"><span class="pre">CSSFonts3Parser</span></code></a>.</li>
<li><strong>kwargs</strong> &#8211; Keyword arguments are passed to the parser’s constructor.</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">An instance of a new subclass of <code class="xref py py-class docutils literal"><span class="pre">CSS21Parser</span></code></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<span class="target" id="module-tinycss.css21"></span><div class="section" id="parsing-a-stylesheet">
<span id="parsing"></span><h3>Parsing a stylesheet<a class="headerlink" href="#parsing-a-stylesheet" title="Permalink to this headline"></a></h3>
<p>Parser classes have three different methods to parse CSS stylesheet,
depending on whether you have a file, a byte string, or an Unicode string.</p>
<dl class="class">
<dt id="tinycss.css21.CSS21Parser">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">CSS21Parser</code><a class="reference internal" href="_modules/tinycss/css21.html#CSS21Parser"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.CSS21Parser" title="Permalink to this definition"></a></dt>
<dd><p>Parser for CSS 2.1</p>
<p>This parser supports the core CSS syntax as well as &#64;import, &#64;media,
&#64;page and !important.</p>
<p>Note that property values are still not parsed, as UAs using this
parser may only support some properties or some values.</p>
<p>Currently the parser holds no state. It being a class only allows
subclassing and overriding its methods.</p>
<dl class="method">
<dt id="tinycss.css21.CSS21Parser.parse_stylesheet">
<code class="descname">parse_stylesheet</code><span class="sig-paren">(</span><em>css_unicode</em>, <em>encoding=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/css21.html#CSS21Parser.parse_stylesheet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.CSS21Parser.parse_stylesheet" title="Permalink to this definition"></a></dt>
<dd><p>Parse a stylesheet from an Unicode string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>css_unicode</strong> &#8211; A CSS stylesheet as an unicode string.</li>
<li><strong>encoding</strong> &#8211; The character encoding used to decode the stylesheet from bytes,
if any.</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A <a class="reference internal" href="#tinycss.css21.Stylesheet" title="tinycss.css21.Stylesheet"><code class="xref py py-class docutils literal"><span class="pre">Stylesheet</span></code></a>.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="tinycss.css21.CSS21Parser.parse_stylesheet_bytes">
<code class="descname">parse_stylesheet_bytes</code><span class="sig-paren">(</span><em>css_bytes</em>, <em>protocol_encoding=None</em>, <em>linking_encoding=None</em>, <em>document_encoding=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/css21.html#CSS21Parser.parse_stylesheet_bytes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.CSS21Parser.parse_stylesheet_bytes" title="Permalink to this definition"></a></dt>
<dd><p>Parse a stylesheet from a byte string.</p>
<p>The character encoding is determined from the passed metadata and the
<code class="docutils literal"><span class="pre">&#64;charset</span></code> rule in the stylesheet (if any).
If no encoding information is available or decoding fails,
decoding defaults to UTF-8 and then fall back on ISO-8859-1.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>css_bytes</strong> &#8211; A CSS stylesheet as a byte string.</li>
<li><strong>protocol_encoding</strong> &#8211; The &#8220;charset&#8221; parameter of a &#8220;Content-Type&#8221; HTTP header (if any),
or similar metadata for other protocols.</li>
<li><strong>linking_encoding</strong> &#8211; <code class="docutils literal"><span class="pre">&lt;link</span> <span class="pre">charset=&quot;&quot;&gt;</span></code> or other metadata from the linking mechanism
(if any)</li>
<li><strong>document_encoding</strong> &#8211; Encoding of the referring style sheet or document (if any)</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A <a class="reference internal" href="#tinycss.css21.Stylesheet" title="tinycss.css21.Stylesheet"><code class="xref py py-class docutils literal"><span class="pre">Stylesheet</span></code></a>.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="tinycss.css21.CSS21Parser.parse_stylesheet_file">
<code class="descname">parse_stylesheet_file</code><span class="sig-paren">(</span><em>css_file</em>, <em>protocol_encoding=None</em>, <em>linking_encoding=None</em>, <em>document_encoding=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/css21.html#CSS21Parser.parse_stylesheet_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.CSS21Parser.parse_stylesheet_file" title="Permalink to this definition"></a></dt>
<dd><p>Parse a stylesheet from a file or filename.</p>
<p>Character encoding-related parameters and behavior are the same
as in <a class="reference internal" href="#tinycss.css21.CSS21Parser.parse_stylesheet_bytes" title="tinycss.css21.CSS21Parser.parse_stylesheet_bytes"><code class="xref py py-meth docutils literal"><span class="pre">parse_stylesheet_bytes()</span></code></a>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>css_file</strong> &#8211; Either a file (any object with a <code class="xref py py-meth docutils literal"><span class="pre">read()</span></code> method)
or a filename.</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">A <a class="reference internal" href="#tinycss.css21.Stylesheet" title="tinycss.css21.Stylesheet"><code class="xref py py-class docutils literal"><span class="pre">Stylesheet</span></code></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="parsing-a-style-attribute">
<h3>Parsing a <code class="docutils literal"><span class="pre">style</span></code> attribute<a class="headerlink" href="#parsing-a-style-attribute" title="Permalink to this headline"></a></h3>
<dl class="method">
<dt id="tinycss.css21.CSS21Parser.parse_style_attr">
<code class="descclassname">CSS21Parser.</code><code class="descname">parse_style_attr</code><span class="sig-paren">(</span><em>css_source</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/css21.html#CSS21Parser.parse_style_attr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.CSS21Parser.parse_style_attr" title="Permalink to this definition"></a></dt>
<dd><p>Parse a &#8220;style&#8221; attribute (eg. of an HTML element).</p>
<p>This method only accepts Unicode as the source (HTML) document
is supposed to handle the character encoding.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>css_source</strong> &#8211; The attribute value, as an unicode string.</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">A tuple of the list of valid <a class="reference internal" href="#tinycss.css21.Declaration" title="tinycss.css21.Declaration"><code class="xref py py-class docutils literal"><span class="pre">Declaration</span></code></a> and
a list of <a class="reference internal" href="#tinycss.parsing.ParseError" title="tinycss.parsing.ParseError"><code class="xref py py-class docutils literal"><span class="pre">ParseError</span></code></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>
</div>
<div class="section" id="parsed-objects">
<h2>Parsed objects<a class="headerlink" href="#parsed-objects" title="Permalink to this headline"></a></h2>
<p>These data structures make up the results of the various parsing methods.</p>
<dl class="class">
<dt id="tinycss.parsing.ParseError">
<em class="property">class </em><code class="descclassname">tinycss.parsing.</code><code class="descname">ParseError</code><a class="reference internal" href="_modules/tinycss/parsing.html#ParseError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.parsing.ParseError" title="Permalink to this definition"></a></dt>
<dd><p>Details about a CSS syntax error. Usually indicates that something
(a rule or a declaration) was ignored and will not appear as a parsed
object.</p>
<p>This exception is typically logged in a list rather than being propagated
to the user API.</p>
<dl class="attribute">
<dt id="tinycss.css21.ParseError.line">
<code class="descname">line</code><a class="headerlink" href="#tinycss.css21.ParseError.line" title="Permalink to this definition"></a></dt>
<dd><p>Source line where the error occured.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.ParseError.column">
<code class="descname">column</code><a class="headerlink" href="#tinycss.css21.ParseError.column" title="Permalink to this definition"></a></dt>
<dd><p>Column in the source line where the error occured.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.ParseError.reason">
<code class="descname">reason</code><a class="headerlink" href="#tinycss.css21.ParseError.reason" title="Permalink to this definition"></a></dt>
<dd><p>What happend (a string).</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.css21.Stylesheet">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">Stylesheet</code><a class="reference internal" href="_modules/tinycss/css21.html#Stylesheet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.Stylesheet" title="Permalink to this definition"></a></dt>
<dd><p>A parsed CSS stylesheet.</p>
<dl class="attribute">
<dt id="tinycss.css21.Stylesheet.rules">
<code class="descname">rules</code><a class="headerlink" href="#tinycss.css21.Stylesheet.rules" title="Permalink to this definition"></a></dt>
<dd><p>A mixed list, in source order, of <a class="reference internal" href="#tinycss.css21.RuleSet" title="tinycss.css21.RuleSet"><code class="xref py py-class docutils literal"><span class="pre">RuleSet</span></code></a> and various
at-rules such as <a class="reference internal" href="#tinycss.css21.ImportRule" title="tinycss.css21.ImportRule"><code class="xref py py-class docutils literal"><span class="pre">ImportRule</span></code></a>, <a class="reference internal" href="#tinycss.css21.MediaRule" title="tinycss.css21.MediaRule"><code class="xref py py-class docutils literal"><span class="pre">MediaRule</span></code></a>
and <a class="reference internal" href="#tinycss.css21.PageRule" title="tinycss.css21.PageRule"><code class="xref py py-class docutils literal"><span class="pre">PageRule</span></code></a>.
Use their <code class="xref py py-obj docutils literal"><span class="pre">at_keyword</span></code> attribute to distinguish them.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.Stylesheet.errors">
<code class="descname">errors</code><a class="headerlink" href="#tinycss.css21.Stylesheet.errors" title="Permalink to this definition"></a></dt>
<dd><p>A list of <a class="reference internal" href="#tinycss.parsing.ParseError" title="tinycss.parsing.ParseError"><code class="xref py py-class docutils literal"><span class="pre">ParseError</span></code></a>. Invalid rules and declarations
are ignored, with the details logged in this list.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.Stylesheet.encoding">
<code class="descname">encoding</code><a class="headerlink" href="#tinycss.css21.Stylesheet.encoding" title="Permalink to this definition"></a></dt>
<dd><p>The character encoding that was used to decode the stylesheet
from bytes, or <code class="docutils literal"><span class="pre">None</span></code> for Unicode stylesheets.</p>
</dd></dl>

</dd></dl>

<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">All subsequent objects have <code class="xref py py-obj docutils literal"><span class="pre">line</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">column</span></code> attributes (not
repeated every time fore brevity) that indicate where in the CSS source
this object was read.</p>
</div>
<dl class="class">
<dt id="tinycss.css21.RuleSet">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">RuleSet</code><a class="reference internal" href="_modules/tinycss/css21.html#RuleSet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.RuleSet" title="Permalink to this definition"></a></dt>
<dd><p>A ruleset.</p>
<dl class="attribute">
<dt id="tinycss.css21.RuleSet.at_keyword">
<code class="descname">at_keyword</code><a class="headerlink" href="#tinycss.css21.RuleSet.at_keyword" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">None</span></code>. Helps to tell rulesets apart from at-rules.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.RuleSet.selector">
<code class="descname">selector</code><a class="headerlink" href="#tinycss.css21.RuleSet.selector" title="Permalink to this definition"></a></dt>
<dd><p>The selector as a <a class="reference internal" href="#tinycss.token_data.TokenList" title="tinycss.token_data.TokenList"><code class="xref py py-class docutils literal"><span class="pre">TokenList</span></code></a>.
In CSS 3, this is actually called a selector group.</p>
<p><code class="docutils literal"><span class="pre">rule.selector.as_css()</span></code> gives the selector as a string.
This string can be used with <em>cssselect</em>, see <a class="reference internal" href="css3.html#selectors3"><span class="std std-ref">Selectors 3</span></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.RuleSet.declarations">
<code class="descname">declarations</code><a class="headerlink" href="#tinycss.css21.RuleSet.declarations" title="Permalink to this definition"></a></dt>
<dd><p>The list of <a class="reference internal" href="#tinycss.css21.Declaration" title="tinycss.css21.Declaration"><code class="xref py py-class docutils literal"><span class="pre">Declaration</span></code></a>, in source order.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.css21.ImportRule">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">ImportRule</code><a class="reference internal" href="_modules/tinycss/css21.html#ImportRule"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.ImportRule" title="Permalink to this definition"></a></dt>
<dd><p>A parsed &#64;import rule.</p>
<dl class="attribute">
<dt id="tinycss.css21.ImportRule.at_keyword">
<code class="descname">at_keyword</code><a class="headerlink" href="#tinycss.css21.ImportRule.at_keyword" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">'&#64;import'</span></code></p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.ImportRule.uri">
<code class="descname">uri</code><a class="headerlink" href="#tinycss.css21.ImportRule.uri" title="Permalink to this definition"></a></dt>
<dd><p>The URI to be imported, as read from the stylesheet.
(URIs are not made absolute.)</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.ImportRule.media">
<code class="descname">media</code><a class="headerlink" href="#tinycss.css21.ImportRule.media" title="Permalink to this definition"></a></dt>
<dd><p>For CSS 2.1 without media queries: the media types
as a list of strings.
This attribute is explicitly <code class="docutils literal"><span class="pre">['all']</span></code> if the media was omitted
in the source.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.css21.MediaRule">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">MediaRule</code><a class="reference internal" href="_modules/tinycss/css21.html#MediaRule"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.MediaRule" title="Permalink to this definition"></a></dt>
<dd><p>A parsed &#64;media rule.</p>
<dl class="attribute">
<dt id="tinycss.css21.MediaRule.at_keyword">
<code class="descname">at_keyword</code><a class="headerlink" href="#tinycss.css21.MediaRule.at_keyword" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">'&#64;media'</span></code></p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.MediaRule.media">
<code class="descname">media</code><a class="headerlink" href="#tinycss.css21.MediaRule.media" title="Permalink to this definition"></a></dt>
<dd><p>For CSS 2.1 without media queries: the media types
as a list of strings.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.MediaRule.rules">
<code class="descname">rules</code><a class="headerlink" href="#tinycss.css21.MediaRule.rules" title="Permalink to this definition"></a></dt>
<dd><p>The list <a class="reference internal" href="#tinycss.css21.RuleSet" title="tinycss.css21.RuleSet"><code class="xref py py-class docutils literal"><span class="pre">RuleSet</span></code></a> and various at-rules inside the &#64;media
block, in source order.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.css21.PageRule">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">PageRule</code><a class="reference internal" href="_modules/tinycss/css21.html#PageRule"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.PageRule" title="Permalink to this definition"></a></dt>
<dd><p>A parsed CSS 2.1 &#64;page rule.</p>
<dl class="attribute">
<dt id="tinycss.css21.PageRule.at_keyword">
<code class="descname">at_keyword</code><a class="headerlink" href="#tinycss.css21.PageRule.at_keyword" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">'&#64;page'</span></code></p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.PageRule.selector">
<code class="descname">selector</code><a class="headerlink" href="#tinycss.css21.PageRule.selector" title="Permalink to this definition"></a></dt>
<dd><p>The page selector.
In CSS 2.1 this is either <code class="docutils literal"><span class="pre">None</span></code> (no selector), or the string
<code class="docutils literal"><span class="pre">'first'</span></code>, <code class="docutils literal"><span class="pre">'left'</span></code> or <code class="docutils literal"><span class="pre">'right'</span></code> for the pseudo class
of the same name.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.PageRule.specificity">
<code class="descname">specificity</code><a class="headerlink" href="#tinycss.css21.PageRule.specificity" title="Permalink to this definition"></a></dt>
<dd><p>Specificity of the page selector. This is a tuple of four integers,
but these tuples are mostly meant to be compared to each other.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.PageRule.declarations">
<code class="descname">declarations</code><a class="headerlink" href="#tinycss.css21.PageRule.declarations" title="Permalink to this definition"></a></dt>
<dd><p>A list of <a class="reference internal" href="#tinycss.css21.Declaration" title="tinycss.css21.Declaration"><code class="xref py py-class docutils literal"><span class="pre">Declaration</span></code></a>, in source order.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.PageRule.at_rules">
<code class="descname">at_rules</code><a class="headerlink" href="#tinycss.css21.PageRule.at_rules" title="Permalink to this definition"></a></dt>
<dd><p>The list of parsed at-rules inside the &#64;page block, in source order.
Always empty for CSS 2.1.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.css21.Declaration">
<em class="property">class </em><code class="descclassname">tinycss.css21.</code><code class="descname">Declaration</code><a class="reference internal" href="_modules/tinycss/css21.html#Declaration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.css21.Declaration" title="Permalink to this definition"></a></dt>
<dd><p>A property declaration.</p>
<dl class="attribute">
<dt id="tinycss.css21.Declaration.name">
<code class="descname">name</code><a class="headerlink" href="#tinycss.css21.Declaration.name" title="Permalink to this definition"></a></dt>
<dd><p>The property name as a normalized (lower-case) string.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.Declaration.value">
<code class="descname">value</code><a class="headerlink" href="#tinycss.css21.Declaration.value" title="Permalink to this definition"></a></dt>
<dd><p>The property value as a <a class="reference internal" href="#tinycss.token_data.TokenList" title="tinycss.token_data.TokenList"><code class="xref py py-class docutils literal"><span class="pre">TokenList</span></code></a>.</p>
<p>The value is not parsed. UAs using tinycss may only support
some properties or some values and tinycss does not know which.
They need to parse values themselves and ignore declarations with
unknown or unsupported properties or values, and fall back
on any previous declaration.</p>
<p><a class="reference internal" href="css3.html#module-tinycss.color3" title="tinycss.color3"><code class="xref py py-mod docutils literal"><span class="pre">tinycss.color3</span></code></a> parses color values, but other values
will need specific parsing/validation code.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.css21.Declaration.priority">
<code class="descname">priority</code><a class="headerlink" href="#tinycss.css21.Declaration.priority" title="Permalink to this definition"></a></dt>
<dd><p>Either the string <code class="docutils literal"><span class="pre">'important'</span></code> or <code class="docutils literal"><span class="pre">None</span></code>.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="tokens">
<h2>Tokens<a class="headerlink" href="#tokens" title="Permalink to this headline"></a></h2>
<p>Some parts of a stylesheet (such as selectors in CSS 2.1 or property values)
are not parsed by tinycss. They appear as tokens instead.</p>
<span class="target" id="module-tinycss.token_data"></span><dl class="class">
<dt id="tinycss.token_data.TokenList">
<em class="property">class </em><code class="descclassname">tinycss.token_data.</code><code class="descname">TokenList</code><a class="reference internal" href="_modules/tinycss/token_data.html#TokenList"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.TokenList" title="Permalink to this definition"></a></dt>
<dd><p>A mixed list of <a class="reference internal" href="#tinycss.token_data.Token" title="tinycss.token_data.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a> and
<a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a> objects.</p>
<p>This is a subclass of the builtin <code class="xref py py-class docutils literal"><span class="pre">list</span></code> type.
It can be iterated, indexed and sliced as usual, but also has some
additional API:</p>
<dl class="attribute">
<dt id="tinycss.token_data.TokenList.line">
<code class="descname">line</code><a class="headerlink" href="#tinycss.token_data.TokenList.line" title="Permalink to this definition"></a></dt>
<dd><p>The line number in the CSS source of the first token.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.TokenList.column">
<code class="descname">column</code><a class="headerlink" href="#tinycss.token_data.TokenList.column" title="Permalink to this definition"></a></dt>
<dd><p>The column number (inside a source line) of the first token.</p>
</dd></dl>

<dl class="method">
<dt id="tinycss.token_data.TokenList.as_css">
<code class="descname">as_css</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/token_data.html#TokenList.as_css"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.TokenList.as_css" title="Permalink to this definition"></a></dt>
<dd><p>Return as an Unicode string the CSS representation of the tokens,
as parsed in the source.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.token_data.Token">
<em class="property">class </em><code class="descclassname">tinycss.token_data.</code><code class="descname">Token</code><a class="reference internal" href="_modules/tinycss/token_data.html#Token"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.Token" title="Permalink to this definition"></a></dt>
<dd><p>A single atomic token.</p>
<dl class="attribute">
<dt id="tinycss.token_data.Token.is_container">
<code class="descname">is_container</code><a class="headerlink" href="#tinycss.token_data.Token.is_container" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">False</span></code>.
Helps to tell <a class="reference internal" href="#tinycss.token_data.Token" title="tinycss.token_data.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a> apart from <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.Token.type">
<code class="descname">type</code><a class="headerlink" href="#tinycss.token_data.Token.type" title="Permalink to this definition"></a></dt>
<dd><p>The type of token as a string:</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">S</span></code></dt>
<dd>A sequence of white space</dd>
<dt><code class="docutils literal"><span class="pre">IDENT</span></code></dt>
<dd>An identifier: a name that does not start with a digit.
A name is a sequence of letters, digits, <code class="docutils literal"><span class="pre">_</span></code>, <code class="docutils literal"><span class="pre">-</span></code>, escaped
characters and non-ASCII characters. Eg:&nbsp;<code class="docutils literal"><span class="pre">margin-left</span></code></dd>
<dt><code class="docutils literal"><span class="pre">HASH</span></code></dt>
<dd><code class="docutils literal"><span class="pre">#</span></code> followed immediately by a name. Eg:&nbsp;<code class="docutils literal"><span class="pre">#ff8800</span></code></dd>
<dt><code class="docutils literal"><span class="pre">ATKEYWORD</span></code></dt>
<dd><code class="docutils literal"><span class="pre">&#64;</span></code> followed immediately by an identifier. Eg:&nbsp;<code class="docutils literal"><span class="pre">&#64;page</span></code></dd>
<dt><code class="docutils literal"><span class="pre">URI</span></code></dt>
<dd>Eg:&nbsp;<code class="docutils literal"><span class="pre">url(foo)</span></code> The content may or may not be quoted.</dd>
<dt><code class="docutils literal"><span class="pre">UNICODE-RANGE</span></code></dt>
<dd><code class="docutils literal"><span class="pre">U+</span></code> followed by one or two hexadecimal
Unicode codepoints. Eg:&nbsp;<code class="docutils literal"><span class="pre">U+20-00FF</span></code></dd>
<dt><code class="docutils literal"><span class="pre">INTEGER</span></code></dt>
<dd>An integer with an optional <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> sign</dd>
<dt><code class="docutils literal"><span class="pre">NUMBER</span></code></dt>
<dd>A non-integer number  with an optional <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> sign</dd>
<dt><code class="docutils literal"><span class="pre">DIMENSION</span></code></dt>
<dd>An integer or number followed immediately by an
identifier (the unit). Eg:&nbsp;<code class="docutils literal"><span class="pre">12px</span></code></dd>
<dt><code class="docutils literal"><span class="pre">PERCENTAGE</span></code></dt>
<dd>An integer or number followed immediately by <code class="docutils literal"><span class="pre">%</span></code></dd>
<dt><code class="docutils literal"><span class="pre">STRING</span></code></dt>
<dd>A string, quoted with <code class="docutils literal"><span class="pre">&quot;</span></code> or <code class="docutils literal"><span class="pre">'</span></code></dd>
<dt><code class="docutils literal"><span class="pre">:</span></code> or <code class="docutils literal"><span class="pre">;</span></code></dt>
<dd>That character.</dd>
<dt><code class="docutils literal"><span class="pre">DELIM</span></code></dt>
<dd>A single character not matched in another token. Eg:&nbsp;<code class="docutils literal"><span class="pre">,</span></code></dd>
</dl>
<p>See the source of the <a class="reference internal" href="#module-tinycss.token_data" title="tinycss.token_data"><code class="xref py py-mod docutils literal"><span class="pre">token_data</span></code></a> module for the precise
regular expressions that match various tokens.</p>
<p>Note that other token types exist in the early tokenization steps,
but these are ignored, are syntax errors, or are later transformed
into <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a> or <a class="reference internal" href="#tinycss.token_data.FunctionToken" title="tinycss.token_data.FunctionToken"><code class="xref py py-class docutils literal"><span class="pre">FunctionToken</span></code></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.Token.value">
<code class="descname">value</code><a class="headerlink" href="#tinycss.token_data.Token.value" title="Permalink to this definition"></a></dt>
<dd><p>The parsed value:</p>
<ul class="simple">
<li>INTEGER, NUMBER, PERCENTAGE or DIMENSION tokens: the numeric value
as an int or float.</li>
<li>STRING tokens: the unescaped string without quotes</li>
<li>URI tokens: the unescaped URI without quotes or
<code class="docutils literal"><span class="pre">url(</span></code> and <code class="docutils literal"><span class="pre">)</span></code> markers.</li>
<li>IDENT, ATKEYWORD or HASH tokens: the unescaped token,
with <code class="docutils literal"><span class="pre">&#64;</span></code> or <code class="docutils literal"><span class="pre">#</span></code> markers left as-is</li>
<li>Other tokens: same as <a class="reference internal" href="#tinycss.token_data.Token.as_css" title="tinycss.token_data.Token.as_css"><code class="xref py py-attr docutils literal"><span class="pre">as_css</span></code></a></li>
</ul>
<p><em>Unescaped</em> refers to the various escaping methods based on the
backslash <code class="docutils literal"><span class="pre">\</span></code> character in CSS syntax.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.Token.unit">
<code class="descname">unit</code><a class="headerlink" href="#tinycss.token_data.Token.unit" title="Permalink to this definition"></a></dt>
<dd><ul class="simple">
<li>DIMENSION tokens: the normalized (unescaped, lower-case)
unit name as a string. eg. <code class="docutils literal"><span class="pre">'px'</span></code></li>
<li>PERCENTAGE tokens: the string <code class="docutils literal"><span class="pre">'%'</span></code></li>
<li>Other tokens: <code class="docutils literal"><span class="pre">None</span></code></li>
</ul>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.Token.line">
<code class="descname">line</code><a class="headerlink" href="#tinycss.token_data.Token.line" title="Permalink to this definition"></a></dt>
<dd><p>The line number in the CSS source of the start of this token.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.Token.column">
<code class="descname">column</code><a class="headerlink" href="#tinycss.token_data.Token.column" title="Permalink to this definition"></a></dt>
<dd><p>The column number (inside a source line) of the start of this token.</p>
</dd></dl>

<dl class="method">
<dt id="tinycss.token_data.Token.as_css">
<code class="descname">as_css</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/token_data.html#Token.as_css"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.Token.as_css" title="Permalink to this definition"></a></dt>
<dd><p>Return as an Unicode string the CSS representation of the token,
as parsed in the source.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.token_data.ContainerToken">
<em class="property">class </em><code class="descclassname">tinycss.token_data.</code><code class="descname">ContainerToken</code><a class="reference internal" href="_modules/tinycss/token_data.html#ContainerToken"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.ContainerToken" title="Permalink to this definition"></a></dt>
<dd><p>A token that contains other (nested) tokens.</p>
<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.is_container">
<code class="descname">is_container</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.is_container" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">True</span></code>.
Helps to tell <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a> apart from <a class="reference internal" href="#tinycss.token_data.Token" title="tinycss.token_data.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.type">
<code class="descname">type</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.type" title="Permalink to this definition"></a></dt>
<dd><p>The type of token as a string. One of <code class="docutils literal"><span class="pre">{</span></code>, <code class="docutils literal"><span class="pre">(</span></code>, <code class="docutils literal"><span class="pre">[</span></code> or
<code class="docutils literal"><span class="pre">FUNCTION</span></code>. For <code class="docutils literal"><span class="pre">FUNCTION</span></code>, the object is actually a
<a class="reference internal" href="#tinycss.token_data.FunctionToken" title="tinycss.token_data.FunctionToken"><code class="xref py py-class docutils literal"><span class="pre">FunctionToken</span></code></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.unit">
<code class="descname">unit</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.unit" title="Permalink to this definition"></a></dt>
<dd><p>Always <code class="docutils literal"><span class="pre">None</span></code>. Included to make <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a> behave
more like <a class="reference internal" href="#tinycss.token_data.Token" title="tinycss.token_data.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a>.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.content">
<code class="descname">content</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.content" title="Permalink to this definition"></a></dt>
<dd><p>A list of <a class="reference internal" href="#tinycss.token_data.Token" title="tinycss.token_data.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a> or nested <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a>,
not including the opening or closing token.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.line">
<code class="descname">line</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.line" title="Permalink to this definition"></a></dt>
<dd><p>The line number in the CSS source of the start of this token.</p>
</dd></dl>

<dl class="attribute">
<dt id="tinycss.token_data.ContainerToken.column">
<code class="descname">column</code><a class="headerlink" href="#tinycss.token_data.ContainerToken.column" title="Permalink to this definition"></a></dt>
<dd><p>The column number (inside a source line) of the start of this token.</p>
</dd></dl>

<dl class="method">
<dt id="tinycss.token_data.ContainerToken.as_css">
<code class="descname">as_css</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/tinycss/token_data.html#ContainerToken.as_css"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.ContainerToken.as_css" title="Permalink to this definition"></a></dt>
<dd><p>Return as an Unicode string the CSS representation of the token,
as parsed in the source.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="tinycss.token_data.FunctionToken">
<em class="property">class </em><code class="descclassname">tinycss.token_data.</code><code class="descname">FunctionToken</code><a class="reference internal" href="_modules/tinycss/token_data.html#FunctionToken"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#tinycss.token_data.FunctionToken" title="Permalink to this definition"></a></dt>
<dd><p>A specialized <a class="reference internal" href="#tinycss.token_data.ContainerToken" title="tinycss.token_data.ContainerToken"><code class="xref py py-class docutils literal"><span class="pre">ContainerToken</span></code></a> for a <code class="docutils literal"><span class="pre">FUNCTION</span></code> group.
Has an additional attribute:</p>
<dl class="attribute">
<dt id="tinycss.token_data.FunctionToken.function_name">
<code class="descname">function_name</code><a class="headerlink" href="#tinycss.token_data.FunctionToken.function_name" title="Permalink to this definition"></a></dt>
<dd><p>The unescaped name of the function, with the <code class="docutils literal"><span class="pre">(</span></code> marker removed.</p>
</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Parsing with tinycss</a><ul>
<li><a class="reference internal" href="#quickstart">Quickstart</a></li>
<li><a class="reference internal" href="#parsers">Parsers</a><ul>
<li><a class="reference internal" href="#parsing-a-stylesheet">Parsing a stylesheet</a></li>
<li><a class="reference internal" href="#parsing-a-style-attribute">Parsing a <code class="docutils literal"><span class="pre">style</span></code> attribute</a></li>
</ul>
</li>
<li><a class="reference internal" href="#parsed-objects">Parsed objects</a></li>
<li><a class="reference internal" href="#tokens">Tokens</a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
      <li>Previous: <a href="index.html" title="previous chapter">tinycss: CSS parser for Python</a></li>
      <li>Next: <a href="css3.html" title="next chapter">CSS 3 Modules</a></li>
  </ul></li>
</ul>
</div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/parsing.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2016, Simon Sapin.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.4.9</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.8</a>
      
      |
      <a href="_sources/parsing.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>