|
15 | 15 | package org.htmlunit.javascript.host.css; |
16 | 16 |
|
17 | 17 | import static org.htmlunit.BrowserVersionFeatures.CSS_BACKGROUND_INITIAL; |
18 | | -import static org.htmlunit.BrowserVersionFeatures.JS_STYLE_LETTER_SPACING_ACCEPTS_PERCENT; |
19 | | -import static org.htmlunit.BrowserVersionFeatures.JS_STYLE_WORD_SPACING_ACCEPTS_PERCENT; |
20 | 18 | import static org.htmlunit.css.CssStyleSheet.ABSOLUTE; |
21 | 19 | import static org.htmlunit.css.CssStyleSheet.AUTO; |
22 | 20 | import static org.htmlunit.css.CssStyleSheet.FIXED; |
@@ -967,8 +965,7 @@ public String getLetterSpacing() { |
967 | 965 | */ |
968 | 966 | @JsxSetter |
969 | 967 | public void setLetterSpacing(final Object letterSpacing) { |
970 | | - setStyleLengthAttribute(Definition.LETTER_SPACING.getAttributeName(), letterSpacing, "", |
971 | | - false, getBrowserVersion().hasFeature(JS_STYLE_LETTER_SPACING_ACCEPTS_PERCENT), null); |
| 968 | + setStyleLengthAttribute(Definition.LETTER_SPACING.getAttributeName(), letterSpacing, "", false, true, null); |
972 | 969 | } |
973 | 970 |
|
974 | 971 | /** |
@@ -1774,7 +1771,7 @@ public String getWordSpacing() { |
1774 | 1771 | @JsxSetter |
1775 | 1772 | public void setWordSpacing(final Object wordSpacing) { |
1776 | 1773 | setStyleLengthAttribute(Definition.WORD_SPACING.getAttributeName(), wordSpacing, "", |
1777 | | - false, getBrowserVersion().hasFeature(JS_STYLE_WORD_SPACING_ACCEPTS_PERCENT), null); |
| 1774 | + false, true, null); |
1778 | 1775 | } |
1779 | 1776 |
|
1780 | 1777 | /** |
@@ -1880,11 +1877,11 @@ else if (Definition.OUTLINE_WIDTH.getAttributeName().equals(name)) { |
1880 | 1877 | } |
1881 | 1878 | else if (Definition.LETTER_SPACING.getAttributeName().equals(name)) { |
1882 | 1879 | setStyleLengthAttribute(Definition.LETTER_SPACING.getAttributeName(), value, imp, |
1883 | | - false, getBrowserVersion().hasFeature(JS_STYLE_LETTER_SPACING_ACCEPTS_PERCENT), null); |
| 1880 | + false, true, null); |
1884 | 1881 | } |
1885 | 1882 | else if (Definition.WORD_SPACING.getAttributeName().equals(name)) { |
1886 | 1883 | setStyleLengthAttribute(Definition.WORD_SPACING.getAttributeName(), value, imp, |
1887 | | - false, getBrowserVersion().hasFeature(JS_STYLE_WORD_SPACING_ACCEPTS_PERCENT), null); |
| 1884 | + false, true, null); |
1888 | 1885 | } |
1889 | 1886 | else if (Definition.VERTICAL_ALIGN.getAttributeName().equals(name)) { |
1890 | 1887 | setStyleLengthAttribute(Definition.VERTICAL_ALIGN.getAttributeName(), value, imp, false, true, null); |
|
0 commit comments