Show graphically relative energy impacts of tabs
Categories
(Toolkit :: Performance Monitoring, enhancement)
Tracking
()
People
(Reporter: florian, Assigned: fluks.github)
References
Details
Attachments
(1 file)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
I could work on this bug because bug 1553782 isn't confirmed yet, so as far as I understand, I can't work fully on it before it is?
I looked at the mockup and the graphical bar doesn't seem to grow linearly based on energy impact, should it grow in some kind of steps? How about if energy impact is low, the bar would be 0-10% of the width of the element, 10-50% for medium and 50-100% for high? And the energy impact can be higher than 100%? In that case, then you need to find the highest energy impact and make it to be 100% wide and all the other high energy impacts in relation to the highest?
Reporter | ||
Comment 4•5 years ago
|
||
Hi Emilio, any chance you could have a quick look at the question asked in https://phabricator.services.mozilla.com/D35652#1084246 ? Thanks!
Comment 5•5 years ago
|
||
So a reduced test-case for that is data:text/html,<div style="--x: 20; width: var(--x)%; height: 50px; background: green"></div>
, which only works on Firefox.
I think this is a bug in Firefox. I don't know off the top of my head what the %
text tokenizes to, but probably a combination of Number
and that should return true in this function.
Comment 6•5 years ago
|
||
https://github.com/servo/rust-cssparser/pull/251 is the fix to the CSS parser, https://github.com/w3c/csswg-drafts/issues/4088 is the spec issue, since we were implementing the spec to the letter.
Reporter | ||
Comment 7•5 years ago
|
||
My attempt to land the patch with Lando failed because of other changes from bug 1561435 that have landed in the meantime. Any chance you could update the patch? Thanks and sorry for the inconvenience.
I fixed the merge conflict, I hope it works now.
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•