Closed Bug 1507103 Opened 7 years ago Closed 7 years ago

Shape path editor breaks when attempting to move center point of circle()

Categories

(DevTools :: Inspector, defect, P1)

65 Branch
defect

Tracking

(firefox65 wontfix, firefox66 verified)

VERIFIED FIXED
Firefox 66
Tracking Status
firefox65 --- wontfix
firefox66 --- verified

People

(Reporter: mbalfanz, Assigned: rcaliman)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

STR: - visit https://labs.jensimmons.com/2016/examples/shapes-1.html - open devtools and inspect the .tomato - enable the shape path editor - try to move the center point ER: - Center point is moved and coordiantes are set in the rules view AR: - Editor breaks. Coordinates have a value of "NaNcenter", see screenshot attached
Priority: -- → P1
Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
See Also: → 1507749
See Also: → 1521508

This patch handles empty circle() and ellipse() basic shape definitions.

Their computed values will hold default values for center and radius.

For circle(), it is just a case of treating identifiers like "center"
as unitless to allow falling back to computed sizes and pixels.
For ellipse(), the solution is identical, but the issue is compounded
by an incomplete computed style value tracked in Bug 1521508 which is
missing the default values for x and y radii.

Reduced test cases (run code in the address bar):

For empty circle():

data:text/html,<style>div{width:500px;height:500px;background-color:black; clip-path:circle(); }</style><div>

For empty ellipse():

data:text/html,<style>div{width:500px;height:500px;background-color:black; clip-path:ellipse(); }</style><div>
Pushed by rcaliman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e25a1ed32b53 Account for empty circle() and ellipse() in Shape Path Editor. r=gl
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Attachment #9037963 - Flags: approval-mozilla-beta?

Comment on attachment 9037963 [details]
Bug 1507103 - Account for empty circle() and ellipse() in Shape Path Editor. r=gl

Too late for 65. This can ride with 66.

Attachment #9037963 - Flags: approval-mozilla-beta? → approval-mozilla-beta-

(In reply to Ryan VanderMeulen [:RyanVM] from comment #6)

Comment on attachment 9037963 [details]
Bug 1507103 - Account for empty circle() and ellipse() in Shape Path Editor. r=gl

Too late for 65. This can ride with 66.

It's ok. I can understand.

Did the completed approval request form make it to your end on some dashboard? I see the note is missing from the request on Bugzilla and don't know if it was lost in transit or not.

Flags: needinfo?(ryanvm)

No, it didn't :(

Flags: needinfo?(ryanvm)

(In reply to Ryan VanderMeulen [:RyanVM] from comment #8)

No, it didn't :(

Argh! It was a bug, then. I'll make sure to watch out for it in the future. Thanks!

For context, regression caused by the fix for Bug 1473184.

Flags: qe-verify+

I was able to reproduce the issue on a 66.0b1 build (20190121133415) on Windows 10, Windows 7, Mac OS 10.14.2 and Ubuntu 18.04.

After updating to the latest build - 66.0b3 (20190128143734), the issue is verified as fixed on all OS mentioned above.
The center point can be moved without any issues and the coordinates change accordingly.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: