CSS Animation of stroke-dashoffset from 0 to 100% does not work
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: birtles, Assigned: emilio)
References
(Depends on 1 open bug, Blocks 2 open bugs, )
Details
(Keywords: parity-chrome, Whiteboard: [docs: see comment 3] [webcompat][wptsync upstream])
Attachments
(2 files, 11 obsolete files)
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Updated•9 years ago
|
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•9 years ago
|
Comment hidden (typo) |
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Updated•9 years ago
|
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 16•9 years ago
|
||
Comment hidden (obsolete) |
Comment 18•9 years ago
|
||
Updated•9 years ago
|
Comment 19•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 20•9 years ago
|
||
Reporter | ||
Comment 21•9 years ago
|
||
Reporter | ||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Reporter | ||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
Comment hidden (typo) |
Comment 30•9 years ago
|
||
Comment 31•9 years ago
|
||
Updated•9 years ago
|
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
Comment 39•9 years ago
|
||
Comment 40•9 years ago
|
||
Comment 41•9 years ago
|
||
Comment 42•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 43•9 years ago
|
||
Comment 44•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 45•9 years ago
|
||
Comment 46•8 years ago
|
||
Comment 47•8 years ago
|
||
Updated•8 years ago
|
Comment 48•7 years ago
|
||
Comment 49•6 years ago
|
||
This is also hitting https://shecodes.tech/, which uses the same basic animation pattern:
.animatedSVGElements {
stroke-dasharray: 6%, 29%;
stroke-dashoffset: 0;
animation: 5.5s linear 0s infinite normal none running stroke-offset;
}
@keyframes stroke-offset {
100% {
stroke-dashoffset:-35%
}
}
Assignee | ||
Comment 50•6 years ago
|
||
I guess this is:
I'm confused about what the SVG code is doing. It's interpretting numbers specially, but then in practice it treats it as if they were CSS pixels:
Is there any reason it can't just use a plain LengthPercentage
, with the unitless length quirk stuff? Then all this stuff will just work.
Comment 51•6 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #50)
Is there any reason it can't just use a plain
LengthPercentage
, with the unitless length quirk stuff? Then all this stuff will just work.
I guess "unitless length quirk" was not implemented well when we worked on SVGLengthPercentageOrNumber
, so Mantaroh introduced this type. That means, it's worth to try unitless length.
Let me try this in this bug. :)
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 52•6 years ago
|
||
Per IRC discussion I'm on it already, let me steal it.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 53•6 years ago
|
||
Instead of storing them as LengthPercentage | Number, always store as
LengthPercentage, and use the unitless length quirk to parse numbers instead.
Further cleanups to use the rust representation can happen as a followup, which
will also get rid of the boolean argument (since we can poke at the rust length
itself). That's why I didn't bother to convert it to an enum class yet.
Assignee | ||
Comment 54•6 years ago
|
||
As it turns out we need this to avoid losing precision both during painting and
during serialization.
This patch also changes to serialize context-value
if it's the computed value.
I could keep the previous behavior, but it makes no sense to serialize the
initial value. We're the only ones to support this value anyway, and I couldn't
find a definition or spec for this.
Also update tests and expectations for:
- New unexpected passes.
- Always serializing the unit in getComputedStyle.
- Calc and interpolation support.
Chrome also always serializes the unit in getComputedStyle, so I'm pretty sure
this is compatible with them. Chrome is inconsistent and keeps numbers in
specified style, but that's inconsistent with itself and with other quirky
lengths, so I updated the tests instead.
Comment 55•6 years ago
|
||
Comment 56•6 years ago
|
||
Comment 57•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0c76d78aca48
https://hg.mozilla.org/mozilla-central/rev/0456bc2c98e2
https://hg.mozilla.org/mozilla-central/rev/16ebe5e32775
Comment 60•6 years ago
|
||
This is more of a bug than a feature, so I don't think this needs specific documentation.
Updated•5 years ago
|
Description
•