Implement missing calculation support for stroke dashOffset #1781

Closed
opened 2 years ago by Moonchild · 6 comments
Owner

What it says on the tin.
We have calc() support for lineheight, but not for stroke values. This was touched on in #1657. I ran into this checking the deps for calc-in-color and this is probably needed before we can implement that one.

What it says on the tin. We have `calc()` support for lineheight, but not for stroke values. This was touched on in #1657. I ran into this checking the deps for calc-in-color and this is probably needed before we can implement that one.
Moonchild added a new dependency 2 years ago
Moonchild added this to the 29.3.0 milestone 2 years ago
Moonchild self-assigned this 2 years ago
Moonchild added the
Layout - CSS
Enhancement
labels 2 years ago
Poster
Owner
Test fiddle: https://jsfiddle.net/7hf615oe/
Poster
Owner

Tested animation with a real-world example test https://codepen.io/tellaho/pen/PPRjbj/

Tested animation with a real-world example test https://codepen.io/tellaho/pen/PPRjbj/
Moonchild added the
Fixed
Verified
labels 2 years ago
Moonchild closed this issue 2 years ago
lekma commented 2 years ago
@@ -4640,8 +4640,8 @@
   MergeMultiplicativeR(nsCSSUnit aCalcFunction,
                        result_type aValue1, float aValue2)
   {
-    MOZ_ASSERT(aCalcFunction == eCSSUnit_Calc_TimesR ||
-               aCalcFunction == eCSSUnit_Divided,
+    MOZ_ASSERT(aCalcFunction == eCSSUnit_Calc_Times_R ||
+               aCalcFunction == eCSSUnit_Calc_Divided,
                "unexpected unit");
     result_type result;
     if (aCalcFunction == eCSSUnit_Calc_Divided) {
``` @@ -4640,8 +4640,8 @@ MergeMultiplicativeR(nsCSSUnit aCalcFunction, result_type aValue1, float aValue2) { - MOZ_ASSERT(aCalcFunction == eCSSUnit_Calc_TimesR || - aCalcFunction == eCSSUnit_Divided, + MOZ_ASSERT(aCalcFunction == eCSSUnit_Calc_Times_R || + aCalcFunction == eCSSUnit_Calc_Divided, "unexpected unit"); result_type result; if (aCalcFunction == eCSSUnit_Calc_Divided) { ```
Poster
Owner

explain

explain
lekma commented 2 years ago

debug build fails, the assert doesn't compile because eCSSUnit_Calc_TimesR and eCSSUnit_Divided are not defined. typo?

debug build fails, the assert doesn't compile because ```eCSSUnit_Calc_TimesR``` and ```eCSSUnit_Divided``` are not defined. typo?
Poster
Owner

Ah, right. Thanks. patched.

Ah, right. Thanks. patched.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
#1765 Support calc-in-color
MoonchildProductions/UXP
Reference: MoonchildProductions/UXP#1781
Loading…
There is no content yet.