mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add missing supported CSS properties.
This commit is contained in:
parent
6bffc10445
commit
0a54665444
2 changed files with 42 additions and 0 deletions
|
@ -262,6 +262,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
||||||
[BackgroundAttachment, SetBackgroundAttachment, "background-attachment"],
|
[BackgroundAttachment, SetBackgroundAttachment, "background-attachment"],
|
||||||
[Border, SetBorder, "border"],
|
[Border, SetBorder, "border"],
|
||||||
[BorderColor, SetBorderColor, "border-color"],
|
[BorderColor, SetBorderColor, "border-color"],
|
||||||
|
[BorderRadius, SetBorderRadius, "border-radius"],
|
||||||
[BorderStyle, SetBorderStyle, "border-style"],
|
[BorderStyle, SetBorderStyle, "border-style"],
|
||||||
[BorderWidth, SetBorderWidth, "border-width"],
|
[BorderWidth, SetBorderWidth, "border-width"],
|
||||||
[BorderBottom, SetBorderBottom, "border-bottom"],
|
[BorderBottom, SetBorderBottom, "border-bottom"],
|
||||||
|
@ -282,6 +283,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
||||||
[BorderTopWidth, SetBorderTopWidth, "border-top-width"],
|
[BorderTopWidth, SetBorderTopWidth, "border-top-width"],
|
||||||
[Content, SetContent, "content"],
|
[Content, SetContent, "content"],
|
||||||
[Display, SetDisplay, "display"],
|
[Display, SetDisplay, "display"],
|
||||||
|
[Opacity, SetOpacity, "opacity"],
|
||||||
[Width, SetWidth, "width"],
|
[Width, SetWidth, "width"],
|
||||||
[MinWidth, SetMinWidth, "min-width"],
|
[MinWidth, SetMinWidth, "min-width"],
|
||||||
[MaxWidth, SetMaxWidth, "max-width"],
|
[MaxWidth, SetMaxWidth, "max-width"],
|
||||||
|
@ -292,14 +294,29 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
||||||
[Direction, SetDirection, "direction"],
|
[Direction, SetDirection, "direction"],
|
||||||
[LineHeight, SetLineHeight, "line-height"],
|
[LineHeight, SetLineHeight, "line-height"],
|
||||||
[VerticalAlign, SetVerticalAlign, "vertical-align"],
|
[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"],
|
[Visibility, SetVisibility, "visibility"],
|
||||||
|
[Cursor, SetCursor, "cursor"],
|
||||||
|
[BoxShadow, SetBoxShadow, "box-shadow"],
|
||||||
|
[BoxSizing, SetBoxSizing, "box-sizing"],
|
||||||
[Overflow, SetOverflow, "overflow"],
|
[Overflow, SetOverflow, "overflow"],
|
||||||
|
[OverflowWrap, SetOverflowWrap, "overflow-wrap"],
|
||||||
[TableLayout, SetTableLayout, "table-layout"],
|
[TableLayout, SetTableLayout, "table-layout"],
|
||||||
|
[EmptyCells, SetEmptyCells, "empty-cells"],
|
||||||
|
[CaptionSide, SetCaptionSide, "caption-side"],
|
||||||
[WhiteSpace, SetWhiteSpace, "white-space"],
|
[WhiteSpace, SetWhiteSpace, "white-space"],
|
||||||
[WritingMode, SetWritingMode, "writing-mode"],
|
[WritingMode, SetWritingMode, "writing-mode"],
|
||||||
|
[LetterSpacing, SetLetterSpacing, "letter-spacing"],
|
||||||
|
[WordSpacing, SetWordSpacing, "word-spacing"],
|
||||||
|
[WordWrap, SetWordWrap, "word-wrap"],
|
||||||
[TextAlign, SetTextAlign, "text-align"],
|
[TextAlign, SetTextAlign, "text-align"],
|
||||||
[TextDecoration, SetTextDecoration, "text-decoration"],
|
[TextDecoration, SetTextDecoration, "text-decoration"],
|
||||||
|
[TextIndent, SetTextIndent, "text-indent"],
|
||||||
[TextOrientation, SetTextOrientation, "text-orientation"],
|
[TextOrientation, SetTextOrientation, "text-orientation"],
|
||||||
|
[TextTransform, SetTextTransform, "text-transform"],
|
||||||
[Font, SetFont, "font"],
|
[Font, SetFont, "font"],
|
||||||
[FontFamily, SetFontFamily, "font-family"],
|
[FontFamily, SetFontFamily, "font-family"],
|
||||||
[FontSize, SetFontSize, "font-size"],
|
[FontSize, SetFontSize, "font-size"],
|
||||||
|
@ -316,6 +333,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
||||||
[PaddingLeft, SetPaddingLeft, "padding-left"],
|
[PaddingLeft, SetPaddingLeft, "padding-left"],
|
||||||
[PaddingRight, SetPaddingRight, "padding-right"],
|
[PaddingRight, SetPaddingRight, "padding-right"],
|
||||||
[PaddingTop, SetPaddingTop, "padding-top"],
|
[PaddingTop, SetPaddingTop, "padding-top"],
|
||||||
|
[Outline, SetOutline, "outline"],
|
||||||
[Position, SetPosition, "position"],
|
[Position, SetPosition, "position"],
|
||||||
[Bottom, SetBottom, "bottom"],
|
[Bottom, SetBottom, "bottom"],
|
||||||
[Left, SetLeft, "left"],
|
[Left, SetLeft, "left"],
|
||||||
|
|
|
@ -38,6 +38,7 @@ partial interface CSSStyleDeclaration {
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString border;
|
[TreatNullAs=EmptyString] attribute DOMString border;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString borderColor;
|
[TreatNullAs=EmptyString] attribute DOMString borderColor;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString borderRadius;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString borderStyle;
|
[TreatNullAs=EmptyString] attribute DOMString borderStyle;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString borderWidth;
|
[TreatNullAs=EmptyString] attribute DOMString borderWidth;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString borderBottom;
|
[TreatNullAs=EmptyString] attribute DOMString borderBottom;
|
||||||
|
@ -63,8 +64,15 @@ partial interface CSSStyleDeclaration {
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString display;
|
[TreatNullAs=EmptyString] attribute DOMString display;
|
||||||
|
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString opacity;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString visibility;
|
[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 float; //XXXjdm need BinaryName annotation
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString clear;
|
[TreatNullAs=EmptyString] attribute DOMString clear;
|
||||||
|
@ -75,17 +83,31 @@ partial interface CSSStyleDeclaration {
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString verticalAlign;
|
[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 overflow;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString overflowWrap;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString tableLayout;
|
[TreatNullAs=EmptyString] attribute DOMString tableLayout;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString emptyCells;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString captionSide;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString whiteSpace;
|
[TreatNullAs=EmptyString] attribute DOMString whiteSpace;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString writingMode;
|
[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 textAlign;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString textDecoration;
|
[TreatNullAs=EmptyString] attribute DOMString textDecoration;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString textIndent;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString textOrientation;
|
[TreatNullAs=EmptyString] attribute DOMString textOrientation;
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString textTransform;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString font;
|
[TreatNullAs=EmptyString] attribute DOMString font;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString fontFamily;
|
[TreatNullAs=EmptyString] attribute DOMString fontFamily;
|
||||||
|
@ -106,6 +128,8 @@ partial interface CSSStyleDeclaration {
|
||||||
[TreatNullAs=EmptyString] attribute DOMString paddingRight;
|
[TreatNullAs=EmptyString] attribute DOMString paddingRight;
|
||||||
[TreatNullAs=EmptyString] attribute DOMString paddingTop;
|
[TreatNullAs=EmptyString] attribute DOMString paddingTop;
|
||||||
|
|
||||||
|
[TreatNullAs=EmptyString] attribute DOMString outline;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString position;
|
[TreatNullAs=EmptyString] attribute DOMString position;
|
||||||
|
|
||||||
[TreatNullAs=EmptyString] attribute DOMString top;
|
[TreatNullAs=EmptyString] attribute DOMString top;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue