File Coverage

blib/lib/OCBNET/CSS3/Styles/Common.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


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::Common;
6             ####################################################################################################
7             our $VERSION = '0.2.5';
8             ####################################################################################################
9            
10 1     1   4143 use strict;
  1         2  
  1         36  
11 1     1   6 use warnings;
  1         2  
  1         30  
12            
13             ####################################################################################################
14            
15 1     1   6 use OCBNET::CSS3::Regex::Base;
  1         2  
  1         144  
16 1     1   5 use OCBNET::CSS3::Regex::Colors;
  1         2  
  1         88  
17 1     1   5 use OCBNET::CSS3::Regex::Numbers;
  1         2  
  1         174  
18            
19             ####################################################################################################
20             # register longhand properties for common properties
21             # these may be put into a specific module at some point
22             ####################################################################################################
23            
24             OCBNET::CSS3::Styles::register('color', $re_color, 'inherit');
25             OCBNET::CSS3::Styles::register('width', $re_length, 'auto');
26             OCBNET::CSS3::Styles::register('height', $re_length, 'auto');
27            
28             ####################################################################################################
29             ####################################################################################################
30             1;