New issue
Advanced search Search tips

Issue 704959 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

checkbox makes parent element grow when toggled in checkbox hack

Reported by neupat...@gmail.com, Mar 24 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36

Steps to reproduce the problem:
1. checkbox inside an element with a margin
2. checkbox is used to toggle the state of another element (checkbox hack)
3. parent has to have position: fixed; or absolute;
4. when toggling the checkbox the parent grows

What is the expected behavior?
should stay same width

What went wrong?
see file, comparison chromium and firefox

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.76  Channel: stable
OS Version: 4.4.0-67-generic
Flash Version: none
 
index.html
677 bytes View Download
out2.gif
722 KB View Download
Labels: Needs-Triage-M57 OS-Windows
Labels: Needs-Bisect
Components: -Blink>Input Blink>Layout
Components: Blink>Forms>Checkbox
Status: Untriaged (was: Unconfirmed)
Reproduced using Chrome 57 on Windows 7.
Reproduced using Chromium 40 (October, 2014) as well, so this is probably not a regression (or not a recent regression).

This is an Internet Explorer 6 kind of bug. :(

Comment 5 by tkent@chromium.org, Mar 27 2017

Components: -Blink>Forms>Checkbox
I reproduced this without checkbox and label. Removing Blink>Forms>Checkbox.


Comment 6 by phistuck@gmail.com, Mar 27 2017

#5 - can you attach that test case? :)

Comment 7 by e...@chromium.org, Mar 27 2017

Owner: tkent@chromium.org
Status: Assigned (was: Untriaged)
tkent: If you have a repro without a checkbox please add it to the bug and then set the status back to untriaged. Thanks.


Comment 8 by tkent@chromium.org, Mar 27 2017

Cc: e...@chromium.org
Owner: ----
Status: Untriaged (was: Assigned)
Attached.

checkbox-704959.html
860 bytes View Download

Comment 9 by e...@chromium.org, Mar 27 2017

Owner: cbiesin...@chromium.org
Status: Assigned (was: Untriaged)
Thanks!

Christian, could you take a look at this at some point please?

Comment 10 by phistuck@gmail.com, Mar 28 2017

Or without a script at all -
<head>
    <style>
        ul {
            position: absolute; /* or fixed, not relative or static */
            background-color: grey;
            color: white;
            list-style: none;
            padding: 0;
        }

        ul > li {
            margin: 0.7em;
            display: inline;
        }

        div {
            width: 1px;
            height: 100px;
            display: none;
        }

        .check:focus ~ div {
            display: block;
        }
    </style>
</head>
<body>
    <ul>
        <li>
            <span tabindex="1" class="check">Focus</span>
            <div></div>
        </li>
    </ul>
</body>
Cc: rbasuvula@chromium.org
Labels: -Needs-Bisect -Needs-Triage-M57 M-59 OS-Mac
Tested the issue on chrome 56.0.2924.76, Stable #57.0.2987.133, Canary 59.0.3056.0 in Windows 10.0 & 7 and was able to reproduce the issue.

This is a Non-Regression issue since seeing this from M30 #30.0.1549.0

Note : Able to reproduce the issue in Mac 10.12.3 and Linux Ubuntu 14.04.and removing needs bisect label.

Thank you.

Sign in to add a comment