Attach (recommended) or Link to PDF file here:
[imm5710f(1).pdf](https://github.com/mozilla/pdf.js/files/6924738/imm5710f.1.pdf)

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: Debian

Steps to reproduce the problem:
1. Open the pdf on page 3 
2. See the 2 fields after `DÉTAILS DU TRAVAIL PRÉVU AU CANADA`

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/128031365-84b17d62-f805-43d1-9d05-e2b535efa3ef.png)

const attempt = (parent[$extra] && parent[$extra].attempt) || 0;
  const [, y, w, h] = getTransformedBBox(node);
  switch (parent.layout) {
    case "lr-tb":
    case "rl-tb":
      if (attempt === 0) {
        
        if (!node[$getTemplateRoot]()[$extra].noLayoutFailure) {
          if (node.h !== "" && Math.round(h - space.height) > ERROR) {
            
            return false;
          }
          if (node.w !== "") {
            if (Math.round(w - space.width) <= ERROR) {
              return true;
            }
            if (parent[$extra].numberInLine === 0) {
              return space.height > 0;
            }
            return false;
          }
          return space.width > 0;
        }
        
        
        
        if (node.w !== "") {
          return Math.round(w - space.width) <= ERROR;
        }
        return space.width > 0;