Open Bug 619617 Opened 14 years ago Updated 2 years ago

Consider spec'ing and implementing a 'hot-spot' property

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: jwatt, Unassigned)

References

Details

I'd like to get the <cursor> element removed from the SVG spec, but having the 'cursor' property reference an intermediary <cursor> element offers one useful advantage over having the 'cursor' property directly reference <cursor> element's target. Specifically, it allows the specification of the hot-spot for the cursor image to be provided by and maintained at the target of the 'cursor' property, rather than being specified and maintained at all the locations where a cursor property is specified that references the given target.

I'd suggest that CSS (or the SVG spec) add a 'hot-spot' property to provide an x/y that can be specified on an SVG fragment that is referenced by the 'cursor' property. The implementation should then use the value of the 'hot-spot' property if hot spot coordinates are not provided in the specified value of the 'cursor' property.
One other thought - with <cursor> you can reference a raster image and provide a hotspot for that raster on the <cursor> element (one single location), but obviously you can't specify a 'hot-spot' property in the content of a raster. We can still obviate the need for a <cursor> element though if we allow a hidden <image>/<img> element to be used as the reference for the 'cursor' property, and allow the 'hot-spot' element to be specified on the <image>/<img>.

We should have a test to check that works as part of fixing this bug, assuming we fix it.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.