summaryrefslogtreecommitdiff
path: root/javax/swing/text/html/CSS.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/text/html/CSS.java')
-rw-r--r--javax/swing/text/html/CSS.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/javax/swing/text/html/CSS.java b/javax/swing/text/html/CSS.java
index 0d1eeb762..294d47fb2 100644
--- a/javax/swing/text/html/CSS.java
+++ b/javax/swing/text/html/CSS.java
@@ -418,7 +418,17 @@ public class CSS implements Serializable
new Attribute("border-right-color", false, null);
static final Attribute BORDER_SPACING =
new Attribute("border-spacing", false, null);
-
+ static final Attribute POSITION =
+ new Attribute("position", false, null);
+ static final Attribute LEFT =
+ new Attribute("left", false, null);
+ static final Attribute RIGHT =
+ new Attribute("right", false, null);
+ static final Attribute TOP =
+ new Attribute("top", false, null);
+ static final Attribute BOTTOM =
+ new Attribute("bottom", false, null);
+
/**
* The attribute string.
*/
@@ -522,7 +532,9 @@ public class CSS implements Serializable
|| att == Attribute.HEIGHT
|| att == Attribute.PADDING || att == Attribute.PADDING_BOTTOM
|| att == Attribute.PADDING_LEFT || att == Attribute.PADDING_RIGHT
- || att == Attribute.PADDING_TOP)
+ || att == Attribute.PADDING_TOP
+ || att == Attribute.LEFT || att == Attribute.RIGHT
+ || att == Attribute.TOP || att == Attribute.BOTTOM)
o = new Length(v);
else if (att == Attribute.BORDER_WIDTH || att == Attribute.BORDER_TOP_WIDTH
|| att == Attribute.BORDER_LEFT_WIDTH