Closed pomber closed 2 years ago
If the html doesn't have <!doctype ... >, browser renders it in quirks mode, and some of the height: 100% styles act weird.
<!doctype ... >
height: 100%
Here's a minimal html to test with and without <!doctype> and see the difference:
<!DOCTYPE html> <html> <body> <div> <p>Lorem</p> <div class="ch-cg"> <div class="ch-code" style="height: 100%; background: rgb(46, 52, 64)"> Hello </div> </div> <p>Lorem</p> </div> </body> </html>
Here's how the heigh: 100% works on quirk mode: The percentage height calculation quirk
heigh: 100%
:rocket: Issue was released in v0.3.0 :rocket:
v0.3.0
If the html doesn't have
<!doctype ... >
, browser renders it in quirks mode, and some of theheight: 100%
styles act weird.Here's a minimal html to test with and without <!doctype> and see the difference: