<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>196454</bug_id>
          
          <creation_ts>2019-04-01 12:26:15 -0700</creation_ts>
          <short_desc>REGRESSION: Safari 12.1 introduces a regression with flexbox and css grid</short_desc>
          <delta_ts>2019-04-10 10:05:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Dignam">steve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jfernandez</cc>
    
    <cc>puiu.alexandru</cc>
    
    <cc>rego</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1523003</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Dignam">steve</who>
    <bug_when>2019-04-01 12:26:15 -0700</bug_when>
    <thetext>The following html &amp; css was tested and worked correctly on Safari Version 12.0.3 (13606.4.5.3.1), Firefox 66.0b10, and Chrome 73.0.3683.86.

I recently upgraded to Safari Version 12.1 (12607.1.40.1.5) and the css no longer functions as expected.

In the working browsers, the &quot;help-text&quot; stays at the bottom of the window on initial load and stays at the bottom while dragging the bottom of the window up.
Now on initial load with Safari 12.1, the &quot;help-text&quot; is hidden below the scroll.

Note: Safari 12.1 required `height: 100` on one of the elements to work while Chrome and Firefox do not. 
When demoing in Chrome and Firefox be sure to comment out the line noted below.


Here is some html &amp; css that demonstrates the bug:

```
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;meta
      name=&quot;viewport&quot;
      content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;
    /&gt;
    &lt;style type=&quot;text/css&quot;&gt;
      body {
        margin: 0;
      }
      html {
        box-sizing: border-box;
        font-size: 16px;
        height: 100%;
        min-width: 300px;
      }

      nav {
        background-color: gray;
        height: 65px;
      }

      .container {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        height: calc(100vh - 65px);
      }

      .calendar {
        background-color: lightcoral;
        display: grid;
        flex-grow: 1;
        grid-auto-rows: 1fr;
        grid-gap: 0.25rem;
        grid-template-columns: repeat(7, minmax(100px, 1fr));
        /* only necessary in Safari */
        height: 100%;
      }

      .help-text {
        background-color: lightblue;
        margin: 0;
        padding-bottom: 0.25rem;
        padding-top: 0.5rem;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;nav&gt;&lt;/nav&gt;
    &lt;div class=&quot;container&quot;&gt;
      &lt;section class=&quot;calendar&quot;&gt;
        &lt;div&gt;
          &lt;p&gt;24&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;25&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;26&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;27&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;28&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;29&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;30&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;31&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;Apr 1&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;2&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;3&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;4&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;5&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;6&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;7&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;8&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;9&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;10&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;11&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;12&lt;/p&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;p&gt;13&lt;/p&gt;
        &lt;/div&gt;
      &lt;/section&gt;
      &lt;p class=&quot;help-text&quot;&gt;press ? for help&lt;/p&gt;
    &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523886</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-03 13:39:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/49571163&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523894</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-03 13:49:58 -0700</bug_when>
    <thetext>I see the same behavior in Safari 12.1 and Chrome 73.0.3683.86. Firefox is different. I&apos;m not sure which is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523897</commentid>
    <comment_count>3</comment_count>
      <attachid>366638</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-03 13:50:10 -0700</bug_when>
    <thetext>Created attachment 366638
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523944</commentid>
    <comment_count>4</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2019-04-03 14:38:43 -0700</bug_when>
    <thetext>I&apos;ve tried to reproduce it but I&apos;m not sure if I understand it properly.
I saw the same behavior in WebKit (trunk), Chrome Canary and Firefox Nightly; when the window is not tall enough, the user needs to scroll to see &quot;help-text&quot; element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1524195</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Dignam">steve</who>
    <bug_when>2019-04-04 05:42:21 -0700</bug_when>
    <thetext>I think the problem is two fold.

First in Safari 12.0.3 (13606.4.5.3.1) the html &amp; css displayed the &quot;help-text&quot; at the bottom without any scrolling, but in Safari 12.1 the &quot;help-text&quot; is now below the scroll.

Secondly, there seems to be some difference in behavior between browsers. In order to get Chrome 73.0.3683.86 to produce the no scroll behavior, the `height: 100%` property of `.calendar` needs to be removed. 

Firefox 66.0b10 and Firefox 67.0b7 produce the desired, no scroll behavior regardless of the `.calendar` height property.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>366638</attachid>
            <date>2019-04-03 13:50:10 -0700</date>
            <delta_ts>2019-04-03 13:50:10 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>flex-grid-test.html</filename>
            <type>text/html</type>
            <size>2239</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PGh0bWwgbGFuZz0iZW4iPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgiIC8+CiAg
ICA8bWV0YQogICAgICBuYW1lPSJ2aWV3cG9ydCIKICAgICAgY29udGVudD0id2lkdGg9ZGV2aWNl
LXdpZHRoLCBpbml0aWFsLXNjYWxlPTEsIHNocmluay10by1maXQ9bm8iCiAgICAvPgogICAgPHN0
eWxlIHR5cGU9InRleHQvY3NzIj4KICAgICAgYm9keSB7CiAgICAgICAgbWFyZ2luOiAwOwogICAg
ICB9CiAgICAgIGh0bWwgewogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAg
Zm9udC1zaXplOiAxNnB4OwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBtaW4td2lkdGg6
IDMwMHB4OwogICAgICB9CgogICAgICBuYXYgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IGdy
YXk7CiAgICAgICAgaGVpZ2h0OiA2NXB4OwogICAgICB9CgogICAgICAuY29udGFpbmVyIHsKICAg
ICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAg
ICAgZmxleC1ncm93OiAxOwogICAgICAgIGhlaWdodDogY2FsYygxMDB2aCAtIDY1cHgpOwogICAg
ICB9CgogICAgICAuY2FsZW5kYXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IGxpZ2h0Y29y
YWw7CiAgICAgICAgZGlzcGxheTogZ3JpZDsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAg
Z3JpZC1hdXRvLXJvd3M6IDFmcjsKICAgICAgICBncmlkLWdhcDogMC4yNXJlbTsKICAgICAgICBn
cmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdCg3LCBtaW5tYXgoMTAwcHgsIDFmcikpOwogICAg
ICAgIC8qIG9ubHkgbmVjZXNzYXJ5IGluIFNhZmFyaSAqLwovKiAgICAgICAgaGVpZ2h0OiAxMDAl
OyovCiAgICAgIH0KCiAgICAgIC5oZWxwLXRleHQgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6
IGxpZ2h0Ymx1ZTsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDAu
MjVyZW07CiAgICAgICAgcGFkZGluZy10b3A6IDAuNXJlbTsKICAgICAgfQogICAgPC9zdHlsZT4K
ICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8bmF2PjwvbmF2PgogICAgPGRpdiBjbGFzcz0iY29udGFp
bmVyIj4KICAgICAgPHNlY3Rpb24gY2xhc3M9ImNhbGVuZGFyIj4KICAgICAgICA8ZGl2PgogICAg
ICAgICAgPHA+MjQ8L3A+CiAgICAgICAgPC9kaXY+CiAgICAgICAgPGRpdj4KICAgICAgICAgIDxw
PjI1PC9wPgogICAgICAgIDwvZGl2PgogICAgICAgIDxkaXY+CiAgICAgICAgICA8cD4yNjwvcD4K
ICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+Mjc8L3A+CiAgICAgICAg
PC9kaXY+CiAgICAgICAgPGRpdj4KICAgICAgICAgIDxwPjI4PC9wPgogICAgICAgIDwvZGl2Pgog
ICAgICAgIDxkaXY+CiAgICAgICAgICA8cD4yOTwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8
ZGl2PgogICAgICAgICAgPHA+MzA8L3A+CiAgICAgICAgPC9kaXY+CiAgICAgICAgPGRpdj4KICAg
ICAgICAgIDxwPjMxPC9wPgogICAgICAgIDwvZGl2PgogICAgICAgIDxkaXY+CiAgICAgICAgICA8
cD5BcHIgMTwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+Mjwv
cD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+MzwvcD4KICAgICAg
ICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+NDwvcD4KICAgICAgICA8L2Rpdj4K
ICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+NTwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8
ZGl2PgogICAgICAgICAgPHA+NjwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAg
ICAgICAgPHA+NzwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+
ODwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+OTwvcD4KICAg
ICAgICA8L2Rpdj4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHA+MTA8L3A+CiAgICAgICAgPC9k
aXY+CiAgICAgICAgPGRpdj4KICAgICAgICAgIDxwPjExPC9wPgogICAgICAgIDwvZGl2PgogICAg
ICAgIDxkaXY+CiAgICAgICAgICA8cD4xMjwvcD4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2
PgogICAgICAgICAgPHA+MTM8L3A+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvc2VjdGlvbj4KICAg
ICAgPHAgY2xhc3M9ImhlbHAtdGV4dCI+cHJlc3MgPyBmb3IgaGVscDwvcD4KICAgIDwvZGl2Pgog
IDwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>