Skip to content

Wrong height on quirks mode #140

Closed
@pomber

Description

@pomber

If the html doesn't have <!doctype ... >, browser renders it in quirks mode, and some of the height: 100% styles act weird.

image

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions