Closed Bug 1211876 Opened 9 years ago Closed 9 years ago

Changing element height in specific HTML markup via specific order of operations does not allow resetting height in Firefox 41

Categories

(Core :: General, defect)

41 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1209994

People

(Reporter: preyskurantov, Unassigned)

Details

Attachments

(1 file)

2.45 MB, application/x-shockwave-flash
Details
Attached file StepsAndResults.swf
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

Steps to reproduce:

- Use the following HTML markup or the https://jsfiddle.net/DevPro/w3m0y4mc/ jsfiddle sample:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test</title>
    <style type="text/css">
        .container
        {
            border: 1px dashed black;
            height: 100px;
        }
        .item
        {
            overflow: hidden;
            border: 1px solid black;
            background-color: lightgrey;
        }
        .link
        {
            height: 100%;
        }
    </style>
    <script type="text/javascript">
        function doTest() {
            var content = document.getElementById("content");
            var item = document.getElementById("item_1");
            var temp = 0;

            temp = item.offsetHeight;
            item.style.height = "25px";
            temp = item.offsetHeight;
            content.style.height = "50px";
            temp = item.offsetHeight;
            item.style.height = "";
            temp = item.offsetHeight;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <input type="button" value="Test" onclick="doTest()" />
        <div class="container">
            <div id="content">
                <div class="item" id="item_1">
                    <div class="link">
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

- Click a button to change and reset the element height.


Actual results:

The element height cannot be reset in Firefox 41. See the attached "StepsAndResults.swf" file.


Expected results:

The element height can be reset in Firefox 41 like it works in earlier Firefox (40) versions.
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → Core
Mike, thank you for the bug report and the excellent testcase.

I see the problem in 41 (and 42) but not in a nightly or in a 43 beta.

This got fixed in nightly in a range that matches bug 1209994 being fixed, which makes sense: the issue there would lead to just such problems.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: