forked from dompdf/php-svg-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dompdf#14 from sgc-fireball/master
Fixes SVG color handling
- Loading branch information
Showing
6 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,8 @@ | |
}, | ||
"require": { | ||
"sabberworm/php-css-parser": "8.1.*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~5.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* @package php-svg-lib | ||
* @link http://github.com/PhenX/php-svg-lib | ||
* @author Fabien Ménager <[email protected]> | ||
* @author Fabien Ménager <[email protected]> | ||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
*/ | ||
|
||
|
@@ -33,8 +33,8 @@ protected function after() | |
if ($this->hasShape) { | ||
$style = $surface->getStyle(); | ||
|
||
$fill = $style->fill && $style->fill !== "none"; | ||
$stroke = $style->stroke && $style->stroke !== "none"; | ||
$fill = $style->fill && is_array($style->fill); | ||
$stroke = $style->stroke && is_array($style->stroke); | ||
|
||
if ($fill) { | ||
if ($stroke) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters