getCssGradient() public method

Generates code for CSS gradient using various browser extensions.
public getCssGradient ( string $start_color, string $end_color ) : string
$start_color string Color of gradient start, hex value without #
$end_color string Color of gradient end, hex value without #
return string CSS code.
Example #1
0
 /**
  * Test for getCssGradient
  *
  * @return void
  */
 public function testgetCssGradient()
 {
     $this->assertEquals($this->object->getCssGradient('12345', '54321'), 'background-image: url(./themes/svg_gradient.php?from=12345&to=54321);' . "\n" . 'background-size: 100% 100%;' . "\n" . 'background: -webkit-gradient(linear, left top, left bottom, ' . 'from(#12345), to(#54321));' . "\n" . 'background: -webkit-linear-gradient(top, #12345, #54321);' . "\n" . 'background: -moz-linear-gradient(top, #12345, #54321);' . "\n" . 'background: -ms-linear-gradient(top, #12345, #54321);' . "\n" . 'background: -o-linear-gradient(top, #12345, #54321);');
 }