Brian Sweeney

Results 59 issues of Brian Sweeney

In reviewing the style parsing logic, Dompdf does not validate user input against expected syntax (where defined) before processing. The result is that Dompdf records the declared but invalid value,...

css

The current font matching is based on exact-match comparisons, with a fallback to an internally-defined default. The W3C describes a font-matching algorithm that would provide better fallback when an exact...

enhancement
font-handling

I expected the `stream()` function to run `render()` for me if I hadn't already. _Originally posted by @syntheticminds in https://github.com/dompdf/dompdf/issues/2535#issuecomment-1022252577_

enhancement

If an outline is created without a non-positive size the raw value is unset. This causes an error in PHP 8.1 when trying to subset the font since there is...

If an image element's width/height is set to `auto` the values should be based on the image's intrinsic width/height. instead, php-svg-lib attempts to use the keyword as-is which can cause...

- use correct format for default fill color - set default color to black for better currentcolor support - add support for alpha (hex, rgba, hsla) fixes #24 fixes #68

Per the SVG spec the [viewBox](https://svgwg.org/svg2-draft/coords.html#ViewBoxAttribute) "(specifes) a rectangle in user space that should be mapped to the bounds of the SVG viewport established by the given element, taking into...

php-svg-lib currently only support user-unit values (i.e. no unit identifier has been provided) for measurements. Add support for units as defined in the [SVG specification](https://www.w3.org/TR/SVG2/coords.html#Units).

enhancement

Add support for alpha channel values for colors specified either via CSS or attributes. The current color parser appears to lack this ability.

enhancement