source: project/release/4/colorize/trunk/tests/several-commented-attributes.css.expected @ 27137

Last change on this file since 27137 was 27137, checked in by sjamaan, 9 years ago

colorize: Also allow highlighting of strings and comments in value position

File size: 1.6 KB
Line 
1<span class="comment">/* Here&#x27;s a test */</span>
2html {
3  <span class="comment">/**
4   * Images can be full URIs (dragging in another pretty large RFC), which can
5   * *optionally* be quoted (why all this unneccessary optional stuff?)
6   */</span>
7  <span class="variable">background-image</span>: url(<span class="string">&quot;path/to/image.png&quot;</span>) <span class="special">!important;</span>
8
9  <span class="comment">/* You can use named &quot;counters&quot; (what, there are no variables in CSS?!) */</span>
10  <span class="variable">content</span>: <span class="string">&quot;Chapter &quot;</span> counter(my-chapter-counter) <span class="string">&quot;. &quot;</span>;
11  <span class="variable">counter-increment</span>: my-chapter-counter;      <span class="comment">/* Add 1 to chapter */</span>
12
13  <span class="comment">/**
14   * Lists of font names (strings), separated by spaces and possibly quoted.
15   * Also, a restricted set of specially-defined &quot;generic font families&quot;
16   * like serif, fantasy(WTF) and monospace, and even a set of specially-defined
17   * &quot;system fonts&quot; like status-bar, small-caption, icon and menu.
18   */</span>
19  <span class="variable">font-family</span>: Helvetica, <span class="string">&quot;Comic Sans MS&quot;</span>, fantasy, small-caption;
20
21  <span class="comment">/**
22   * Many different size types: em, ex, px, pt, in, cm, mm, percentage, unit-less.
23   * In margins and paddings, you can provide 1, 2, 3 or 4 values which determine
24   * how they expand into -top, -right, -bottom and -left.
25   */</span>
26  <span class="variable">margin</span>: 1px 2em 30% 0;
27}
Note: See TracBrowser for help on using the repository browser.