html - IE11 position fixed has wrong size -


why ie11 set wrong size fixed positioned element? when parent has relative position defined size border-radius , hidden overflow, fixed element takes size of parent , not own.

example:

<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-ch" lang="de-ch">   <head>     <meta http-equiv="x-ua-compatible" content="ie=edge" />     <title>fixed test</title>     <style>     div {       position:         relative;       overflow:         hidden;       min-height:       100px;       width:            200px;       border-radius:    5px;       background-color: green;     }     .fixed {       position:         fixed;       top:              0;       left:             0;       height:           100%;       width:            100%;       z-index:          1000;       background-color: red;     }     </style>   </head>   <body>     <div><span onclick="this.classname='fixed'">click me</span></div>   </body> </html> 

when compared behavior chrome, key here seems overflow: hidden. there specific in spec, think ie might in right here, @ least partially. when tried, fixed span took width , height of whole viewport, masked containing div's overflow attribute - removing made whole screen red.

however, still turned upper left corner straightedge, seems incorrect.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -