Skip to content

Commit

Permalink
[css-typed-om] Update WPT IDL test and clean up implementation IDL.
Browse files Browse the repository at this point in the history
This patch updates the WPT IDL test to the current spec.
We also clean up the implementation IDL to match the spec.

Bug: 812915
Change-Id: Id2ca308832344e824b0e7b7eaa6198dc6d7c7e03
  • Loading branch information
darrnshn authored and chromium-wpt-export-bot committed Feb 22, 2018
1 parent 48a72dd commit 9c770ac
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions interfaces/css-typed-om.idl
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,22 @@ interface StylePropertyMapReadOnly {
readonly attribute long size;
};

callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue);

[Exposed=Window]
interface StylePropertyMap : StylePropertyMapReadOnly {
maplike<DOMString, sequence<CSSStyleValue>>;
void set(DOMString property, (CSSStyleValue or DOMString)... values);
void append(DOMString property, (CSSStyleValue or DOMString)... values);
void delete(DOMString property);
void set(DOMString property, (CSSStyleValue or DOMString)... values);
void clear();
};

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
partial interface Element {
StylePropertyMapReadOnly computedStyleMap();
};

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
partial interface CSSStyleRule {
[SameObject] readonly attribute StylePropertyMap styleMap;
};

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
partial interface ElementCSSInlineStyle {
[SameObject] readonly attribute StylePropertyMap attributeStyleMap;
};
Expand Down Expand Up @@ -66,8 +60,6 @@ interface CSSKeywordValue : CSSStyleValue {
attribute DOMString value;
};

typedef (DOMString or CSSKeywordValue) CSSKeywordish;

typedef (double or CSSNumericValue) CSSNumberish;

enum CSSNumericBaseType {
Expand Down Expand Up @@ -306,7 +298,7 @@ interface CSSMatrixComponent : CSSTransformComponent {
};

dictionary CSSMatrixComponentOptions {
boolean is2D = false;
boolean is2D;
};

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
Expand Down

0 comments on commit 9c770ac

Please sign in to comment.