84 |
## TODO: ordering |
## TODO: ordering |
85 |
## TODO: any spec? |
## TODO: any spec? |
86 |
my $r = ''; |
my $r = ''; |
87 |
for my $prop_def (grep {$_->{compute}} values %$Whatpm::CSS::Parser::Prop) { |
for my $prop_def (sort {$a->{css} cmp $b->{css}} |
88 |
|
grep {$_->{compute} or $_->{compute_multiple}} |
89 |
|
values %$Whatpm::CSS::Parser::Prop) { |
90 |
my $prop_value = $$self->{cascade}->get_computed_value |
my $prop_value = $$self->{cascade}->get_computed_value |
91 |
($$self->{element}, $prop_def->{css}); |
($$self->{element}, $prop_def->{css}); |
92 |
my $s = $prop_def->{serialize}->($self, $prop_def->{css}, $prop_value); |
my $s = $prop_def->{serialize}->($self, $prop_def->{css}, $prop_value); |
98 |
$r .= " /* $prop_def->{css}: ???; */\n"; |
$r .= " /* $prop_def->{css}: ???; */\n"; |
99 |
} |
} |
100 |
} |
} |
101 |
|
|
102 |
|
## ISSUE: Should we include CSS properties that are not supported? |
103 |
|
|
104 |
return $r; |
return $r; |
105 |
} # css_text |
} # css_text |
106 |
|
|