| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
################################################################################################### |
|
2
|
|
|
|
|
|
|
# Copyright 2013/2014 by Marcel Greter |
|
3
|
|
|
|
|
|
|
# This file is part of OCBNET-CSS3 (GPL3) |
|
4
|
|
|
|
|
|
|
#################################################################################################### |
|
5
|
|
|
|
|
|
|
package OCBNET::CSS3::Styles::References; |
|
6
|
|
|
|
|
|
|
#################################################################################################### |
|
7
|
|
|
|
|
|
|
our $VERSION = '0.2.5'; |
|
8
|
|
|
|
|
|
|
#################################################################################################### |
|
9
|
|
|
|
|
|
|
|
|
10
|
7
|
|
|
7
|
|
7518
|
use strict; |
|
|
7
|
|
|
|
|
15
|
|
|
|
7
|
|
|
|
|
213
|
|
|
11
|
7
|
|
|
7
|
|
33
|
use warnings; |
|
|
7
|
|
|
|
|
14
|
|
|
|
7
|
|
|
|
|
202
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#################################################################################################### |
|
14
|
|
|
|
|
|
|
# import regular expressions |
|
15
|
|
|
|
|
|
|
#################################################################################################### |
|
16
|
|
|
|
|
|
|
|
|
17
|
7
|
|
|
7
|
|
36
|
use OCBNET::CSS3::Regex::Base; |
|
|
7
|
|
|
|
|
10
|
|
|
|
7
|
|
|
|
|
740
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# parse comments if module is loaded |
|
20
|
|
|
|
|
|
|
#************************************************************************************************** |
|
21
|
7
|
|
|
7
|
|
4286
|
use OCBNET::CSS3::DOM::Comment::Options; |
|
|
7
|
|
|
|
|
18
|
|
|
|
7
|
|
|
|
|
456
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
#################################################################################################### |
|
24
|
|
|
|
|
|
|
# register longhand properties for references |
|
25
|
|
|
|
|
|
|
# blocks with an id can be referenced by other blocks |
|
26
|
|
|
|
|
|
|
# they act as a parent to further resolve styles/options |
|
27
|
|
|
|
|
|
|
# you may declare multiple references as a comma separated list |
|
28
|
|
|
|
|
|
|
#################################################################################################### |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
OCBNET::CSS3::Styles::register('css-id', $re_identifier, undef, 0); |
|
31
|
|
|
|
|
|
|
OCBNET::CSS3::Styles::register('css-ref', $re_identifier, undef, 1); |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#################################################################################################### |
|
34
|
|
|
|
|
|
|
#################################################################################################### |
|
35
|
|
|
|
|
|
|
1; |