Implement offset-distance for motion path
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete)
Attachments
(6 files)
Updated•8 years ago
|
Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Define the offset-distance property in style system.
Assignee | ||
Comment 3•6 years ago
|
||
Just need to take offset-distance into account to get the final matrix.
Assignee | ||
Comment 4•6 years ago
|
||
Use ComputedValue to animate offset-distance.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Unpack StyleMotion and move its members into nsStyleDisplay.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
•
|
||
Based on the pahole results and the upper limit of nsStyleDisplay should be 512 bytes, I will add an extra patch here to make sure we have enough space to use cbindgen for offset-path and add offset-distance.
Assignee | ||
Comment 8•6 years ago
|
||
In order to use cbindgen for offset-path and add offset-distance in the
following patches, we need to repack nsStyleDisplay to make sure
nsStyleDisplay doesn't exceeds 512 bytes. (Actually, we still use 504
bytes after applying the following patch series.)
Note:
- Use cbindgen for offset-path (i.e. StyleOffsetPath), the size becomes
16 bytes. (The original size of UniquePtr<...> is 8 bytes.) - Add offset-distance, the size of LengthPercentage is 12 byts.
Updated•6 years ago
|
Comment 12•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/158156b7af18
https://hg.mozilla.org/mozilla-central/rev/4d20aaa34b10
https://hg.mozilla.org/mozilla-central/rev/9d417fb6fcc2
https://hg.mozilla.org/mozilla-central/rev/e6343b742e91
https://hg.mozilla.org/mozilla-central/rev/6ceb38a81974
Comment 14•6 years ago
|
||
Hi Boris!
Can I just check something — you've landed offset-distance and offset-rotate in Firefox 69, but these are only available by default in Nightly, correct? In beta/release, they are still behind the layout.css.motion-path.enabled pref? Well, it definitely seems that offset-path is, which means you can't really do anything with offset-distance/rotate anyway...?
Thanks!
Assignee | ||
Comment 15•6 years ago
•
|
||
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #14)
Hi Boris!
Can I just check something — you've landed offset-distance and offset-rotate in Firefox 69, but these are only available by default in Nightly, correct? In beta/release, they are still behind the layout.css.motion-path.enabled pref? Well, it definitely seems that offset-path is, which means you can't really do anything with offset-distance/rotate anyway...?
Yes. all properties in [motion-1], offset-path
, offset-distance
, offset-rotate
, and offset-anchor
(and offset
shorthand later), are only enabled in Nightly by the preference. So we cannot do anything related to motion path in beta and release. I am planning to ship them after we fix Bug 1429305 (2019 H2, or maybe 2019 Q4).
Comment 16•6 years ago
|
||
Yes. all properties in [motion-1], offset-path, offset-distance, offset-rotate, and offset-anchor (and offset shorthand later), are only enabled in Nightly by the preference.
Just what I needed to know. Thanks a lot Boris!
Comment 17•6 years ago
|
||
The docs are finished for Motion Path, for now. See https://github.com/mdn/sprints/issues/1961#issuecomment-526318438 for the specifics of what I've done.
Please can I get a review of this work? Thanks!
Assignee | ||
Comment 18•6 years ago
|
||
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #17)
The docs are finished for Motion Path, for now. See https://github.com/mdn/sprints/issues/1961#issuecomment-526318438 for the specifics of what I've done.
Please can I get a review of this work? Thanks!
I will replay all review on the github issue. Thanks for updating them. :)
Description
•