mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #14120 - Manishearth:logical, r=emilio
Support logical properties in style Adds support for the logical block-end/inline-start/etc properties. These properties (like `border-block-end-color`) map to "physical" properties (e.g. `border-top-color`) depending on the writing mode. Todo: - [x] Handle shorthands - [x] Make geckolib setters work - [x] Handle padding/offset logical properties - [x] Perhaps handle `-block-size`, `-inline-size` type logical properties? - [x] Tests? This will overall add 16 new longhands and 4 new shorthands, taking a big bite out of the [remaining properties work](https://manishearth.github.io/css-properties-list/?stylo=hide&servo=hide&firefox=only&chrome=show&mdn=false&alexa=false) f? @emilio @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14120) <!-- Reviewable:end -->
This commit is contained in:
commit
4b9693cf81
10 changed files with 240 additions and 89 deletions
|
@ -103,6 +103,39 @@ partial interface CSSStyleDeclaration {
|
|||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderTopWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-top-width;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-start-color;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockStartColor;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-start-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockStartWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-start-style;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockStartStyle;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-end-color;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockEndColor;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-end-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockEndWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-end-style;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockEndStyle;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-start-color;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineStartColor;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-start-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineStartWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-start-style;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineStartStyle;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-end-color;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineEndColor;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-end-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineEndWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-end-style;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineEndStyle;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-block-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderBlockEnd;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString border-inline-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString borderInlineEnd;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString content;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString color;
|
||||
|
@ -242,6 +275,14 @@ partial interface CSSStyleDeclaration {
|
|||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-right;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString marginTop;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-top;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-block-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString marginBlockStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-block-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString marginBlockEnd;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-inline-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString marginInlineStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString margin-inline-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString marginInlineEnd;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingBottom;
|
||||
|
@ -252,6 +293,14 @@ partial interface CSSStyleDeclaration {
|
|||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-right;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingTop;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-top;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-block-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingBlockStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-block-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingBlockEnd;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-inline-start;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingInlineStart;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString padding-inline-end;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString paddingInlineEnd;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString outline;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString outlineColor;
|
||||
|
@ -284,6 +333,18 @@ partial interface CSSStyleDeclaration {
|
|||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString min-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString maxWidth;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString max-width;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString block-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString blockSize;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString inline-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString inlineSize;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString max-block-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString maxBlockSize;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString max-inline-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString maxInlineSize;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString min-block-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString minBlockSize;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString min-inline-size;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString minInlineSize;
|
||||
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString zIndex;
|
||||
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString z-index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue