Open Bug 1436054 Opened 7 years ago Updated 2 years ago

Shapes editor: inherit original units when adding new points to a polygon

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: rcaliman, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When adding new points to a polygon shape, the editor defaults to using percentages as units. Instead, it should respect the unit types for the coordinates originally defined. Steps to reproduce: - Paste and run the following in the URL bar: data:text/html,<style>div {width:100px;height:100px;background:red;clip-path:polygon(0px 0px, 100px 0px, 100px 100px);}</style><div> - Open inspector - Open shapes editor - Double click an edge of the polygon to add a new point Result: Coordinates for new point are percentages. Expected: Coordinates for new points are pixels. Known complications: - mixed units - unitless zero along other unit
Blocks: 1242029
Severity: normal → enhancement
Priority: -- → P2
Product: Firefox → DevTools
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: