Intent to Prototype: CSS Sign Related Functions

125 views
Skip to first unread message

Seokho Song

unread,
Jan 15, 2023, 3:10:11 AM1/15/23
to blin...@chromium.org

Contact emails

seo...@chromium.org

Explainer

None

Specification

https://drafts.csswg.org/css-values/#sign-funcs

Summary

Add css sign-related functions abs(), sign() to css math expressions.



Blink component

Blink>CSS

Motivation

This feature improves conformance with the spec.

Initial public proposal



Search tags

cssmath functionsabsabs()signsign()

TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1810342)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=229786)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?

No

Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1407476

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5170177098907648

This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Jan 16, 2023, 11:38:13 AM1/16/23
to Seokho Song, blin...@chromium.org
On Sun, Jan 15, 2023 at 9:10 AM Seokho Song <seo...@chromium.org> wrote:

Contact emails

seo...@chromium.org

Explainer

None


Can you explain in a few lines what this feature does and how are developers supposed to use it?
 



Specification

https://drafts.csswg.org/css-values/#sign-funcs

Summary

Add css sign-related functions abs(), sign() to css math expressions.



Blink component

Blink>CSS

Motivation

This feature improves conformance with the spec.


Is there motivation beyond that? Does the feature have benefits to users or developers?
 



Initial public proposal



Search tags

cssmath functionsabsabs()signsign()

TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1810342)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=229786)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?

No


Why not?
 



Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1407476

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5170177098907648

This intent message was generated by Chrome Platform Status.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPzLR4%2Ba8S6bJHOsy3jAv5GN_Z70%3DOE4pBuBhE6A5nFbvf-m2g%40mail.gmail.com.
Message has been deleted

Seokho Song

unread,
Jan 22, 2023, 6:42:45 AM1/22/23
to blink-dev, Yoav Weiss, blin...@chromium.org, Seokho Song
On Tuesday, January 17, 2023 at 1:38:13 AM UTC+9 Yoav Weiss wrote:
On Sun, Jan 15, 2023 at 9:10 AM Seokho Song <seo...@chromium.org> wrote:
Contact emailsseo...@chromium.org

ExplainerNone

Can you explain in a few lines what this feature does and how are developers supposed to use it?

Web developers can handle sign-related values via abs(), and sign() functions. And the developer can handle complex math expressions on CSS by css-values-4 functions.
 
 
Summary

Add css sign-related functions abs(), sign() to css math expressions.



Blink componentBlink>CSS

MotivationThis feature improves conformance with the spec.

Is there motivation beyond that? Does the feature have benefits to users or developers?
 

abs(A) returns the absolute value of A  for example, abs(-1) will be 1.
sign(A) returns +1 if A numeric value is positive, and -1 if A numeric value is negative.
It returns negative zero if A is negative zero, on the other hand, positive zero if A is positive zero. 
 
 


Initial public proposal

Search tagscssmath functionsabsabs()signsign()

TAG review

TAG review statusNot applicable

Risks


Interoperability and Compatibility



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1810342)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=229786)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?No


Flag name

Requires code in //chrome?False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Statushttps://chromestatus.com/feature/5170177098907648


This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Yoav Weiss

unread,
Jan 25, 2023, 6:24:04 AM1/25/23
to Seokho Song, blink-dev
Sounds great! Thanks for working on this!
Reply all
Reply to author
Forward
0 new messages