-
Bug
-
Resolution: Fixed
-
P4
-
5.0, 6
-
b16
-
generic
-
generic
According to java specification, javax.swing.text.html.CSS.Attribute should comply to CSS w3c spec (http://www.w3.org/TR/REC-CSS1). There are two inconsistent constants:
1. The default value of javax.swing.text.html.CSS.Attribute.BACKGROUND_POSITION should be "0% 0%" instead of null.
2. The inherited property of javax.swing.text.html.CSS.Attribute.TEXT_DECORATION should be "false" instead of true.
Here is an example:
import javax.swing.text.html.CSS.Attribute;
public class Tester {
public static void main(String[] argv) {
System.out.println("Attribute.BACKGROUND_POSITION.getDefaultValue: " +
Attribute.BACKGROUND_POSITION.getDefaultValue());
System.out.println("Expected from w3c.background-position: " +
" Initial: 0% 0%");
System.out.println("Attribute.TEXT_DECORATION.isInherited: " +
Attribute.TEXT_DECORATION.isInherited());
System.out.println("Expected w3c.text-decoration: " +
" Inherited: no, but see ...");
}
}
Results:
Attribute.BACKGROUND_POSITION.getDefaultValue: null
Expected from w3c.background-position: Initial: 0% 0%
Attribute.TEXT_DECORATION.isInherited: true
Expected w3c.text-decoration: Inherited: no, but see ...
###@###.### 2005-03-24 09:33:41 GMT
1. The default value of javax.swing.text.html.CSS.Attribute.BACKGROUND_POSITION should be "0% 0%" instead of null.
2. The inherited property of javax.swing.text.html.CSS.Attribute.TEXT_DECORATION should be "false" instead of true.
Here is an example:
import javax.swing.text.html.CSS.Attribute;
public class Tester {
public static void main(String[] argv) {
System.out.println("Attribute.BACKGROUND_POSITION.getDefaultValue: " +
Attribute.BACKGROUND_POSITION.getDefaultValue());
System.out.println("Expected from w3c.background-position: " +
" Initial: 0% 0%");
System.out.println("Attribute.TEXT_DECORATION.isInherited: " +
Attribute.TEXT_DECORATION.isInherited());
System.out.println("Expected w3c.text-decoration: " +
" Inherited: no, but see ...");
}
}
Results:
Attribute.BACKGROUND_POSITION.getDefaultValue: null
Expected from w3c.background-position: Initial: 0% 0%
Attribute.TEXT_DECORATION.isInherited: true
Expected w3c.text-decoration: Inherited: no, but see ...
###@###.### 2005-03-24 09:33:41 GMT