Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Create portal page demo with thumbnails of websites and iframes #5

Open
sole opened this issue Jul 18, 2016 · 1 comment
Open

Create portal page demo with thumbnails of websites and iframes #5

sole opened this issue Jul 18, 2016 · 1 comment
Assignees
Labels

Comments

@sole
Copy link
Contributor

sole commented Jul 18, 2016

When you click on thumbnail it takes over 3x3 thumbnails opening the iframe

Thumbnails:

  • div
    • img
    • iframe

Resizing should trigger layout of the iframe which is inside the div
Resizing can be in place or on an absolutely positioned div right at the same position as the thumbnail

We also want to have other things happening on the page apart from the iframe transition to show that Servo can cope with everything without freezing
Ideas for the thumbnail:

  • animated gifs
  • canvas widgets
  • SVG
@samuknet
Copy link
Contributor

samuknet commented Jul 19, 2016

It turns out gif's aren't implemented yet in Servo, so this is not a way to strain the browser.

A canvas-rendered gif work around was attempted (credit https://github.com/matt-way/gifuct-js) and this works well in FF/Chrome.

Although it does not work in Servo due to a bug relating to Uint8Arrays and using XMLHTTPRequest with response type of 'arraybuffer'. See: servo/servo#12503

Note: What is the current state of being able to display gif's in Servo?

UPDATE
XHR arraybuffer response type not yet implemented in Servo - see response here. Currently the 'arraybuffer' response is just a string.

A work around to the issue would be to convert the string to an array buffer, which could get the GIF canvas rendering working. This could be useful.

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

No branches or pull requests

2 participants