@@ -80,8 +80,7 @@ public class CSSStyleDeclaration extends HtmlUnitScriptable {
80
80
Definition .BORDER_TOP_WIDTH .getAttributeName (),
81
81
Definition .BORDER_LEFT_WIDTH .getAttributeName (),
82
82
Definition .BORDER_BOTTOM_WIDTH .getAttributeName (),
83
- Definition .BORDER_RIGHT_WIDTH .getAttributeName (),
84
- Definition .LETTER_SPACING .getAttributeName ()));
83
+ Definition .BORDER_RIGHT_WIDTH .getAttributeName ()));
85
84
86
85
private static final Set <String > LENGTH_PROPERTIES_TTFF = new HashSet <>(Arrays .asList (
87
86
Definition .HEIGHT .getAttributeName (),
@@ -1844,24 +1843,28 @@ public void setProperty(final String name, final Object value, final String impo
1844
1843
}
1845
1844
1846
1845
if (LENGTH_PROPERTIES_FFFF .contains (name )) {
1847
- setStyleLengthAttribute (name , value , imp , false , false , false , null );
1846
+ setStyleLengthAttribute (name , value , imp , false , false , true , null );
1848
1847
}
1849
1848
else if (LENGTH_PROPERTIES_TTFF .contains (name )) {
1850
- setStyleLengthAttribute (name , value , imp , true , true , false , null );
1849
+ setStyleLengthAttribute (name , value , imp , true , true , true , null );
1851
1850
}
1852
1851
else if (LENGTH_PROPERTIES_FTFF .contains (name )) {
1853
- setStyleLengthAttribute (name , value , imp , false , true , false , null );
1852
+ setStyleLengthAttribute (name , value , imp , false , true , true , null );
1854
1853
}
1855
1854
else if (Definition .OUTLINE_WIDTH .getAttributeName ().equals (name )) {
1856
1855
setStyleLengthAttribute (Definition .OUTLINE_WIDTH .getAttributeName (),
1857
1856
value , imp , false , false , true , THIN_MED_THICK );
1858
1857
}
1858
+ else if (Definition .LETTER_SPACING .getAttributeName ().equals (name )) {
1859
+ setStyleLengthAttribute (Definition .LETTER_SPACING .getAttributeName (), value , imp ,
1860
+ false , getBrowserVersion ().hasFeature (JS_STYLE_LETTER_SPACING_ACCEPTS_PERCENT ), true , null );
1861
+ }
1859
1862
else if (Definition .WORD_SPACING .getAttributeName ().equals (name )) {
1860
1863
setStyleLengthAttribute (Definition .WORD_SPACING .getAttributeName (), value , imp ,
1861
- false , getBrowserVersion ().hasFeature (JS_STYLE_WORD_SPACING_ACCEPTS_PERCENT ), false , null );
1864
+ false , getBrowserVersion ().hasFeature (JS_STYLE_WORD_SPACING_ACCEPTS_PERCENT ), true , null );
1862
1865
}
1863
1866
else if (Definition .VERTICAL_ALIGN .getAttributeName ().equals (name )) {
1864
- setStyleLengthAttribute (Definition .VERTICAL_ALIGN .getAttributeName (), value , imp , false , true , false , null );
1867
+ setStyleLengthAttribute (Definition .VERTICAL_ALIGN .getAttributeName (), value , imp , false , true , true , null );
1865
1868
}
1866
1869
else {
1867
1870
setStyleAttribute (name , JavaScriptEngine .toString (value ), imp );
0 commit comments