Web-bugs: www.wazzeo.com - design is broken

Created on 23 Nov 2017  ·  13Comments  ·  Source: webcompat/web-bugs



URL: https://www.wazzeo.com/

Browser / Version: Firefox 58.0
Operating System: Mac OS X 10.9
Tested Another Browser: Yes

Problem type: Design is broken
Description: Wazzeo table DatePicker width isn't well calculated
Steps to Reproduce:
Click on "When" (Quand) field.

layout.css.servo.enabled: true
Screenshot Description

_From webcompat.com with ❤️_

Re-triaged browser-firefox status-contact-success status-first-contact

Most helpful comment

@karlcow i just fixed the missing <!doctype html> on https://wazzeo.com/

@adamopenweb i just fixed the cors issue (https calling http)

thanks you :+1:

All 13 comments

Browser / Version: Google Chrome 62.0.3202.94 (64 bits)
Operating System: Mac OS X 10.9

capture d ecran 2017-11-23 a 14 40 17

Thanks for the report @Quentame. This seems to be related to the use of min-width: 32px; in the calendar table.

.daterangepicker .calendar th, .daterangepicker .calendar td {
    white-space: nowrap;
    text-align: center;
    min-width: 32px;
}

In Chrome the min-width property seems to include padding and border:
screen shot 2017-11-23 at 5 40 23 pm

But Firefox is adding padding and border on to the 32px cell width:
screen shot 2017-11-23 at 5 40 33 pm

Setting as needs diagnosis.

@adamopenweb said

In Chrome the min-width property seems to include padding and border

That seems plausible. Let's see. If I force the min-width to be 24px then I get the same layout.

.daterangepicker .calendar th, .daterangepicker .calendar td {
    white-space: nowrap;
    text-align: center;
    min-width: 24px;
}

That would obviously break in Chrome.

Now let's try a reduced test case.
https://codepen.io/webcompat/pen/eMXZoB

Screenshot Description

I get the same rendering. So there is something else. This is not only the min-width + padding issue.

After isolating most of the code. we get

Screenshot Description

So any issue will be in this scope only.

Reducing even more the context.

Screenshot Description

so far I have been unsuccessful to create a reduce test case. but isolating the issue at its maximum on the site itself. I'm able to see that Chrome is ignoring the horizontal padding in the display and that this related to box-sizing somehow.

Running into circles.

Screenshot Description

And the reduced test case with the same values… sigh

Screenshot Description

This issue is also reproducible on Windows 10 and Nightly 61:

image

ok finally found!
The website is in quirks mode!
They should put a doctype <!doctype html> to have consistent rendering in between Chrome and Firefox.

Screenshot Description

This is probably https://bugs.chromium.org/p/chromium/issues/detail?id=120886

@foolip What do you think about it? test required?
@dbaron do you know if there is a test/bugs in bugzilla about that?

Reaching out to Strasberry:
https://www.strasberry.fr/contact/

Note that the form on their contact page runs into CORS errors in Firefox and Chrome.

@karlcow i just fixed the missing <!doctype html> on https://wazzeo.com/

@adamopenweb i just fixed the cors issue (https calling http)

thanks you :+1:

That was fast! 😄
Thank you @aless673.

Was this page helpful?
0 / 5 - 0 ratings