Skip to content

Commit

Permalink
Fix firefox screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Jul 25, 2023
1 parent 06f8c3f commit f5b6ffd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/browser/vdiff.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { chai, expect } from '@open-wc/testing';
import { executeServerCommand } from '@web/test-runner-commands';

// start loading fonts early
[...document.fonts].map(font => font.load());

let test;

/* eslint-disable no-undef, no-invalid-this */
Expand Down
4 changes: 4 additions & 0 deletions src/server/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ test.pause = new Promise(r => test.start = r);

const controls = `
<style>
.screenshot * {
scrollbar-width: none;
}
.screenshot ::-webkit-scrollbar {
display: none;
}
Expand Down

0 comments on commit f5b6ffd

Please sign in to comment.