From 66ed6a08265300df026a1654258dc8d21275d904 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Fri, 2 Mar 2018 12:04:38 -0500 Subject: [PATCH 01/14] Update css-typed-om IDL --- interfaces/css-typed-om.idl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 45df5205d9a0a9..e7680d8e4ab9c9 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -169,9 +169,6 @@ enum CSSMathOperator { "max", }; -// FIXME: Uncomment this when IDLHarness supports CSS namespaces: -// https://github.com/web-platform-tests/wpt/issues/7583 -/* partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); @@ -220,7 +217,6 @@ partial namespace CSS { // CSSUnitValue fr(double value); }; -*/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), Constructor(sequence transforms)] From 567ee3347a526ede215ade098852de8536b023b1 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 14 Mar 2018 14:50:43 -0400 Subject: [PATCH 02/14] Re-introduce commenting of CSS namespace --- interfaces/css-typed-om.idl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index e7680d8e4ab9c9..39e53ce39f999d 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -169,6 +169,9 @@ enum CSSMathOperator { "max", }; +// FIXME: Uncomment this when IDLHarness supports CSS namespaces: +// https://github.com/w3c/web-platform-tests/issues/7583 +/* partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); @@ -217,6 +220,7 @@ partial namespace CSS { // CSSUnitValue fr(double value); }; +*/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), Constructor(sequence transforms)] From bfd48524e3bfff446c8017f23a9281549c91dd41 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 22 May 2018 13:16:20 -0400 Subject: [PATCH 03/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 39e53ce39f999d..e7680d8e4ab9c9 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -169,9 +169,6 @@ enum CSSMathOperator { "max", }; -// FIXME: Uncomment this when IDLHarness supports CSS namespaces: -// https://github.com/w3c/web-platform-tests/issues/7583 -/* partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); @@ -220,7 +217,6 @@ partial namespace CSS { // CSSUnitValue fr(double value); }; -*/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), Constructor(sequence transforms)] From aa34b5d243f2530a64577c5ef4fbdab977856d3c Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 5 Jun 2018 09:38:21 -0400 Subject: [PATCH 04/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index e7680d8e4ab9c9..30c3c37cd28aca 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -1,6 +1,7 @@ // GENERATED CONTENT - DO NOT EDIT -// Content of this file was automatically extracted from the CSS Typed OM spec. -// See https://drafts.css-houdini.org/css-typed-om/ +// Content of this file was automatically extracted from the +// "CSS Typed OM Level 1" spec. +// See: https://drafts.css-houdini.org/css-typed-om-1/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSStyleValue { @@ -310,4 +311,4 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { -}; +}; \ No newline at end of file From 18ac44fed5763ac973ed595814d54a88468a351b Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 5 Jun 2018 16:34:35 -0400 Subject: [PATCH 05/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 30c3c37cd28aca..7ec80cb137a982 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -311,4 +311,4 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { -}; \ No newline at end of file +}; From 49ed7de74f4d42f2e81edef22dd75f8242edf2a3 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 27 Jun 2018 19:55:23 -0400 Subject: [PATCH 06/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 7ec80cb137a982..f1013588d2cb60 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -1,8 +1,3 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content of this file was automatically extracted from the -// "CSS Typed OM Level 1" spec. -// See: https://drafts.css-houdini.org/css-typed-om-1/ - [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSStyleValue { stringifier; @@ -312,3 +307,4 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { }; + From 552d4b1dd39d92a0c6b0d1ca443564c8b3570ad7 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 27 Jun 2018 20:37:38 -0400 Subject: [PATCH 07/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index f1013588d2cb60..7ec80cb137a982 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -1,3 +1,8 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content of this file was automatically extracted from the +// "CSS Typed OM Level 1" spec. +// See: https://drafts.css-houdini.org/css-typed-om-1/ + [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSStyleValue { stringifier; @@ -307,4 +312,3 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { }; - From 44ef9a4343a8e80c722b11d5d1fa7d364c1e7272 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 14 Mar 2018 14:50:43 -0400 Subject: [PATCH 08/14] Re-introduce commenting of CSS namespace --- interfaces/css-typed-om.idl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 7ec80cb137a982..c60827574f833b 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -170,6 +170,9 @@ enum CSSMathOperator { "max", }; +// FIXME: Uncomment this when IDLHarness supports CSS namespaces: +// https://github.com/w3c/web-platform-tests/issues/7583 +/* partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); @@ -218,6 +221,7 @@ partial namespace CSS { // CSSUnitValue fr(double value); }; +*/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), Constructor(sequence transforms)] From a59244467229fa250113ad413add7be4191dfbd0 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 22 May 2018 13:16:20 -0400 Subject: [PATCH 09/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index c60827574f833b..7ec80cb137a982 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -170,9 +170,6 @@ enum CSSMathOperator { "max", }; -// FIXME: Uncomment this when IDLHarness supports CSS namespaces: -// https://github.com/w3c/web-platform-tests/issues/7583 -/* partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); @@ -221,7 +218,6 @@ partial namespace CSS { // CSSUnitValue fr(double value); }; -*/ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), Constructor(sequence transforms)] From 250eaac505f7b396019f8d013741ab6e419a7380 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 5 Jun 2018 09:38:21 -0400 Subject: [PATCH 10/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 7ec80cb137a982..30c3c37cd28aca 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -311,4 +311,4 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { -}; +}; \ No newline at end of file From 6128aa399a7d46c13c4635ea7e2eacb28a61f2fb Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Tue, 5 Jun 2018 16:34:35 -0400 Subject: [PATCH 11/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 30c3c37cd28aca..7ec80cb137a982 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -311,4 +311,4 @@ interface CSSPositionValue : CSSStyleValue { [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSImageValue : CSSStyleValue { -}; \ No newline at end of file +}; From 03427a6c4086f2f9d46bea5855d2777a00f77b39 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 18 Jul 2018 10:00:04 -0400 Subject: [PATCH 12/14] Update test --- css/css-typed-om/interfaces.html | 80 ++++++++++++++++++++++++++------ 1 file changed, 65 insertions(+), 15 deletions(-) diff --git a/css/css-typed-om/interfaces.html b/css/css-typed-om/interfaces.html index e5a3638b8e6a65..ad3817df784ee8 100644 --- a/css/css-typed-om/interfaces.html +++ b/css/css-typed-om/interfaces.html @@ -6,23 +6,73 @@ + + + From 914193185efe59cc1dbae0d0711aff47a1bb3364 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Thu, 2 Aug 2018 12:22:18 +0200 Subject: [PATCH 13/14] Updated css-typed-om IDL file --- interfaces/css-typed-om.idl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 7ec80cb137a982..fa20d2d9bb800a 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -154,6 +154,14 @@ interface CSSMathMax : CSSMathValue { readonly attribute CSSNumericArray values; }; +[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), + Constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max)] +interface CSSMathClamp : CSSMathValue { + readonly attribute CSSNumericValue min; + readonly attribute CSSNumericValue val; + readonly attribute CSSNumericValue max; +}; + [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSNumericArray { iterable; @@ -168,6 +176,7 @@ enum CSSMathOperator { "invert", "min", "max", + "clamp", }; partial namespace CSS { From 8d0452862c0345b2c7bc543c4f7be9ea03a94ca8 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Thu, 2 Aug 2018 12:30:11 +0200 Subject: [PATCH 14/14] Fix imports --- css/css-typed-om/interfaces.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/css-typed-om/interfaces.html b/css/css-typed-om/interfaces.html index ad3817df784ee8..d21f3f46984003 100644 --- a/css/css-typed-om/interfaces.html +++ b/css/css-typed-om/interfaces.html @@ -18,7 +18,7 @@ idl_test( ['css-typed-om'], - ['geometry', 'cssom', 'dom'], + ['cssom', 'SVG', 'geometry', 'html', 'dom'], idl_array => { try { self.styleMap = document.styleSheets[0].rules[0].styleMap;