www.androidpit.com - text is not visible
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
- Navigate to: https://www.androidpit.com/android-m-release-date-news-features-name
Expected Behavior:visible text
Actual Behavior:text is not visible
Interesting - many SECTION elements are misplaced in the DOM, not inside ARTICLE - and those elements are invisible. Same without JS. Some parsing problem?
</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?
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.
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.
Contact Information:
https://www.androidpit.com/en/android/contact/form
The CSS is still here, but the issue is not there anymore. Setting as worksforme.