Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Google Chrome: CSS3 Responsive Layout Bug
    primarykey
    data
    text
    <p>I have a problem when viewing this site with the latest Chrome for Android on my Stock Jelly Bean Gnex: <a href="http://kwitter.org/walialu/1340969834" rel="nofollow">http://kwitter.org/walialu/1340969834</a></p> <p>It renders as it should be when loading the page. Then I flip my phone to change to landscape mode and it breaks the design. I need to refresh the page to let chrome re-rendering the page and then everything looks fine.</p> <p>When viewing it on the stock Jelly Bean browser everything is rendering as expected.</p> <p>The HTML for this site looks like this:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Kwitter.org - Like Twitter with, but with more K!&lt;/title&gt; &lt;meta charset="utf-8" /&gt; &lt;link rel="stylesheet" href="/_twitext/templates/default/template.css" type="text/css" /&gt; &lt;link rel="shortcut icon" href="/favicon.ico" /&gt; &lt;meta name="HandheldFriendly" content="True" /&gt; &lt;meta name="MobileOptimized" content="320" /&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt; &lt;script type="text/javascript" src="/gaia.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="topbar"&gt;&lt;/div&gt; &lt;div id="content"&gt; &lt;div id="twitexts"&gt;&lt;div class="twitext"&gt;&lt;a href="/keanan"&gt;&lt;div class="avatar" style="background-image: url('/_twitext/avatars/keanan.png');"&gt;&lt;/div&gt;&lt;/a&gt; &lt;div class="userdata"&gt;&lt;a href="/keanan"&gt;&lt;div class="name"&gt;Keanan Williams&lt;/div&gt;&lt;div class="username"&gt;+keanan&lt;span&gt;@kwitter.org&lt;/span&gt;&lt;/div&gt;&lt;/a&gt;&lt;div class="posted_via"&gt;via Android Mobile Web&lt;/div&gt;&lt;div class="date"&gt;&lt;a href="/keanan/1340969834"&gt;2012-06-29 13:37:14&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="text"&gt;I can&amp;#039;t wait to get butter on my Galaxy Nexus. It is so fucking awesome, but watch for yourself! &lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;footer&gt;&lt;/footer&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The CSS for this site looks like this:</p> <pre><code> html { height: 100%; } body { height: 100%; margin: 0; padding: 0; background-color: #bbb; color: #999; font-size: 17px; font-family: Verdana, Arial, Helvetica, sans-serif; background: #C0DEED url("/_twitext/templates/default/bg.png") repeat-x fixed; } a { color: #F92659; } kbd { background-color:#f7f7f7; border:1px solid #ccc; border-radius:3px; box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset; color:#333; display:inline-block; font-family:Arial,Helvetica,sans-serif; font-size:12px; line-height:1.4; margin:0 .1em; padding:.1em .6em; text-shadow:0 1px 0 #fff; } .date a { color: #666; } button { position: relative; display: inline-block; overflow: visible; padding: 5px 10px; font-size: 13px; font-weight: bold; line-height: 18px; cursor: pointer; border-radius: 4px; color: #CCC; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); background-color: #333; background-repeat: no-repeat; border: 1px solid #333; box-shadow: 0 1px 0 rgba(0, 0, 0, .5); } button:active { color: #FFF; text-shadow: 0 1px 0 rgba(100, 100, 100, .5); background-color: #555; background-repeat: no-repeat; border: 1px solid #555; box-shadow: 0 1px 0 rgba(100, 100, 100, .5); } input,textarea { border: 1px solid #559; border-radius: 10px; font-size: 18px; max-width: 100%; padding: 10px; background-color: #eef; color: #000; margin: 10px; } #post_window textarea, #edit_window textarea { width: 546px; max-width: 85%; height: 200px; max-height: 94%; } #post_window input { width: 546px; max-width: 85%; } .box-header { border-top-left-radius: 10px; border-top-right-radius: 10px; font-size: 18px; margin-top: -1px; padding: 5px; color: #000; } div.overlay { position: absolute; z-index: 1000; } div.overlay.modal { position: absolute; left: 0px; top: 0px; width:100%; height:100%; max-width: 100%; text-align:center; z-index: 1000; background-image:url("/_twitext/images/overlay-bg.png"); } div.overlay div { position: absolute; min-width:90px; min-height:90px; max-width: 96%; padding: 0; border: 1px solid #000; border-radius: 10px; background-color: #fff; color: #000; } div.overlay div .window-destroy-button { float: right; margin-top: -5px; background-color: #900; color: #fff; height: 32px; width: 32px; } div.overlay div span { margin: -1px; border: 1px solid #000; border-radius: 10px 10px 0 0; background-color: #3287D0; padding:10px; display: block; text-align: center; } div.overlay div div { position: relative; margin: 10px; max-width: 100%; background-color: #fff; border-radius: 0 0 10px 10px; text-align:center; border: 0 none; } #topbar { background-color: #222; height: 42px; margin-bottom: 10px; } #topbar div { margin: 0 auto; padding-top: 3px; width: 576px; max-width: 100%; } #content { width: 96%; margin: 0 auto; } #twitexts { width: 100%; } #twitexts .twitext { } #twitexts .twitext .avatar { display: none; width: 96px; height: 96px; margin-top: 10px; margin-left: 10px; margin-bottom: 10px; } #twitexts .twitext .userdata { padding: 10px; margin-top: 10px; max-width: 100%; min-height: 86px; border: 1px solid #999; border-bottom: 0 none; border-radius: 10px 10px 0 0; background-color: #fff; color: #000; } #twitexts .twitext .userdata a, #twitexts .twitext .userdata a:visited{ color: #000; } #twitexts .twitext .userdata .name, #twitexts .twitext .userdata .username { float: left; } #twitexts .twitext .userdata .username { clear: both; margin-left: 20px; } #twitexts .twitext .userdata .posted_via { padding-top: 10px; clear: both; color: #999; font-size: 10px; } #twitexts .twitext .userdata .date { clear: both; font-size: 10px; } #twitexts .twitext .userdata .username span { font-size: small; color: #666; } #twitexts .twitext .text { max-width: 100%; padding: 10px; border: 1px solid #999; border-radius: 0 0 10px 10px; background-color: #fff; word-wrap: break-word; color: #272822; } @media (min-width: 480px) { #twitexts .twitext .avatar { float: left; display: block; margin-left: 0; margin-bottom: -30px; margin-right: 10px; } #twitexts .twitext .userdata { margin-left: 120px; padding: 10px; max-width: 100%; display: block; } #twitexts .twitext .userdata .username { margin-top: -30px; } #twitexts .twitext .text { clear: both; } } @media (min-width: 640px) { #content { max-width: 576px; } #twitexts .twitext .avatar { float: left; display: block; margin-left: 0; margin-bottom: 0; margin-right: 10px; } #twitexts { float: right; width: 576px; } #twitexts .twitext .text { float: left; width: 538px; } #postbar { float: left; } #twitexts .twitext .userdata { float: left; margin-left: 0; padding: 10px; width: 430px; border-radius: 10px 10px 0 0; } #twitexts .twitext .userdata .username { margin-top: 0; } #twitexts .twitext .userdata .posted_via { clear: both; margin-top: -40px; float: right; color: #999; font-size: 10px; } #twitexts .twitext .userdata .date { float: right; margin-top: -20px; font-size: 11px; text-align: right; } } </code></pre> <p>Do you think this is a chrome for android specific rendering bug (because desktop chrome doesn't have this weird behaviour when resizing), or do you think I'm doing something wrong?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload