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
Commit c74ee6c
Browse filesBrowse the repository at this point in the historyBrowse files
Load a stylesheet url() with spaces, parentheses, inner quotes or an SVG data URI
A background image named in a stylesheet was not loaded when its local path had spaces or parentheses, when the url() had whitespace inside its parentheses, or when it was a percent-encoded SVG data URI such as Bootstrap's form-select arrow.
- url() is read as CSS reads it, in either quote or unquoted. A backslash before a quote, a parenthesis or whitespace is dropped; other backslashes are kept for Windows paths.
- A local path that is not found as written is tried percent-decoded.
- A data: URI is no longer resolved against the base path, and one that is not base64 is decoded directly instead of through PHP's data: wrapper or the HTTP client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG-GRAVITYPDF.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ Bugfixes
146
146
* When a hyphenation hyphen moved to the next line, its record stayed on the line before. In a bidi paragraph that drew a hyphen in the wrong place and dropped the one that moved. [mpdf/mpdf#1831][#145]
147
147
* A hyphen inserted at a line break had no bidi direction. It now takes the direction of the word it breaks. [#116][#137]
148
148
*`$extgstates` had no default, so `count()` on it threw a `TypeError` on PHP 8. [mpdf/mpdf#2135][#20]
149
+
* A stylesheet `url()` did not load its image when the path had spaces or parentheses, when there was whitespace inside the parentheses, or when it was an SVG data URI that is not base64, such as Bootstrap's `form-select` arrow. [#573]
149
150
150
151
### Images and SVG
151
152
@@ -738,4 +739,5 @@ These changes do not change output.
<p class="caption">url("img/bay eux.jpg"), with a space in the file name: the tapestry fills the box.</p>
45
+
<div class="box spaced"></div>
46
+
47
+
<p class="caption">url( img/bay%20eux.jpg ), with whitespace inside the parentheses: the same tapestry.</p>
48
+
<div class="box padded"></div>
49
+
50
+
<p class="caption">Bootstrap\'s form-select arrow, an SVG data URI with single quotes inside double quotes: a dark chevron at the right of the box.</p>
51
+
<div class="box select">Choose</div>
52
+
53
+
<p class="caption">The same SVG with double quotes inside single quotes: a large chevron in the middle of the box.</p>
0 commit comments