-
Notifications
You must be signed in to change notification settings - Fork 63
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
blog.cloudflare.com - Items are overlapped #48332
Comments
Thanks for the report! Tested with: Moving to Needsdiagnosis. |
this is coming from an iframe with a huge escaped <iframe id="magic"
style="visbility: hidden;"
seamless=""
scrolling="no"
srcdoc="
"> It upsets all 3 browsers devtools. Chrome seems to recover the best here for this specific layout. also @digitarald for the performance impact on devtools. I'm pushing this to to needscontact with a… change the way you do the design? That seems a bit tortured for such a simple page. |
@karlcow could you file an issue with a performance profile – not sure what issue I should see when inspecting the site. |
done already ;) this morning. |
This seems a somewhat weird interaction between flex and table layout. Firefox seems to be honoring the .tableStack {
width: 100% !important;
} Here's a reduced test-case: <!doctype html>
<table style="border-collapse: collapse; width: 100%; margin: 0 auto">
<td style="display: flex; align-items: center; width: 90%; padding: 10px 5%">
<table style="border-collapse: collapse; width: 100%">
<td style="text-align: center">
<img width=200 height=200 style="margin: 0 auto">
</td>
</table>
<table style="border-collapse: collapse; width: 100%">
<td style="text-align: center">
Some text here.
</td>
</table>
</td>
</table> It's not clear to me what's the correct behavior per spec... cc @atotic / @cbiesinger / @FremyCompany, in case you know what is going on with Chromium there... off-hand I don't know why the |
@karlcow we should probably contact the site to remove that rule in particular. It seems the intention is to force the image and the content to be in different lines, but clearly no browser is doing that (maybe EdgeHTML used to?). |
Probably this: |
Lots going on in that testcase. Here is a simpler one: <div style="display:flex;width: 100%;">
<div id=d1 style="background:yellow;width:100%">
<img width=200 height=200 style="margin: 0 auto">
</div>
<table id=t1 style="background:blue;width:100%">
<td>table</td>
</table>
</div> The difference between Chrome and FF is how percentage width is resolved for TABLE flex item. I think Chrome is correct here. In FF, The div#d1 resolves its %ge against flex item size, table#t1 resolves percentage against flex container size. As I have been rewriting tables for Chrome, there is another table sizing inside flexbox issue I've encountered. It it about table's minmax size inside flexbox. Following table per spec has an infinite max size. <table>
<td style="width:10px">10</td>
<td style="width:100%">100%</td>
</table> Chrome currently does a wacky thing to avoid this, and ignores percentage cells when calculating minmax inside Flexbox. The NG rewrite will bring Chrome's tables a lot closer to what FF is shipping. There are still some issues like the one above I'd like to align on. It be useful to have a f2f. |
cc @dholbert |
This fixes the design. /* Inline #-1 | https://blog.cloudflare.com/serverlist-8th-edition/ */
@media only screen and (max-width: 650px) {
.tableStack {
/* width: 100% !important; */
}
} |
@samjbmason or @mrmrs could you help us find the right person at cloudflare who can solve this issue in the layout of the cloudflare blog? That would be great. Thanks. See the details and screenshots in this thread. |
maybe more chances with @sssilver |
Hi @karlcow! I'll be happy to help. Let me see what I can do and get back. |
Hello! I work on the blog at Cloudflare. We will do our very best to get this fixed in the next release. Thank you for bringing it to our attention. |
This is actually much more gnarly than I realized. That iframe is the output of an email which is designed using Marketo's email generation UI. We can use a Cloudflare Worker to remove that bit of CSS, but the real solution would be to have them change the way they generate CSS. Unfortunately the way they write that CSS is likely to maintain compatibility with email clients which will make all of this rather complicated. |
So i can see a couple things that could be done.
There's another issue with the current design. the full text is not readable. It's not only the overlapping. And if i do this in the cloudflare css, the issue is solved but only for large screens. /* cloudflare.min.css | https://blog.cloudflare.com/assets/built/cloudflare.min.css?v=643ed3434b */
@media screen and (min-width: 60em) {
.measure-wide-l {
/* max-width: 34em; */
}
}
.measure-wide-tablet {
/* width: 34em; */
width: 37em;
} The problem comes back on tablet layout. Note also that the text is currently fully unreadable on Safari. (edit: fixing firefox will not solve safari issue) |
Thanks for all :) |
URL: https://blog.cloudflare.com/serverlist-8th-edition/
Browser / Version: Firefox 74.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome
Problem type: Design is broken
Description: Items are overlapped
Steps to Reproduce:
Down form the part that says " Received this email from a friend? Sign up here. ", There were sections (posts) that overlap the text with the images
View the screenshot
Browser Configuration
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: