Support ::marker for the animation inspector
Categories
(DevTools :: Inspector: Animations, enhancement, P3)
Tracking
(firefox75 fixed)
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: boris, Assigned: daisuke)
References
(Depends on 1 open bug)
Details
Attachments
(4 files)
Now we support ::marker
(Bug 1538618) in web-animations, and will also support ::first-line
and ::first-letter
(Bug 1615469) later, so perhaps we have to update animation.js and other test cases (e.g. browser_animation_pseudo-element.js).
Assignee | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
BTW, ::first-line, and ::first-letter is not supported for animation yet, but it's still worth adding these cases in the inspector.
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D64699
Assignee | ||
Comment 4•4 years ago
|
||
I checked to fix ::first-letter
as well, but it seems that the way to implement differs from ::before
etc.
In ::before
pseudo element, we generate a node of _moz_generated_content_before
, but it seems that not do for ::first-letter
.
https://searchfox.org/mozilla-central/search?q=_moz_generated_content_&case=false®exp=false&path=
And also, we look for the target node using DocumentWalker
, it seems that can't find that as far as I tried.
https://searchfox.org/mozilla-central/source/devtools/server/actors/inspector/document-walker.js
Thus, as we need to investigate more, please let me fix ::first-letter
and ::first-line
in another bug.
Assignee | ||
Comment 5•4 years ago
|
||
Hi Boris!
Please let me confirm some behaviors of ::marker
animation.
- CSS Animation:
Please see the.css-animation
element. As we talked at slack, it seems CSS Animation for::marker
does not run. As you said, this may be a regression. - Animatable property for
::marker
:
Please see the.not-animation
element. It seems that opacity is not applied regardless we set opacity 0.1. On the other hand, please see.script-animation
element. I added an animation that changes the opacity. And the opacity is changed by the animation.
According to the spec, it seems that we can apply very limited properties but not opacity.
https://drafts.csswg.org/css-pseudo-4/#marker-pseudo
So, I'd like to confirm whether this behavior is correct or not.
Thanks!
Comment 6•4 years ago
|
||
Marker seems to already work for me somehow.
Not sure why CSS animations aren't working though, since this test suggests they should.
Comment 7•4 years ago
|
||
Also, we technically shouldn't support opacity
animations on ::marker
elements since they're not a currently a supported property.
Comment 8•4 years ago
|
||
(Oh, just noticed Daisuke's second point in comment #5 which says the same thing about opacity.)
Assignee | ||
Comment 9•4 years ago
|
||
I investigated a bit about CSS Animation for ::marker.
In order to run this animation, it seems that we should turn on layout.css.marker.restricted
pref.
Assignee | ||
Comment 10•4 years ago
|
||
(In reply to Daisuke Akatsuka (:daisuke) from comment #9)
I investigated a bit about CSS Animation for ::marker.
In order to run this animation, it seems that we should turn onlayout.css.marker.restricted
pref.
Sorry, we should turn off layout.css.marker.restricted
pref.
And the default value is true
.
Comment 11•4 years ago
|
||
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4df822e7d09c Support animation on ::marker pseudo element. r=pbro https://hg.mozilla.org/integration/autoland/rev/51efc4b931f7 Add a test case for animation on ::marker pseudo element. r=pbro
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 12•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4df822e7d09c
https://hg.mozilla.org/mozilla-central/rev/51efc4b931f7
Reporter | ||
Comment 13•4 years ago
|
||
(In reply to Daisuke Akatsuka (:daisuke) from comment #10)
Sorry, we should turn off
layout.css.marker.restricted
pref.
And the default value istrue
.
Great. Thanks for this investigation.
Please see the .not-animation element. It seems that opacity is not applied regardless we set opacity 0.1. On the other hand, please see .script-animation element. I added an animation that changes the opacity. And the opacity is changed by the animation.
According to the spec, it seems that we can apply very limited properties but not opacity.
https://drafts.csswg.org/css-pseudo-4/#marker-pseudo
So, I'd like to confirm whether this behavior is correct or not.
I believe we shouldn't apply opacity on ::marker, as Brian mentioned (and css-pseudo4 spec you provided). If its animation still applies, it should be a bug I think.
Sorry for the late reply.
Description
•