=encoding utf8


=head1 NAME

Mojo::DOM::Role::Style - A Mojo::DOM role for managing inline CSS styles


=head1 SYNOPSIS

    use My::Module;
    my $object = My::Module->new();
    print $object->as_string;
    
    use Mojo::DOM;
    use Mojo::File qw/path/;
    
    $\ = "\n"; $, = "\t";
    
    my $svg = Mojo::DOM->new->with_roles('+Style', '+File')->parse(path($ARGV[0])->slurp);
    
    print $svg->at('#rect10')->style('stroke', 'black');
    
    print $svg->at('#rect10')->style('stroke', 'black')->attr('x');
    
    print $svg->at('#rect10')->style('stroke', 'black')->{stroke};
    
    print $svg->at('#rect10')->style('stroke', 'black')->{fill};


=head1 DESCRIPTION

This module adds a convenience method for getting and setting a Mojo::DOM element's inline styl


=head2 Methods

=over

=item -

C<new>

Returns a new My::Module object.



=item -

C<as_string>

Returns a stringified representation of
the object. This is mainly for debugging
purposes.



=back


=head1 LICENSE

This is released under the Artistic 
License. See L<perlartistic|https://metacpan.org/pod/perlartistic>.


=head1 AUTHOR

Juerd - L<http://juerd.nl/|http://juerd.nl/>


=head1 SEE ALSO

L<perlpod|https://metacpan.org/pod/perlpod>, L<perlpodspec|https://metacpan.org/pod/perlpodspec>
