From 1db77d1474265698e07db9332afdeb2bb353389c Mon Sep 17 00:00:00 2001 From: Eddy Mead Date: Thu, 10 Mar 2016 14:08:36 +1100 Subject: [PATCH 1/4] Add a spec for ColorValue --- css-typed-om/Overview.bs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index db31581f..f0b2a7ee 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -351,6 +351,27 @@ Issue: There are now 3 ways of creating Length values - Issue: What happens if the provided DOMString or LengthValue for (e.g.) a SimpleLength is invalid? +{{ColorValue}} objects {#colorvalue-objects} +--------------------------------------------- +
+
+[Constructor(double r, double g, double b),
+ Constructor(double r, double g, double b, double a)]
+interface ColorValue : StyleValue{
+  readonly attribute double r;
+  readonly attribute double g;
+  readonly attribute double b;
+  readonly attribute double? a;
+};
+
+
+ +{{ColorValue}} objects represent values of the 'color' CSS data type. {{ColorValue}}s can only +be initialised using the RGB cubic-coordinate system, which specifies a red, green and blue +component. These are specified as doubleegers between 0 and 255. An alpha component may also be +specified in the constructor as a double between 0 and 1. + + {{TransformValue}} objects {#transformvalue-objects} ----------------------------------------------------------- From 5b1f2de5ae000098b241e69cb3a3a8414d903200 Mon Sep 17 00:00:00 2001 From: Eddy Mead Date: Thu, 10 Mar 2016 14:14:16 +1100 Subject: [PATCH 2/4] Slightly change wording --- css-typed-om/Overview.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index f0b2a7ee..73a9d421 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -366,8 +366,8 @@ interface ColorValue : StyleValue{ -{{ColorValue}} objects represent values of the 'color' CSS data type. {{ColorValue}}s can only -be initialised using the RGB cubic-coordinate system, which specifies a red, green and blue +{{ColorValue}} objects represent values of the 'color' CSS data type. {{ColorValue}}s are +initialised using the RGB cubic-coordinate system, which specifies a red, green and blue component. These are specified as doubleegers between 0 and 255. An alpha component may also be specified in the constructor as a double between 0 and 1. From 7ee2a672ec24211b37ba8402cac22f1959fe746f Mon Sep 17 00:00:00 2001 From: Eddy Mead Date: Thu, 10 Mar 2016 14:20:12 +1100 Subject: [PATCH 3/4] Add an issue --- css-typed-om/Overview.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 73a9d421..3ae099d2 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -371,6 +371,8 @@ initialised using the RGB cubic-coordinate system, which specifies a red, green component. These are specified as doubleegers between 0 and 255. An alpha component may also be specified in the constructor as a double between 0 and 1. +Issue: Do we want to support other color systems, e.g. HSL? + {{TransformValue}} objects {#transformvalue-objects} ----------------------------------------------------------- From fef2d0c9f0cbe0de81d475bf8a3c7e4249a71efa Mon Sep 17 00:00:00 2001 From: Eddy Mead Date: Mon, 11 Jul 2016 13:36:20 +1000 Subject: [PATCH 4/4] Make a optional --- css-typed-om/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 3ae099d2..b3658d27 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -361,7 +361,7 @@ interface ColorValue : StyleValue{ readonly attribute double r; readonly attribute double g; readonly attribute double b; - readonly attribute double? a; + readonly attribute double a; };