CSS-DOM

 view release on metacpan or  search on metacpan

lib/CSS/DOM/PropertyParser.pm  view on Meta::CPAN

    },
    
    clip => {
     format => '<shape>|auto',
     default => 'auto',
     inherit => 0,
    },
    
    color => {
     format => '<colour>',
     default => 'rgba(0,0,0,1)',
     inherit => 1,
    },
    
    content => {
     format => '( normal|none|open-quote|close-quote|no-open-quote|
                  no-close-quote|<string>|<url>|<counter>|<attr> )+',
     default => 'normal',
     inherit => 0,
     list => 1,
    },
    
   'counter-increment' => {
     format => '[(<identifier>) (<integer>)? ]+ | none',
     default => 'none',
     inherit => 0,
     list => 1,
    },
   'counter-reset' => {
     format => '[(<identifier>) (<integer>)? ]+ | none',
     default => 'none',
     inherit => 0,
     list => 1,
    },
    
   'cue-after' => {
     format => '<url>|none',
     default => 'none',
     inherit => 0,
    },
   'cue-before' => {
     format => '<url>|none',
     default => 'none',
     inherit => 0,
    },
    
    cue =>{
     format => '(<url>|none) (<url>|none)?',
     properties => {
      'cue-before' => [1],
      'cue-after' => [2,1],
     },
     serialise => sub {
       my $p = shift;
       my @vals = @$p{"cue-before", "cue-after"};
       $vals[1] eq $vals[0] and pop @vals;
       return join " ", map length $_ ? $_ : 'none', @vals;
     },
    },
    
    cursor => {
     format => '[(<url>) ,]* 
                (auto|crosshair|default|pointer|move|e-resize|
                 ne-resize|nw-resize|n-resize|se-resize|sw-resize|
                 s-resize|w-resize|text|wait|help|progress)',
     default => 'auto',
     inherit => 1,
     list => 1,
    },
    
    direction => {
     format => 'ltr|rtl',
     default => 'ltr',
     inherit => 1,
    },
    
    display => {
     format => 'inline|block|list-item|run-in|inline-block|table|
                inline-table|table-row-group|table-header-group|
                table-footer-group|table-row|table-column-group|
                table-column|table-cell|table-caption|none',
     default => 'inline',
     inherit => 0,
    },
    
    elevation => {
     format => '<angle>|below|level|above|higher|lower',
     default => '0',
     inherit => 1,
    },
    
   'empty-cells' => {
     format => 'show|hide',
     default => 'show',
     inherit => 1,
    },
    
    float => {
     format => 'left|right|none',
     default => 'none',
     inherit => 0,
    },
    
   'font-family' => { # aka typeface
     format => '(serif|sans-serif|cursive|fantasy|monospace|
                 <str/words>)
                [,(serif|sans-serif|cursive|fantasy|monospace|
                   <str/words>)]*',
     default => 'Times, serif',
     inherit => 1,
     list => 1,
    },
    
   'font-size' => {
     format => 'xx-small|x-small|small|medium|large|x-large|xx-large|
                larger|smaller|<length>|<percentage>',
     default => 'medium',
     inherit => 1,
    },
    
   'font-style' => {



( run in 1.411 second using v1.01-cache-2.11-cpan-524268b4103 )