We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1256d6 commit 68b1f01Copy full SHA for 68b1f01
src/main/java/org/htmlunit/css/ComputedCssStyleDeclaration.java
@@ -1969,6 +1969,13 @@ else if (element instanceof HtmlHeading6) {
1969
defaultHeight *= StringUtils.countMatches(content, '\n') + 1;
1970
}
1971
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
1979
1980
1981
0 commit comments