robbestad / react-iframe

Simple solution for using iframes in React
ISC License
436 stars 79 forks source link

scrolling and allowTransparency #6

Closed monolithed closed 7 years ago

monolithed commented 8 years ago

Hi, what about these properties?

robbestad commented 7 years ago

I'm not sure about these props. Neither is supported in HTML5. How about passing these as a style prop instead. For instance:

<Iframe url="http://www.example.com"
            position="absolute"
            width="50%"
            height="50%"
            styles={{backgroundColor: "transparent", overflow: "hidden"}}/> 

These two styles are equivalent to "allowTransparency" and scrolling: no.

https://www.w3.org/TR/html5-diff/