1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00
WeasyPrint/tests/resources/doc1.html
Guillaume Ayoub 81f73ead2e Use the weasyprint.otf font everywhere
Pango has a PANGO_SCALE value of 1024, making it really happy when fonts have a
cadratin value of 1024. Unfortunately, AHEM uses 1000, leading to rounding
errors.

We now use weasyprint.otf everywhere, with 1024. It breaks the exact 20/80
ratio between descent and ascent values, so that we need to use approximate
values for tests relying on an exact position of the baseline.

All the tests should pass, or be explicitely marked as failing.
2020-12-11 00:22:33 +01:00

59 lines
2.1 KiB
HTML

<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf8>
<!-- currentColor means 'inherit' on color itself. -->
<link rel=stylesheet href="data:text/css;charset=ASCII,a%7Bcolor%3AcurrentColor%7D">
<style media=print>
@import url(sub_directory/sheet1.css);
@import "data:text/css;charset=utf-16le;base64,\
bABpAHsAYwBvAGwAbwByADoAcgBlAGQAfQA=";
@import "data:,ul {border-width: 1000px !important}" screen;
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
a:after {
content: " [" attr(href) "]";
border-style: solid;
border-top-width: inherit;
border-bottom-width: initial;
}
@page :first { margin-top: 5px }
ul {
border-style: none solid hidden;
border-width: thin thick 4px .25in;
}
body > h1:first-child {
background-image: url(logo_small.png);
}
h1 ~ p ~ ul a:after {
background: red;
}
</style>
<style type=text/NOT-css>
ul {
border-width: 1000px !important;
}
</style>
<style media=screen>
ul {
border-width: 1000px !important;
}
</style>
<link rel=not_stylesheet href="data:,ul {border-width: 1000px !important}">
</head>
<body style="font-size: 20px">
<h1 style="font-size: 2em">WeasyPrint test document (with Ünicōde)</h1>
<p style="color: blue; font-size: x-large;
-weasy-link: attr(foo-link) /* no such attribute */">Hello</p>
<ul style="font-family: weasyprint; font-size: 1.25ex">
<li style="font-size: 6pt; font-weight: bold">
<a href=home.html
style="padding: 1px 2px 3px 4px; border: 42px solid;
font-size: 300%; font-weight: bolder">Home</a>
<li>
</ul>
<div style="font-size: 2em">
<span style="display: block; width: 10rem; height: 10em">
<span style="font-size: 2rem">WeasyPrint</span>
</span>
</div>
</body>