Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive video css causing SCRIPT87: Invalid argument. #283

Open
spinegar opened this issue Jun 10, 2014 · 1 comment
Open

responsive video css causing SCRIPT87: Invalid argument. #283

spinegar opened this issue Jun 10, 2014 · 1 comment

Comments

@spinegar
Copy link

The following css is causing respond.js to throw the error below.

CSS

.flex-video {
  position: relative;
  padding-bottom: 67.5%;
  height: 0;
  overflow: hidden;
}

.flex-video.widescreen { padding-bottom: 57.25%; }
.flex-video.vimeo { padding-top: 0; }

.flex-video iframe,
.flex-video object,
.flex-video embed {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.flex-video-border-fix iframe,
.flex-video-border-fix object,
.flex-video-border-fix embed {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 110%;
  height: 107%;
}


@media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) {
  .flex-video { padding-top: 0; }
}

Error

SCRIPT87: Invalid argument. 
respond.js, line 15 character 7

Line 15

docElem.removeChild(fakeBody);

Thoughts?

@TheHollidayInn
Copy link

When I add your css, my code does not break. Can you share your Respond.js file and your html to help give more context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants