New issue
Advanced search Search tips

Issue 694046 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Compat



Sign in to add a comment

padding will break flexbox layout

Reported by craigco...@gmail.com, Feb 19 2017

Issue description

Chrome Version       : 50
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: yes
    Firefox:
         IE:

What steps will reproduce the problem?
1. copy the code below and test it on iphone safari or iphone chrome
2. Now un-comment the rule .random in the code and test it again on iphone safari or iphone chrome

<!DOCTYPE html>
<html>

<head>

  <link rel="icon" href="data:;base64,iVBORw0KGgo=">
  <meta charset='utf-8'>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      overflow: scroll;
      min-height: 100%;
      display: flex;
      font-size: 62.5%;
    }
    body {
      display: flex;
      flex: 1;
    }
    .chats {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    p {
      padding: 10px;
    }
    .box {
      background: blue;
      flex: 1;
    }
    .random {
      padding-top:1rem;
      /* try to un-commnet this rule and the observe the blue box, it will become very small */
    }
  </style>
</head>

<body>
  <div class="chats">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
      dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="box">box</div>
  </div>
</body>

</html>


What is the expected result?
layout not break

What happens instead?
layout break even though I do not use the class

Please provide any additional information below. Attach a screenshot if
possible.




 
BOttR.png
403 KB View Download
Pg8OK.png
419 KB View Download
Labels: OS-iOS
Components: Mobile>WebView>Glue
Owner: eugene...@chromium.org
Status: Assigned (was: Unconfirmed)
eugenebut@ can you take a look?
Cc: rbyers@chromium.org
Rick, do you think is a bug? If so I will file a radar. Thanks!
Cc: -rbyers@chromium.org
Cc: danyao@chromium.org
Labels: -Type-Bug Type-Compat
Cc: eugene...@chromium.org
Owner: ----
Status: Available (was: Assigned)

Comment 8 by danyao@chromium.org, Sep 29 2017

Status: WontFix (was: Available)
I can't reproduce this in M61 anymore so I'll close this. Please reopen if you have additional information.

Sign in to add a comment