Open
Bug 1370396
Opened 7 years ago
Updated 2 years ago
calc() is not supported in animation-iteration-count
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: nox, Unassigned)
Details
Safari and Chrome both allow that, I have no access to Edge.
The spec doesn't say anything about calc() expressions at the very least.
https://drafts.csswg.org/css-animations/#typedef-single-animation-iteration-count
```
<div style="animation-iteration-count: calc(2)"></div>
<pre>
<script>
var div = document.getElementsByTagName("div")[0];
document.writeln(div.style.animationIterationCount);
document.writeln(getComputedStyle(div).animationIterationCount);
</script>
```
Comment 1•7 years ago
|
||
Does Servo support that? If so, we probably should track this as a behavior change, and need to decide at some point whether we need to fix Gecko before shipping Stylo.
IIRC, Gecko's calc() support to number types are quite poor. There are many places where calc is not implemented. But It doesn't seem to me they could lead to serious webcompat issue, so I guess to just ship the changes with Stylo...
Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #1)
> Does Servo support that? If so, we probably should track this as a behavior
> change, and need to decide at some point whether we need to fix Gecko before
> shipping Stylo.
>
> IIRC, Gecko's calc() support to number types are quite poor. There are many
> places where calc is not implemented. But It doesn't seem to me they could
> lead to serious webcompat issue, so I guess to just ship the changes with
> Stylo...
Yes Servo supports that, because it's easier to support it than not to.
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•