From 7e05e5570ffc0ec0012217d5f5c12fa35a1a401b Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Thu, 6 Apr 2023 15:17:21 -0700 Subject: [PATCH 01/25] [css-typed-om] Specify that the list of unit shorthand methods must be reduced/expanded to match the implementation's support. --- css-typed-om/Overview.bs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 9787351b..c4004dcd 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -2368,6 +2368,39 @@ partial namespace CSS { to avoid defining the unit individually for all ~60 functions. +The above list of methods reflects the set of CSS's valid predefined units +at one particular point in time. +It will be updated over time, +but might be out-of-date at any given moment. +If an implementation supports additional CSS units +that do not have a corresponding method in the above list, +but that do correspond to one of the existing {{CSSNumericType}} values, +it must additionally support such a method, +named after the unit +in its defined canonical casing, +using the generic behavior defined above. + +If an implementation supports units +that do not correspond to one of the existing {{CSSNumericType}} values, +it must not support those units in the APIs defined in this specification; +it should request the units and their types +be added explicitly to this specification, +as the appropriate type name is not implicit from the unit. + +If an implementation does not support a given unit, +it must not implement its corresponding method from the list above. + +
+ For example, the CSS Speech spec [[CSS-SPEECH-1]] + defines two additional units, + the decibel dB and semitone st. + No current browser implementation supports these + or has plans to, + so they're not included in the above list, + but if an implementation does support the Speec spec, + it must also expose CSS.dB() and CSS.st() methods. +
+ +* Fixed the type match algorithm to refer to the percent hint more abstractly. +* Clarified that "invert a type" needs to preserve the percent hint. +* Added missing font units to CSS numeric factory. (#1107) +* Specified that the list of unit shorthand methods must be reduced or expanded to match the implementation's support. +* Used undefined union value for "StylePropertyMapReadOnly.get()". (#1087) +* Removed .to() and the CSSColorValue.colorSpace, as conversion isn't really in Typed OM's remit. (#1070) +* Added min/max to "serialize a CSSUnitValue", and pass it when serializing the argument of CSSPerspective. (#1069) +* Changed reifying from "a CSSStyleValue" to "an identifier". (#1068) +* Added factory functions for new viewport/container units. (#1067) +* Added type checking to CSSNumericValue.parse. (#1065) +* Removed CSSDeviceCMYK, add CSSOKLab and CSSOKLCH, made all the color classes accept the "none" keyword. +* Defined how to reify a color value. +* Allowed "new unit value" to link to "create a CSSUnitValue from a pair" since that phrasing is used everywhere already. +* Added support for perspective(none) to CSSPerspective. (#1053) +* Fixed accidental clash of CSSClampValue.min/max with CSSNumericValue.min/max. (#855) +* Simplified the Abstract +* Removed CSSGray and associated spec text, since Color 4 dropped gray() some time ago. (#1027) +* Moved .colorSpace up to the CSSColorValue superclass. Swapped the .to*() color-conversion functions for a generic .to(colorSpace) method. (#1036) +* Added device-cmyk() support. +* Fix the OM for CSSColor to match recent simplifications. +* Specified which color function each CSSColorValue subclass represents, and added CSSGray. +* Added missing parentheses for union. (#1016) +* Added some explanatory text about the makeup of a "type". +* Aligned with Web IDL specification. (#965 and #1006 ) +* Fixed algorithm nesting. +* Added default dictionary value, required by update to WebIDL. (#936) +* Switched term from "underlying value" to :internal representation", as Web Animations already uses "underlying value" for something different. +* Clarified that reifying as a CSSSTyleValue requires a property. +* Defined reification behavior for registered custom properties (#886) +* Used partial interface mixin ElementCSSInlineStyle (#853) +* Used the correct name from WebIDL for indexed property getter. +* Exported a number of terms for use in other specifications +* Droped CSSPositionValue from this level. +* Added CSSMathClamp for the "clamp()"" function. +* Made the "match a grammar" algorithm a little more precise. +* Reifying computed numeric values uses the canonical unit. (#725) +* Added note about new unit types. (#734) +* Used correct unit "percent", not "percentage" (#761). +* Added note about custom property parsing +* Moved Naina Raisinghani to Former Editor +* Added an 'invert a type' operation. +* Exported several numeric-type terms, so CSS Values & Units can refer to them. +* Moved Shane Stephens to Former Editor From ab6fa246514f475be8b0e82162b078b7c64a4c21 Mon Sep 17 00:00:00 2001 From: Chris Lilley Date: Tue, 19 Mar 2024 11:25:02 -0400 Subject: [PATCH 08/25] [css-typed-om-1][editorial] Reduce autolinking errors --- css-typed-om/Overview.bs | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 05ab18fe..d19ce53f 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -43,6 +43,9 @@ Markup Shorthands: markdown yes urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn; spec: ecma-262 text: RangeError; url: native-error-types-used-in-this-standard-rangeerror +
+    spec:vc-data-model-2.0
+