You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
currentColor in a border raises warnings and draws black, and a border with no colour is not drawn in the text colour #540
black border, and two "Uninitialized string offset 0" warnings from _setBorderLine() (src/Mpdf.php:17933, :17935)
color:#0f0; border:1px solid
green border: the initial value of border-color is currentColor
black border
currentColor is not converted, so the border's colour comes out empty, and _setBorderLine() reads $b['c'][0] from an empty string.
Fix. Resolve currentColor to the element's computed color once its properties are merged, for each border side and every other colour property that accepts it. A border with no colour takes currentColor.
Tests. Both rows, with the color inherited as well as set, and no warning.
Also from #552: other colours that convert to nothing. The same failure causes these. Measured on gravitypdf at d660a410:
Activity