Skip to content

Commit

Permalink
remove valid screen test #97
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamjuliot committed Jan 13, 2021
1 parent 5d3ed8e commit 216c07d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/tests/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ const {
displayMode
} = getCSS()

const validScreen = (
matchMedia(`(device-width:${width}px)`).matches &&
matchMedia(`(device-height:${height}px)`).matches &&
deviceScreen
)


const note = {
unsupported: '<span class="blocked">unsupported</span>',
Expand Down Expand Up @@ -243,10 +237,9 @@ patch(el, html`
<div>@media aspect-ratio: ${''+viewportAspectRatio}</div>
<div>@media device-aspect-ratio: ${''+deviceAspectRatio}</div>
<div>matchMedia search: ${''+matchMediaWidth} x ${''+matchMediaHeight}</div>
<div>screen: ${!validScreen ? `${''+width} x ${''+height} ${fake()}` : `${''+width} x ${''+height}`}</div>
<div>screen: ${''+width} x ${''+height}</div>
<div>avail: ${''+availWidth} x ${''+availHeight}</div>
<div>outer: ${''+outerWidth} x ${''+outerHeight}</div>
<div>inner: ${''+innerWidth} x ${''+innerHeight}</div>
Expand Down

0 comments on commit 216c07d

Please sign in to comment.