<?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>53166</bug_id>
          
          <creation_ts>2011-01-26 04:46:03 -0800</creation_ts>
          <short_desc>`display` styles in media queries don’t get re-applied correctly after resizing when applied on table-row.</short_desc>
          <delta_ts>2016-02-01 14:43:19 -0800</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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://mathiasbynens.be/demo/webkit-media-query-bug</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathias Bynens">mathias</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>ameen_bill</cc>
    
    <cc>ap</cc>
    
    <cc>christopherbuenaventura</cc>
    
    <cc>dimmerswitch</cc>
    
    <cc>giorgio.liscio</cc>
    
    <cc>info</cc>
    
    <cc>joachim</cc>
    
    <cc>mathias</cc>
    
    <cc>paroga</cc>
    
    <cc>robin</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>340204</commentid>
    <comment_count>0</comment_count>
      <attachid>80182</attachid>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2011-01-26 04:46:03 -0800</bug_when>
    <thetext>Created attachment 80182
Minimal test case

To reproduce the issue, just follow these steps:

1) Open the attachment (or the online version at http://mathiasbynens.be/demo/webkit-media-query-bug) with a window wider than 654 pixels. Note that the list of links is displayed on one line.
2) Resize your window to a width smaller than 655 pixels. The styles change, and every link is now displayed on its own line. So far, so good.
3) Make your window wider than 654 pixels again. The links should be displayed inline again, but they’re not. Other styles, e.g. `background`, still get applied correctly.

This seems to be a WebKit-only issue; the latest stable releases of Opera and Firefox get it right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340206</commentid>
    <comment_count>1</comment_count>
      <attachid>80183</attachid>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2011-01-26 04:46:42 -0800</bug_when>
    <thetext>Created attachment 80183
Minimal test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342113</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-01-29 10:38:19 -0800</bug_when>
    <thetext>Reproducible with current trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>552992</commentid>
    <comment_count>3</comment_count>
      <attachid>126263</attachid>
    <who name="">T.Rosenau</who>
    <bug_when>2012-02-09 02:45:18 -0800</bug_when>
    <thetext>Created attachment 126263
Testcase that shows the issue in both directions (enlarging/shrinking window)

This testcase shows the issue when
- starting with a narrow window, and widening
- starting with a wide window, and shrinking

I suppose the &quot;display&quot; property is the only one affected.


