aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-12-18 12:53:36 -0500
committerJosh Matthews <josh@joshmatthews.net>2014-12-18 12:54:03 -0500
commit0a546654441276ddce5354ff3f1a5eef1f4f300a (patch)
tree14812fb94a254072b60b8a82be3bb7c4c9e99809 /components/script
parent6bffc1044505594c09f8079ec424a5c0cd8e6354 (diff)
downloadservo-0a546654441276ddce5354ff3f1a5eef1f4f300a.tar.gz
servo-0a546654441276ddce5354ff3f1a5eef1f4f300a.zip
Add missing supported CSS properties.
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/cssstyledeclaration.rs18
-rw-r--r--components/script/dom/webidls/CSSStyleDeclaration.webidl24
2 files changed, 42 insertions, 0 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index ec59235b1cc..99cb65c4807 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -262,6 +262,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
[BackgroundAttachment, SetBackgroundAttachment, "background-attachment"],
[Border, SetBorder, "border"],
[BorderColor, SetBorderColor, "border-color"],
+ [BorderRadius, SetBorderRadius, "border-radius"],
[BorderStyle, SetBorderStyle, "border-style"],
[BorderWidth, SetBorderWidth, "border-width"],
[BorderBottom, SetBorderBottom, "border-bottom"],
@@ -282,6 +283,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
[BorderTopWidth, SetBorderTopWidth, "border-top-width"],
[Content, SetContent, "content"],
[Display, SetDisplay, "display"],
+ [Opacity, SetOpacity, "opacity"],
[Width, SetWidth, "width"],
[MinWidth, SetMinWidth, "min-width"],
[MaxWidth, SetMaxWidth, "max-width"],
@@ -292,14 +294,29 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
[Direction, SetDirection, "direction"],
[LineHeight, SetLineHeight, "line-height"],
[VerticalAlign, SetVerticalAlign, "vertical-align"],
+ [ListStyle, SetListStyle, "list-style"],
+ [ListStylePosition, SetListStylePosition, "list-style-position"],
+ [ListStyleType, SetListStyleType, "list-style-type"],
+ [ListStyleImage, SetListStyleImage, "list-style-image"],
[Visibility, SetVisibility, "visibility"],
+ [Cursor, SetCursor, "cursor"],
+ [BoxShadow, SetBoxShadow, "box-shadow"],
+ [BoxSizing, SetBoxSizing, "box-sizing"],
[Overflow, SetOverflow, "overflow"],
+ [OverflowWrap, SetOverflowWrap, "overflow-wrap"],
[TableLayout, SetTableLayout, "table-layout"],
+ [EmptyCells, SetEmptyCells, "empty-cells"],
+ [CaptionSide, SetCaptionSide, "caption-side"],
[WhiteSpace, SetWhiteSpace, "white-space"],
[WritingMode, SetWritingMode, "writing-mode"],
+ [LetterSpacing, SetLetterSpacing, "letter-spacing"],
+ [WordSpacing, SetWordSpacing, "word-spacing"],
+ [WordWrap, SetWordWrap, "word-wrap"],
[TextAlign, SetTextAlign, "text-align"],
[TextDecoration, SetTextDecoration, "text-decoration"],
+ [TextIndent, SetTextIndent, "text-indent"],
[TextOrientation, SetTextOrientation, "text-orientation"],
+ [TextTransform, SetTextTransform, "text-transform"],
[Font, SetFont, "font"],
[FontFamily, SetFontFamily, "font-family"],
[FontSize, SetFontSize, "font-size"],
@@ -316,6 +333,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
[PaddingLeft, SetPaddingLeft, "padding-left"],
[PaddingRight, SetPaddingRight, "padding-right"],
[PaddingTop, SetPaddingTop, "padding-top"],
+ [Outline, SetOutline, "outline"],
[Position, SetPosition, "position"],
[Bottom, SetBottom, "bottom"],
[Left, SetLeft, "left"],
diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl
index 188ba8a9df9..8ef419df6a5 100644
--- a/components/script/dom/webidls/CSSStyleDeclaration.webidl
+++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl
@@ -38,6 +38,7 @@ partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString border;
[TreatNullAs=EmptyString] attribute DOMString borderColor;
+ [TreatNullAs=EmptyString] attribute DOMString borderRadius;
[TreatNullAs=EmptyString] attribute DOMString borderStyle;
[TreatNullAs=EmptyString] attribute DOMString borderWidth;
[TreatNullAs=EmptyString] attribute DOMString borderBottom;
@@ -63,8 +64,15 @@ partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString display;
+ [TreatNullAs=EmptyString] attribute DOMString opacity;
+
[TreatNullAs=EmptyString] attribute DOMString visibility;
+ [TreatNullAs=EmptyString] attribute DOMString cursor;
+
+ [TreatNullAs=EmptyString] attribute DOMString boxSizing;
+ [TreatNullAs=EmptyString] attribute DOMString boxShadow;
+
//[TreatNullAs=EmptyString] attribute DOMString float; //XXXjdm need BinaryName annotation
[TreatNullAs=EmptyString] attribute DOMString clear;
@@ -75,17 +83,31 @@ partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString verticalAlign;
+ [TreatNullAs=EmptyString] attribute DOMString listStyle;
+ [TreatNullAs=EmptyString] attribute DOMString listStylePosition;
+ [TreatNullAs=EmptyString] attribute DOMString listStyleType;
+ [TreatNullAs=EmptyString] attribute DOMString listStyleImage;
+
[TreatNullAs=EmptyString] attribute DOMString overflow;
+ [TreatNullAs=EmptyString] attribute DOMString overflowWrap;
[TreatNullAs=EmptyString] attribute DOMString tableLayout;
+ [TreatNullAs=EmptyString] attribute DOMString emptyCells;
+ [TreatNullAs=EmptyString] attribute DOMString captionSide;
[TreatNullAs=EmptyString] attribute DOMString whiteSpace;
[TreatNullAs=EmptyString] attribute DOMString writingMode;
+ [TreatNullAs=EmptyString] attribute DOMString letterSpacing;
+ [TreatNullAs=EmptyString] attribute DOMString wordSpacing;
+ [TreatNullAs=EmptyString] attribute DOMString wordWrap;
+
[TreatNullAs=EmptyString] attribute DOMString textAlign;
[TreatNullAs=EmptyString] attribute DOMString textDecoration;
+ [TreatNullAs=EmptyString] attribute DOMString textIndent;
[TreatNullAs=EmptyString] attribute DOMString textOrientation;
+ [TreatNullAs=EmptyString] attribute DOMString textTransform;
[TreatNullAs=EmptyString] attribute DOMString font;
[TreatNullAs=EmptyString] attribute DOMString fontFamily;
@@ -106,6 +128,8 @@ partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString paddingRight;
[TreatNullAs=EmptyString] attribute DOMString paddingTop;
+ [TreatNullAs=EmptyString] attribute DOMString outline;
+
[TreatNullAs=EmptyString] attribute DOMString position;
[TreatNullAs=EmptyString] attribute DOMString top;