web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.androidpit.com - text is not visible

Open ksetlak opened this issue 11 years ago • 6 comments

URL: https://www.androidpit.com/android-m-release-date-news-features-name Browser / Version: Firefox Mobile 45.0 Operating System: Android 5.1.1 Problem type: Text is not visible

Steps to Reproduce

  1. Navigate to: https://www.androidpit.com/android-m-release-date-news-features-name

Expected Behavior:visible text

Actual Behavior:text is not visible

ksetlak avatar Nov 17 '15 14:11 ksetlak

Interesting - many SECTION elements are misplaced in the DOM, not inside ARTICLE - and those elements are invisible. Same without JS. Some parsing problem?

hallvors avatar Nov 18 '15 12:11 hallvors

      </div>
    </div>
  </div>
  <img src="http://appmedia.go2cloud.org/aff_i?aff_id=7&offer_id=19&aff_sub=552169&aff_sub2=SAME" width="1" height="1" />
</div>          </section>

The </div> in that last quoted line shouldn't be there.

I thought HTML5's parsing algorithm would save us from these errors, but apparently not so.. @dholbert, do you know anything about parsing?

hallvors avatar Nov 18 '15 13:11 hallvors

Probably not any more than you do. If you have specific correctness questions about HTML parsing & unmatched </div> tags, you might want to direct them at hsivonen.

dholbert avatar Nov 18 '15 15:11 dholbert

I believe the proximal issue here might not actually be this parsing bug -- it's this style rule, on a flex item:

.onepcssgrid-1200 {
    [...]
    min-height:100%;
    [...]
    flex-grow:1
}

https://static.androidpit.info/styles/main-fc07b51a.css

The min-height: 100% there is the bogus part -- it's forcing that flex item to be absurdly large, which pushes the actual article content off the bottom of the page. We honor it, Chrome does not. I think technically Chrome is right here -- the "100%" should be ignored in layout, because the parent's height isn't definite [because the parent is a flex item whose flex-basis is not definite]. This is https://bugzilla.mozilla.org/show_bug.cgi?id=1092007 )

We should reach out to the site and ask them to remove that min-height: 100% (and/or fix the unbalanced </div>, if that also fixes this issue by restructuring the DOM). To the extent that this min-height has any effect at all (which is bug 1092007, noted above), that effect is to break the page's rendering; so better to just remove it.

dholbert avatar Nov 18 '15 18:11 dholbert

Contact Information:

https://www.androidpit.com/en/android/contact/form

Scantleous avatar Jan 01 '16 20:01 Scantleous

The CSS is still here, but the issue is not there anymore. Setting as worksforme.

karlcow avatar May 10 '16 11:05 karlcow