| 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']}); |
| 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, |
| 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, |
| 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, |