Rendertron is loading my webpage, but it is prefacing the CSS file (bundled app.css via webpack) with the following PRE tag and HTML tags:
<html><head><base href="https://redacted-for-security.com/css"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">@font-face{font-family:swiper-icons;font-style:normal;font </pre></body></html>
This obviously breaks the page layout for the render.
Does anyone know why it is doing this?
Many thanks
This is because of the
<head>.The CSS property
page-break-after: avoiddoesn't work in any WebKit or Mozilla based browsers, so you can alternatively use thepage-break-inside: avoidover the heading and an acceptable amount of the text to prevent this page break:CSS
HTML
Relvant sources: