Skip to content

margin will not be hidden when overflow is hidden or scroll #19466

Closed as not planned

Description

@tigercosmos

margin will not be hide when overflow is hidden or scroll

<style>
    #scroller1 {
        height: 80px;
        width: 80px;
        overflow: hidden;
        background: red;
    }
    #container1 {
        background: green;
        margin-bottom: 200px;
        width: 300px;
        height: 300px;
    }

    #box {
        height: 80px;
        width: 80px;
        background: red;
    }
</style>
<div id="scroller1">
    <div id="container1"></div>
</div>
<div id="box">
</div>

Firefox:
2017-12-03 5 01 44

Servo:
2017-12-03 5 01 29

related to #19280

Activity

  1. changed the title [-]margin will not be hide when overflow is hidden or scroll[/-] [+]margin will not be hidden when overflow is hidden or scroll[/+] on Dec 2, 2017
  2. added
    C-has-manual-testcase
    on Dec 2, 2017
  3. lumiscosity commented on Jul 26, 2025

    @lumiscosity
    Member

    Appears to have been fixed. Tested on Arch Linux x86_64, servo built against commit id 9d29017, compared against Firefox 141.0, Epiphany 48.5 and Chromium 138.0.7204.168 (ordered left to right).

    Image
  4. jdm commented on Jul 26, 2025

    @jdm
    Member

    Let joy overflow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/uncategorizedC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions