New issue
Advanced search Search tips

Issue 835110 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Relative-sized SVG resources are not invalidated on viewport size change

Project Member Reported by fmalita@chromium.org, Apr 20 2018

Issue description

https://codepen.io/fmalita/full/OZVJVV/

Without digging into it, I'm guessing we don't register hidden resources for relative length invalidation (as we do with regular elements).
 
At a quick glance, we don't seem to fire InvalidateSVGRootsWithRelativeLengthDescendents for div size changes.

Not sure how this works for e.g. GeometryElements at all...
Ugh, resource containers get special treatment during layout - this I believe is the root cause (ignoring force_child_layout at this level): https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/svg/svg_layout_support.cc?rcl=94a729903406cc33d7b18c6be41d36362465e132&l=349

Unfortunately, it's intentional...

Sign in to add a comment