mirror of https://github.com/sveltejs/svelte
use iframe z-index: -1 in resize listener (#5742)
parent
1da4105d65
commit
f7d4eef55d
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
async test({ assert, target }) {
|
||||
const iframe = target.querySelector('iframe');
|
||||
|
||||
assert.equal(iframe.style.zIndex, '-1');
|
||||
}
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
let offsetWidth = 0;
|
||||
let offsetHeight = 0;
|
||||
</script>
|
||||
|
||||
<div style="z-index: 42;" bind:offsetHeight bind:offsetWidth>
|
||||
<h1>Hello</h1>
|
||||
</div>
|
Loading…
Reference in new issue