New issue
Advanced search Search tips

Issue 920437 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

div's on entire side dont push other elements out of the way . im going to attch the file i was editing when i found this (note this is the original not the edited)

Reported by dank...@nilesk12.org, Jan 9

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. place div element on entire side not covering who page
2. place another element preferably h1 for size outside of div
3. overlap

What is the expected behavior?
no overlap

What went wrong?
overlap

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 
Flash Version: 

it didnt do this before
 
multipage.html
3.4 KB View Download
actually effects other browsers i just didnt realize i had another one.
Labels: Needs-Triage-M71
Can you post a screenshot of the actual and expected results? I am not seeing any overlap, but I might be searching for the wrong thing.
side-div-overlap-actual.png
1.9 KB View Download
FWIW, here (in Win7) all versions of Chrome, even the ancient ones, display this file just like Firefox.

Cc: swarnasree.mukkala@chromium.org
Labels: Triaged-ET Needs-Feedback
Tried testing the issue on reported chrome #71.0.3578.98 using Mac OS 10.13.6, Ubuntu 17.10 and Windows 10 by following below steps.

Steps:
=====
1.Launched chrome.
2.Opened "multipage.html".
3.Tried to overlap div elements.
4.Observed that they don't overlap.

Attached screencast for reference.
@reporter: Could you please review attached screencast and let us know if anything missed from our end. Requesting you to provide the "OS" details on which the issue is seen so that it would be really helpful on further triaging of the issue.
Thanks.!
920437.mp4
140 KB View Download
i cant edit. i posted without a account on that website.
Project Member

Comment 7 by sheriffbot@chromium.org, Jan 10

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Blink>Layout
#6 - no need to edit. Just add a new comment with answers for my comment (#3) an attach a screenshot.
they overlap when you place a h1 element in the shown place.
also its not the div elements that overlap its that text overlaps with the div elements
#11 - please, create a small HTML that fully reproduces the problem and attach it, otherwise this is a waste of time, trying different things that you may or may not experience.
the html was just a example to showcase the error.
ill attach a file that shows the error
multipage error.html
3.5 KB View Download
Not the problem you describe, but I thought it may be worth a mention -
<h1> has implicit top and bottom margin and this margin is applied to the element with the position: fixed because it applies to the enclosing <div>.
Seeing as you see the same behavior in other browsers, it is probably not a bug, but others may think differently.

The problem you describe -
The <div> is actually not covering the entire side at all. It has a <ul> with position: fixed (which makes it completely separate from the parent and not affecting it at all) that covers the side, so there is no reason for the <div> to "push" any element, the <div> is simply a container for whatever you put it in that is not position: fixed.
So, not a bug, unless others think differently.
Status: WontFix (was: Unconfirmed)
Thanks for the report dankan5, the explanation provided by phistuck is correct. While perhaps a bit surprising this is working as intended.


Thanks phistuck!

the body isnt fixed and if you inspect element it also applys to the body
Reporter, you can simplify your code to this:

<!DOCTYPE html>
<body style="margin: 0px;">
  <div style="position:fixed; background:red">foo</div>
  <h1>bar</h1>
</html>

You'll see in devtools that BODY is "shifted" down and occupies exactly the *content* region of H1 "despite" the margin being 0. As explained by phistuck@ above it happens because a) H1 has implicit margins and b) the position:fixed element is excluded from block layout so it's basically same as this:

<!DOCTYPE html>
<body style="margin: 0px;">
  <h1>bar</h1>
</html>

BTW, removing <!DOCTYPE html> will put the document into a Quirks mode where H1 won't shift the body.

Sign in to add a comment