ThomasWeinert/FluentDOM

Allow array syntax for FluentDOMStyle::css

Closed this issue · 0 comments

Implement an FluentDOMStyle::css property, that allows to get/set css style properties using array syntax.

  $border = $fd->css['border'];
  $fd->css['border'] = 'none';
  $fd->css = array('border' => 'none', 'color' => '#000');

This would be syntax sugar for the FluentDOMStyle::css method.