Closed Bug 372574 Opened 18 years ago Closed 18 years ago

SVG patterns are not live to color changes

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

Steps to reproduce: 1. Load one of the testcases. Expected: green squares. Result: red squares (at least some of the time). (Split from bug 327764 comment 10.)
With testcase 2, there also seems to be a slight shift in the position of the squares (at least when the squares remain red).
I'm curious why the setTimeout makes a difference. When do I need to use setTimeout when making reftests for other SVG bugs? For example, if I were to make a reftest for the removeChild part of bug 327764, should I make two versions of the reftest, one with setTimeout and one without?
In testcase 2, the shift is present even when the squares do turn green. The most obvious way to see this is to press Cmd++ (text zoom) after loading it. This seems to be a painting problem, so I'm not sure reftest can test it.
Is there a way to force SVG to lay out and maybe paint, similar to the "document.body.offsetHeight;" trick for HTML, or am I stuck using timeouts?
WFM, Mac trunk debug.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: