Bug 183780 - height miscalcuation in SVG
Summary: height miscalcuation in SVG
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-20 09:12 PDT by Alastair Campbell
Modified: 2023-07-31 16:41 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Campbell 2018-03-20 09:12:01 PDT
Zoom on this SVG example has unexpected effects:
https://w3c.github.io/graphics-aria/img/nested-figures.html 

(NB: text-size increases work fine, it is the standard pixel-based zoom that is affected.)

It appears that the (inline) y value on the <rect> elements is not increased with the zoom, so the text goes behind the rect.

Noticed whilst @AmeliasBrain was working on the spec: https://w3c.github.io/graphics-aria/#role_other
Comment 1 Brent Fulgham 2022-07-15 16:18:32 PDT
Confirmed this is an issue in Safari. Works properly in Chrome and Firefox.
Comment 2 Radar WebKit Bug Importer 2022-07-15 16:18:44 PDT
<rdar://problem/97099774>
Comment 3 Ahmad Saleem 2023-07-31 16:41:31 PDT
For future reference, LBSE (Layer Based SVG Engine) does not have height miscalculation issue to make 'text' disappear but it has other issues but still good to note down. Tested using WebKit ToT (266457@main) with LBSE Internal flag turned on.