mirror of https://github.com/sveltejs/svelte
Merge pull request #3949 from pngwn/3948-resize-a11y
Add `aria-hidden=true` to resize-listenerspull/3950/head
commit
a85c250bda
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
async test({ assert, target }) {
|
||||
const object = target.querySelector('object');
|
||||
|
||||
assert.equal(object.getAttribute('aria-hidden'), "true");
|
||||
assert.equal(object.getAttribute('tabindex'), "-1");
|
||||
}
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
let offsetWidth = 0;
|
||||
let offsetHeight = 0;
|
||||
</script>
|
||||
|
||||
<div bind:offsetHeight bind:offsetWidth>
|
||||
|
||||
<h1>Hello</h1>
|
||||
|
||||
</div>
|
Loading…
Reference in new issue