22 lines
737 B
HTML
22 lines
737 B
HTML
<script src="resources/ensure-hidpi.js"></script>
|
|
<style>
|
|
img {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
p {
|
|
width: 200px;
|
|
height: 100px;
|
|
display: inline-block;
|
|
font: 20px/1 Ahem;
|
|
}
|
|
|
|
#target {
|
|
height: 1000px;
|
|
}
|
|
</style>
|
|
<div>This is testing that image buffers for filters are correctly scaled with the device scale factor on the HiDPI environment. If it is wrong, this test causes a crash.</div>
|
|
<img src="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><rect fill='green' width='100%' height='100%'/></svg>">
|
|
<img id="target" src="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><rect fill='green' width='100%' height='100%'/></svg>">
|