New issue
Advanced search Search tips

Issue 867338 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Problem with non-scaling property in chrome 68.0.3440.68 (Official Build) beta (64-bit)

Reported by thiruman...@gmail.com, Jul 25

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Steps to reproduce the problem:
1. Change scale value of SVG node(pattern) from JS
2. Non-scaling-stroke property not working
3. 

What is the expected behavior?

What went wrong?
non-scaling-stroke property of SVG not working as expected.

Did this work before? Yes  67.0.3396.99

Does this work in other browsers? Yes

Chrome version: 67.0.3396.99  Channel: n/a
OS Version: OS X 10.13.6
Flash Version: 

Please fix this issue ASAP.
Thanks in Advance :)
 
nonscalingissue.html
943 bytes View Download
Labels: Needs-Feedback
NextAction: 2018-09-03
This bug ( crbug.com/849080 ) should have been fixed in 68.0.3440.25. Could you please confirm that you are using a version prior to this? The bug report says you are using 67.0.3396.99.
NextAction: 2018-08-13
Labels: Needs-Triage-M67
Currently, I m using chrome Version 68.0.3440.84. Still, this issue is occurring.
Please find the latest attachment.
nonscalingissueInPattern.html
945 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Aug 6

Cc: schenney@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: pdr@chromium.org
Status: Assigned (was: Unconfirmed)
pdr@, could you take a look at this. First step is to verify the problem.
Yeah this is a problem. I've attached a minimized testcase.

In Pre-SPv175 we forced a subtree paint invalidation on non-composited transform changes. SPv175 no longer does that, so we need to explicitly update objects with non-scaling stroke when an ancestor transform changes. We fixed this for <rect>s/<path>s/etc under a changing transform in  https://crbug.com/849080 . This bug is about non-scaling stroke under <pattern> which is under a changing transform.
nonscalestroke.html
715 bytes View Download
The NextAction date has arrived: 2018-08-13
NextAction: ----
Any update on this? Can we expect this issue fix in upcoming chrome release?
Unfortunately this will not be fixed in the next release.

As a workaround, you can change a property on the pattern to force chrome to notice the change. For example:
pattern.setAttribute('patternUnits', pattern.getAttribute('patternUnits'));

In your example this would be:
var interval = setInterval(function(){
  ...
  scalableEle.attr("transform", "scale("+increaseScale+")");
  patternZoomTest.setAttribute('patternUnits', patternZoomTest.getAttribute('patternUnits'));
  ...
}

Sign in to add a comment