Open Bug 1511514 Opened 6 years ago Updated 2 years ago

getClientRects()/getBoundingClientRect() returns incorrect results for elemnts inside <clipPath>

Categories

(Core :: SVG, defect, P3)

65 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: aaron, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce:

I ran getClientRects()/getBoundingClientRect() on a <circle> element inside a <clipPath> element in an SVG.


Actual results:

Instead of the correct result, calls to these methods returned a DOMRect with zero width and height, and positioned at the top left corner of the SVG root.


Expected results:

The actual position, height, and width of the <circle> should be returned in the resulting DOMRect.
I cannot confirm this issue as do not understand the application and use of these code bits and secondly because the attachment seems to show similar errors on both Firefox and Chrome browsers (in Web Console).
I will set this issue's component as (Core) Layout: Texts and Fonts as it seems to be related to that and hope it will get picked up by a developer who will offer a more trustworthy evaluation.

Thank you for your contribution.
Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core
This sounds more like an SVG issue; it's not about Text & Fonts AFAICS.
Component: Layout: Text and Fonts → SVG
Priority: -- → 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: