InspectorUtils.getComputationSteps does not support random()
Categories
(DevTools :: Inspector: Rules, defect, P2)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: sajidanwar)
References
Details
Attachments
(1 file, 1 external file)
|
323 bytes,
text/html
|
Details |
Steps to reproduce
- With both
layout.css.random.enabledanddevtools.inspector.css-explainersset totrue - Open attached test case
- Inspect one of the square in the page
- Hover
randominrotate: random(0deg, 180deg)
Expected results
The tooltip shows the value that was returned for that declaration for this given element
Actual results
The tooltip shows "Couldn't compute data for 'random(0deg, 180deg)'"
I don't know the detail of the random() implementation, but it's important that we get the value that was produced for that declaration and element, and not a random number. Note that a declaration might have multiple random() calls, so we'd need to be able to differentiate those.
On the Inspector side, since we can highlight only parts of the declaration value, we should also be able to know where the "sub-expression" sits in the declaration to be able to get the right "random()" call
| Reporter | ||
Comment 1•2 months ago
|
||
Sajid, I know you might already be busy with the actual random() implementation, but I guess the implementation might also be impacted by DevTools needs, so it could be nice to consider this while the implementation work is ongoing
| Reporter | ||
Comment 2•2 months ago
|
||
Note that in Bug 2041621, I'm adding the property name as a parameter for InspectorUtils.getComputationSteps, which we also need to know for random()
Updated•2 months ago
|
| Assignee | ||
Comment 3•2 months ago
|
||
No problem, I can take this bug for random() support, going to self-assign.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
Comment 7•1 month ago
|
||
Backed out for causing mochitest failures @test_getComputationSteps.html.
| Assignee | ||
Updated•1 month ago
|
Updated•28 days ago
|
Description
•