Firefox BUG: An error occurred while rendering the background image of the background-image when the page is too large.

Source: Internet
Author: User

A simple page is as follows:


<! Doctype html>
<Html>
<Body style = "background-image: url(1.gif)">
 
<Div style = "width: 80000px; height: 80000px;"> </div>
 
</Body>
</Html>
<! Doctype html>
<Html>
<Body style = "background-image: url(1.gif)">

<Div style = "width: 80000px; height: 80000px;"> </div>

</Body>
</Html>
A huge page that defines the background image. In Firefox, drag the horizontal scroll bar to the very right, or drag the vertical scroll bar to the very bottom, and you will find that the background image is missing or the background image is incomplete.

I'm not sure about how big it is. On my machine, over X will certainly reproduce this bug.

This BUG has been found in all Firefox versions so far. Other Browser IE, Safari, Chrome, and Opera do not have this problem.


 

If an error occurs, you can switch the window or drag the scroll bar.

If our web app inevitably needs to use huge pages under Firefox, it can only be simulated by itself. It uses a floating layer to display the background and dynamically adjust the coordinates of the floating layer.

From unintentional Columns
 


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.