-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlay stack breaks body
height 100%
#803
Comments
Looks like a |
For clarity of testing:
Does not full the viewport whether the overlay code is loaded or not as body/html aren't given the whole viewport to fill by default. Thoughts? |
Would Also, fwiw it looks like when the body is |
Do you have code, or a screenshot of:
As I understand it, it should happen, but in my mind I may not be seeing what you're looking at. |
What I've found is that the new shadow DOM doesn't break this layout, though I was expecting it to once I started digging in:
If I add an extra div in the main DOM though like this (similar to what's getting added to the shadow DOM) it does break: https://codepen.io/dixo0015/pen/WNwNvEG |
This is why I think having the https://codepen.io/Westbrook/pen/poyoJdw The blank With that addition, the shadow DOM would be roughly equivalent to:
|
Yeah -- what's weird is that you don't need the I.e. this is broken:
But this isn't (which seems weird):
|
It does look like I'll run this by a few more folks on my team to see if they can poke any holes in it. |
I did just recently participate in a twitter convo around the "need" for |
yes, very much agreed! I'm actually working on a PR to move forward since this might be "fixed, practically speaking", even if it's hypothetically broken for unlikely cases. |
I am a bit amazed at how hard a problem it is to get focus, tabs and all working as you would expect in all places. I cannot thing of a breaking case off the top of my head. I guess we proceed and see how we go! I cannot remember who said that "everybody should be using web components, but very few people should be writing them," but that seems true. |
@adixon-adobe did this get fully cleaned up with #807 or do we have more work you'd like to see here? |
I'll close this out. No one has thought of anything this would break (outside of conflicting web component frameworks). |
Expected Behaviour
If you have
height: 100%
set on body, child elements can also setheight: 100%
Actual Behaviour
The new shadow root added to the overlay stack breaks this. Looks like this was introduced here:
27a0b53#diff-c3039ae6864cf1ed51034cbdfc4040deR49
Sample Code that illustrates the problem
This should show a red background, but doesn't:
The text was updated successfully, but these errors were encountered: