/[suikacvs]/markup/html/whatpm/Whatpm/CSS/Parser.pm
Suika

Diff of /markup/html/whatpm/Whatpm/CSS/Parser.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.70 by wakaba, Sat Aug 16 08:37:40 2008 UTC revision 1.71 by wakaba, Mon Sep 15 14:34:24 2008 UTC
# Line 2252  my $length_percentage_keyword_parser = s Line 2252  my $length_percentage_keyword_parser = s
2252      } elsif (not $has_sign and $t->{type} == IDENT_TOKEN) {      } elsif (not $has_sign and $t->{type} == IDENT_TOKEN) {
2253        my $value = lc $t->{value}; ## TODO: case        my $value = lc $t->{value}; ## TODO: case
2254        if ($Prop->{$prop_name}->{keyword}->{$value}) {        if ($Prop->{$prop_name}->{keyword}->{$value}) {
2255          $t = $tt->get_next_token;          if ($Prop->{$prop_name}->{keyword}->{$value} == 1 or
2256          return ($t, {$prop_name => ['KEYWORD', $value]});                      $self->{prop_value}->{$prop_name}->{$value}) {
2257              $t = $tt->get_next_token;
2258              return ($t, {$prop_name => ['KEYWORD', $value]});        
2259            }
2260        } elsif ($value eq 'inherit') {        } elsif ($value eq 'inherit') {
2261          $t = $tt->get_next_token;          $t = $tt->get_next_token;
2262          return ($t, {$prop_name => ['INHERIT']});          return ($t, {$prop_name => ['INHERIT']});
# Line 2845  $Prop->{width} = { Line 2848  $Prop->{width} = {
2848    key => 'width',    key => 'width',
2849    parse => $Prop->{'margin-top'}->{parse},    parse => $Prop->{'margin-top'}->{parse},
2850    #allow_negative => 0,    #allow_negative => 0,
2851    keyword => {auto => 1},    keyword => {
2852        auto => 1,
2853        
2854        ## Firefox 3
2855        '-moz-max-content' => 2, '-moz-min-content' => 2,
2856        '-moz-available' => 2, '-moz-fit-content' => 2,
2857            ## NOTE: By "2", it represents that the parser must be configured
2858            ## to allow these values.
2859      },
2860    initial => ['KEYWORD', 'auto'],    initial => ['KEYWORD', 'auto'],
2861    #inherited => 0,    #inherited => 0,
2862    compute => $compute_length,    compute => $compute_length,
# Line 2861  $Prop->{'min-width'} = { Line 2872  $Prop->{'min-width'} = {
2872    key => 'min_width',    key => 'min_width',
2873    parse => $Prop->{'margin-top'}->{parse},    parse => $Prop->{'margin-top'}->{parse},
2874    #allow_negative => 0,    #allow_negative => 0,
2875    #keyword => {},    keyword => {
2876        ## Firefox 3
2877        '-moz-max-content' => 2, '-moz-min-content' => 2,
2878        '-moz-available' => 2, '-moz-fit-content' => 2,
2879      },
2880    initial => ['DIMENSION', 0, 'px'],    initial => ['DIMENSION', 0, 'px'],
2881    #inherited => 0,    #inherited => 0,
2882    compute => $compute_length,    compute => $compute_length,
# Line 2875  $Prop->{'max-width'} = { Line 2890  $Prop->{'max-width'} = {
2890    key => 'max_width',    key => 'max_width',
2891    parse => $Prop->{'margin-top'}->{parse},    parse => $Prop->{'margin-top'}->{parse},
2892    #allow_negative => 0,    #allow_negative => 0,
2893    keyword => {none => 1},    keyword => {
2894        none => 1,
2895        
2896        ## Firefox 3
2897        '-moz-max-content' => 2, '-moz-min-content' => 2,
2898        '-moz-available' => 2, '-moz-fit-content' => 2,
2899      },
2900    initial => ['KEYWORD', 'none'],    initial => ['KEYWORD', 'none'],
2901    #inherited => 0,    #inherited => 0,
2902    compute => $compute_length,    compute => $compute_length,

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24