arrow-down arrow at-sign bug check checkbox-checked checkbox-unchecked svg-checkmark chevron-right chevrons-right circle-down circle-left circle-right circle-up cloud2 svg-cross2 download download external-link filter github hash home leaf leaf left link-2 log-in log-out mail menu message-square minus plus radio-checked radio-checked2 radio-unchecked search settings spinner8 target twitter up upload-2 user users warning x zap
  • Home
  • Report a bug
  • Contribute
  • All issues
  • Login

URL: https://codepen.io/myf/pen/OJdNLWW

Browser / Version: Firefox 120.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome

Problem type: Something else
Description: Firefox vs Chrome discrepancy in scroll box constituted by flex box child with positioned item
Steps to Reproduce:
Seeking help to decide which implementation is conformant here, or if there are more bugs, or what's going on here actually.

If you make flex container with two items, let first item "fill it" (offset parent) entirely on the main axis and pull the second item back into first item's area using position relative, Firefox leaves some "phantom" space on the side from where the second item was pulled from and thus a scrollbar to reach it.
Chrome does not: no phantom space, and no scrollbar is instantiated.

In both cases there is no element wider that the container: the flex wrapper has the same width as the "filler" item.

What is strange to me that for line box constituted by non-wrapping inline-blocks, Chrome lets the phantom placeholder exist and accommodates it for scrolling, the same way as Firefox.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

Please login to edit issues.

View issue on Github

Shortcut: Press l on your keyboard to open the label editor. Shortcut: Press g on your keyboard to be taken to the GitHub view of this page.
Needs Diagnosis
#129041

codepen.io - Firefox vs Chrome discrepancy in scroll box constituted by flex box child

Opened: 2023-10-29
Reporter: myfonj
Comments: 4
  • Home
  • List of issues
  • About
  • Contribute
  • Contact
  • Privacy Policy
  • Terms of Service
  • Code of Conduct