Skip to content

Commit 68b1f01

Browse files
committed
Chrome/Edge 135, FF 137
1 parent d1256d6 commit 68b1f01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/htmlunit/css/ComputedCssStyleDeclaration.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,13 @@ else if (element instanceof HtmlHeading6) {
19691969
defaultHeight *= StringUtils.countMatches(content, '\n') + 1;
19701970
}
19711971
}
1972+
1973+
final String styleHeight = getStyleAttribute(Definition.HEIGHT, true);
1974+
if (styleHeight.endsWith("%")) {
1975+
if (page instanceof HtmlPage && !((HtmlPage) page).isQuirksMode()) {
1976+
return defaultHeight;
1977+
}
1978+
}
19721979
}
19731980
}
19741981

0 commit comments

Comments
 (0)