Closed serialine closed 3 years ago
close: adjust scale cannot identify css affected width
<style>
.full-width { width: 100% }
</style>
<template>
<!-- width of this element is calculated by css class on purpose. -->
<img v-lazy="'img.png'" data-srcset="img.png 1x, img@2x.png 2x, img@3x.png 3x" class="full-width" />
</template>
<!-- unexpected width: 100% + transform: scale 0.333333 -->
<img
data-srcset="img.png 1x, img@2x.png 2x, img@3x.png 3x"
data-src="img@3x.png"
src="img@3x.png"
lazy="loaded"
class="full-width"
style="transform: scale(0.333333); transform-origin: 0px 0px;"
/>
support data-srcset Pixel density descriptor
fix: #210