diff -r 8261a0f79e90 -r ac5434728c3b jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java Fri Jul 21 10:23:37 2017 +0530 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java Fri Jul 21 16:27:35 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -2538,7 +2538,7 @@ if (pos.isHorizontalPositionRelativeToSize()) { flags |= 4; } - else if (pos.isHorizontalPositionRelativeToSize()) { + else if (pos.isHorizontalPositionRelativeToFontSize()) { hPosition *= CSS.getFontSize(a, 12, ss); } if (pos.isVerticalPositionRelativeToSize()) {