[OT] I ran into this issue trying to make some responsive layout with table-displays (http://www.sitepoint.com/table-based-layout-is-the-next-big-thing/, which allows to mix percentages with pixels), using automatic table-* insertion as described in http://www.w3.org/TR/CSS2/tables.html#anonymous-boxes [/OT]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>894902</commentid>
    <comment_count>4</comment_count>
    <who name="Giorgio">giorgio.liscio</who>
    <bug_when>2013-05-29 05:03:08 -0700</bug_when>
    <thetext>still reproducible with latest trunk

the only workaround i&apos;ve found is a complete redraw

http://jsbin.com/ibacuv/1/edit

fix that, please</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938015</commentid>
    <comment_count>5</comment_count>
    <who name="Christopher">christopherbuenaventura</who>
    <bug_when>2013-10-09 12:15:08 -0700</bug_when>
    <thetext>I have reproduced another instance of the issue which is only occurring in Webkit. This deals with block/inline-block elements and their combinations with changing position properties in media queries: http://jsfiddle.net/2eNqc/8/

Is there any progress on a resolution to this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939466</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-10-14 09:22:32 -0700</bug_when>
    <thetext>http://mathiasbynens.be/demo/webkit-media-query-bug (ul li case) works fine on trunk. It got fixed somewhere between r120351 and r120500.

http://jsfiddle.net/2eNqc/8/ (inline-block case) also works fine on trunk. It got fixed somewhere between r140001 and r142015.

However the last attached test case (table) still fails and the layout does not recover after resizing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939475</commentid>
    <comment_count>7</comment_count>
    <who name="Christopher">christopherbuenaventura</who>
    <bug_when>2013-10-14 09:48:05 -0700</bug_when>
    <thetext>I still don&apos;t see it working properly for my inline-block case on Chrome 30.0.1599.69 m (Webkit v???, r158213) nor Safari 6.0.5 (Webkit v536.30.1, r???). To clarify what I&apos;m seeing:

1. Start &gt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are on the same line (correct).
2. Shrink it down to &lt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are on different lines (correct).
3. Bring it back to &gt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are still on different lines (incorrect).

[Step 2 and 3 exhibit the same behavior even when step 1 is omitted.]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939582</commentid>
    <comment_count>8</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-10-14 12:02:04 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; I still don&apos;t see it working properly for my inline-block case on Chrome 30.0.1599.69 m (Webkit v???, r158213) nor Safari 6.0.5 (Webkit v536.30.1, r???). To clarify what I&apos;m seeing:
&gt; 
&gt; 1. Start &gt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are on the same line (correct).
&gt; 2. Shrink it down to &lt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are on different lines (correct).
&gt; 3. Bring it back to &gt;480px: &quot;Item 1&quot; and &quot;Item 2&quot; are still on different lines (incorrect).
&gt; 
&gt; [Step 2 and 3 exhibit the same behavior even when step 1 is omitted.]

Could you check it out with the latest nightly? http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r157406.dmg

step 3 looks correct to me (Item 1 and 2 are on the same line)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964724</commentid>
    <comment_count>9</comment_count>
    <who name="">dimmerswitch</who>
    <bug_when>2014-01-06 12:49:11 -0800</bug_when>
    <thetext>This is still fully reproducible for me using the test case from Attachment ID 126263, on Safari Version 6.1 (7537.71) / OSX 10.7.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1069310</commentid>
    <comment_count>10</comment_count>
    <who name="JB">info</who>
    <bug_when>2015-02-15 08:09:28 -0800</bug_when>
    <thetext>Over 4 years later and the issue has still not been fixed...
http://jsfiddle.net/G2h9U/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1158293</commentid>
    <comment_count>11</comment_count>
    <who name="Ameen Bill">ameen_bill</who>
    <bug_when>2016-01-25 06:35:09 -0800</bug_when>
    <thetext>Bug not reproducible now in webkit-r194696. please check and close this bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>80182</attachid>
            <date>2011-01-26 04:46:03 -0800</date>
            <delta_ts>2011-01-26 04:46:42 -0800</delta_ts>
            <desc>Minimal test case</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>51</size>
            <attacher name="Mathias Bynens">mathias</attacher>
            
              <data encoding="base64">aHR0cDovL21hdGhpYXNieW5lbnMuYmUvZGVtby93ZWJraXQtbWVkaWEtcXVlcnktYnVn
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>80183</attachid>
            <date>2011-01-26 04:46:42 -0800</date>
            <delta_ts>2013-10-14 09:22:57 -0700</delta_ts>
            <desc>Minimal test case</desc>
            <filename>webkit-media-query-bug.html</filename>
            <type>text/html</type>
            <size>712</size>
            <attacher name="Mathias Bynens">mathias</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+Cjx0aXRsZT5XZWJLaXQgYnVnIHdpdGggQG1lZGlhIHF1ZXJpZXM8L3Rp
dGxlPgo8c3R5bGU+CnVsIHsgcGFkZGluZzogMDsgfQpsaSB7IGRpc3BsYXk6IGlubGluZTsgfQph
IHsgZGlzcGxheTogaW5saW5lLWJsb2NrOyBiYWNrZ3JvdW5kOiBsaW1lOyB9CiNsdC02NTUgeyBk
aXNwbGF5OiBub25lOyB9CiNndC02NTQgeyBkaXNwbGF5OiBibG9jazsgfQoKLyogPCA2NTVweCAq
LwpAbWVkaWEgYWxsIGFuZCAobWF4LXdpZHRoOiA2NTRweCkgewogYSB7IGRpc3BsYXk6IGJsb2Nr
OyBiYWNrZ3JvdW5kOiByZWQ7IH0KICNsdC02NTUgeyBkaXNwbGF5OiBibG9jazsgfQogI2d0LTY1
NCB7IGRpc3BsYXk6IG5vbmU7IH0KfQo8L3N0eWxlPgo8cCBpZD1sdC02NTU+WW91ciB3aW5kb3cg
aXMgc21hbGxlciB0aGFuIDY1NSBwaXhlbHMuIEV2ZXJ5IGxpbmsgc2hvdWxkIGRpc3BsYXkgb24g
aXRzIG93biBsaW5lLgo8cCBpZD1ndC02NTQ+WW91ciB3aW5kb3cgaXMgd2lkZXIgdGhhbiA2NTQg
cGl4ZWxzLiBUaGUgbGlua3Mgc2hvdWxkIGJlIGRpc3BsYXllZCBvbiBvbmUgbGluZS4KPHVsPgog
PGxpPjxhIGhyZWY9Iz5Gb288L2E+CiA8bGk+PGEgaHJlZj0jPkZvbzwvYT4KIDxsaT48YSBocmVm
PSM+Rm9vPC9hPgogPGxpPjxhIGhyZWY9Iz5Gb288L2E+CiA8bGk+PGEgaHJlZj0jPkZvbzwvYT4K
IDxsaT48YSBocmVmPSM+Rm9vPC9hPgo8L3VsPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>126263</attachid>
            <date>2012-02-09 02:45:18 -0800</date>
            <delta_ts>2012-02-09 02:45:18 -0800</delta_ts>
            <desc>Testcase that shows the issue in both directions (enlarging/shrinking window)</desc>
            <filename>test2.html</filename>
            <type>text/html</type>
            <size>821</size>
            <attacher>T.Rosenau</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxzdHlsZT4KICAgICNjb250YWluZXIgewogICAgICAgIGRpc3BsYXk6
IHRhYmxlOwogICAgICAgIHRhYmxlLWxheW91dDogZml4ZWQ7CiAgICAgICAgd2lkdGg6IDEwMCU7
CiAgICB9CiAgICAuY2VsbCB7CiAgICAgICAgZGlzcGxheTogdGFibGUtY2VsbDsKICAgICAgICBi
b3JkZXI6IDFweCBkb3R0ZWQgYmx1ZTsKICAgICAgICB3aWR0aDogNTAlOwogICAgfQogICAgI2Nl
bGwyIHsKICAgICAgICB3aWR0aDogMTBweDsKICAgIH0KICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBh
bmQgKG1heC13aWR0aDo4MDBweCkgewogICAgICAgICNjZWxsMiB7CiAgICAgICAgICAgIGRpc3Bs
YXk6IHRhYmxlLXJvdzsKICAgICAgICAgICAgaGVpZ2h0OiAxMHB4OwogICAgICAgIH0KICAgIH0K
PC9zdHlsZT4KPGJvZHk+CjxkaXYgaWQ9ImNvbnRhaW5lciI+CiAgICA8ZGl2IGNsYXNzPSJjZWxs
IiBpZD0iY2VsbDEiPiBMb3JlbSBpcHN1bSBkb2xvciBzaXQgYW1ldCwgY29uc2VjdGV0dXIgYWRp
cGlzaWNpbmcgZWxpdCwgc2VkIGRvIGVpdXNtb2QgdGVtcG9yIGluY2lkaWR1bnQgdXQgbGFib3Jl
IGV0IGRvbG9yZSBtYWduYSBhbGlxdWEuPC9kaXY+CiAgICA8ZGl2IGNsYXNzPSJjZWxsIiBpZD0i
Y2VsbDIiPjwvZGl2PgogICAgPGRpdiBjbGFzcz0iY2VsbCIgaWQ9ImNlbGwzIj4gTG9yZW0gaXBz
dW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2ljaW5nIGVsaXQsIHNlZCBkbyBl
aXVzbW9kIHRlbXBvciBpbmNpZGlkdW50IHV0IGxhYm9yZSBldCBkb2xvcmUgbWFnbmEgYWxpcXVh
LjwvZGl2Pgo8L2Rpdj4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>