Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah I should put this somewhere! In the meantime, right after img.alt =... you can add

  // improve styling
  img.className = frame.className;
  img.id = frame.id;
  img.style.width = frame.width +"px";
That last line is a hack (eg resizing), but it's required to make the test website work since annoyingly their CSS uses :is(frame).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: