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
The layout of absolute positioning is different for "replaced" elements (such as images) and non-replaced elements. The former is apparently buggy in this case. I’ll look into it.
Have a look at http://www.stripey.com/demo/weasyprint/abs_pos.html and its output in WeasyPrint: http://www.stripey.com/demo/weasyprint/abs_pos.pdf
The red squares are
<span>
s; the yellow ones<img>
s.The top pair have
right: 5ex
, which positions the<span>
correctly, but on the<img>
is being treated asright: 0
.The bottom pair show the workaround: using
right: 0; margin-right: 5ex
, which works on both the<span>
and the<img>
.All 4 boxes are positioned as I'd expect in Firefox and Chromium.
The text was updated successfully, but these errors were encountered: