Hi!
Visualizing the baseline grid is often needed, and so far we do that setting a background image, like this:
... using different png images with different heights (16px, 17px, 18px, etc) depending on the case.
I'd need to visualize a baseline grid set in points instead of pixels.
Any ideas on how?
I've found a way that works in the browser, but not on Prince … : (
Thank you!
Visualizing the baseline grid is often needed, and so far we do that setting a background image, like this:
body {
line-height: 19px;
background-image: url("../imagenes/19px.png");
background-position: 10px -1px;
}
... using different png images with different heights (16px, 17px, 18px, etc) depending on the case.
I'd need to visualize a baseline grid set in points instead of pixels.
Any ideas on how?
I've found a way that works in the browser, but not on Prince … : (
:root {--baseline: 18pt;}
body::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -3;
display: block;
background-image: linear-gradient(rgb(39, 42, 41), rgb(39, 42, 41) 1px, transparent 1px, transparent);
background-size: 100% var(--baseline);
}
Thank you!