You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
www.facebook.com - The 'Guests can invite friends' section is not centered #6213
changed the title [-]www.facebook.com - layout is messed up[/-][+]www.facebook.com - The 'Guests can invite friends' section is not centered[/+]on Apr 26, 2017
They're serving different markup to Firefox UAs. The markup they serve to Chrome UAs works fine in Firefox, and the markup they serve to Firefox renders just as wrong in Chrome, so this isn't a webcompat issue proper. They should just serve the same markup to Firefox:
The reason they're doing this is probably because of the interop issue fixed in bz958714, because that extra <div class="_4g33 _52we"> has the styles display:flex; height:100%; width:100%. They no longer need this as of Firefox 60 (though it's up to them if they wish to still serve this markup to older versions of Firefox).
However, they need to take care to have a -moz-appearance:none rule to prevent a double checkbox from appearing, as right now it doesn't look as though their Chrome version is served that rule (though the Firefox version does). It may be as easy as altering this stylesheet rule:
That said, there is an even worse problem here: the checkbox/label are not properly interactive in Firefox, regardless of the version it is served. Sometimes it doesn't seem to react to the taps/clicks, and it looks like it may be caused by something in their event handling. I'm investigating that right now.
Aw nuts, I spent a couple of hours diagnosing the checkbox-tapping issue only to ultimately find myself remembering that I've diagnosed it before when I spotted a variable named USE_SYNTHETIC_CLICKS. Sure enough, that diagnosis was done in #6214 (which is in sitewait).
So yeah, they will need to fix that as well as what I suggested in my previous comment in this issue.
Activity
[-]www.facebook.com - layout is messed up[/-][+]www.facebook.com - The 'Guests can invite friends' section is not centered[/+]MDTsai commentedon Apr 27, 2017
Confirmed, I think it's controlled by:
Works for Firefox desktop in responsive design, move to needsdiagnosis.
softvision-sergiulogigan commentedon Dec 20, 2017
The issue is still reproducible.
Tested on Huawei P10 (Android 7.0), Firefox Nightly 59 and Chrome 63.
wisniewskit commentedon Jul 18, 2018
They're serving different markup to Firefox UAs. The markup they serve to Chrome UAs works fine in Firefox, and the markup they serve to Firefox renders just as wrong in Chrome, so this isn't a webcompat issue proper. They should just serve the same markup to Firefox:
Instead of what they're serving:
The reason they're doing this is probably because of the interop issue fixed in bz958714, because that extra
<div class="_4g33 _52we">has the stylesdisplay:flex; height:100%; width:100%. They no longer need this as of Firefox 60 (though it's up to them if they wish to still serve this markup to older versions of Firefox).However, they need to take care to have a
-moz-appearance:nonerule to prevent a double checkbox from appearing, as right now it doesn't look as though their Chrome version is served that rule (though the Firefox version does). It may be as easy as altering this stylesheet rule:That said, there is an even worse problem here: the checkbox/label are not properly interactive in Firefox, regardless of the version it is served. Sometimes it doesn't seem to react to the taps/clicks, and it looks like it may be caused by something in their event handling. I'm investigating that right now.
wisniewskit commentedon Jul 18, 2018
Aw nuts, I spent a couple of hours diagnosing the checkbox-tapping issue only to ultimately find myself remembering that I've diagnosed it before when I spotted a variable named
USE_SYNTHETIC_CLICKS. Sure enough, that diagnosis was done in #6214 (which is in sitewait).So yeah, they will need to fix that as well as what I suggested in my previous comment in this issue.
adamopenweb commentedon Jul 18, 2018
Reaching out to our contact from bug #6214.
miketaylr commentedon Jul 26, 2019
Still an issue, though a minor one.
cipriansv commentedon Aug 19, 2019
I retested the issue and it is still reproducible on my side.
Tested with:
Browser / Version: Firefox Nightly 68.1a1 (2019-08-17), Firefox Preview 1.2.0 (Build #12181645)
Operating System: Huawei P10 (Android 8.0) - 1080 x 1920 pixels (~432 ppi pixel density)