Closed Bug 649114 Opened 14 years ago Closed 14 years ago

Text-anchor middle is not computed correctly for element scaled to 0

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: marek.raida, Assigned: longsonr)

References

Details

(Keywords: testcase)

Attachments

(3 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.2a1pre) Gecko/20110411 Firefox/4.2a1pre Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.2a1pre) Gecko/20110411 Firefox/4.2a1pre If text element, centered, is scaled to 0 and then scaled in, it behaves like text-anchor start and not middle. Having it initially scaled to very small, but non zero size - like 0.0001, helps, and it behaves properly then. Reproducible: Always Steps to Reproduce: 1. Open file from attachment Actual Results: Text is after 1s zoomed in, right aligned to line in the middle (behaves like start anchor) Expected Results: Text should be after 1s zoomed in, centered against line in the middle All other browsers compute text position properly, even when initially scaled to zero
Confirmed against Mozilla/5.0 (Windows NT 5.1; rv:2.2a1pre) Gecko/20110412 Firefox/4.2a1pre ID:20110412030535
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Version: unspecified → Trunk
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → longsonr
Attachment #590509 - Flags: review?(jwatt)
What is the SUPPRESS_INVALIDATION for? And why in the one case of setting updateGlyphMetrics but not the other?
Attachment #590509 - Attachment is obsolete: true
Attachment #590509 - Flags: review?(jwatt)
Attachment #590778 - Flags: review?(jwatt)
Comment on attachment 590778 [details] [diff] [review] address review comments Thanks.
Attachment #590778 - Flags: review?(jwatt) → review+
Flags: in-testsuite+
Target Milestone: --- → mozilla12
OS: Windows 7 → All
Hardware: x86 → All
That didn't go so well. Pushed https://hg.mozilla.org/integration/mozilla-inbound/rev/1efdc864bce2 to backout patch
Need to look into 411334-1.xml 621918-1.svg 621918-2.svg
relanded https://hg.mozilla.org/integration/mozilla-inbound/rev/5313091609ad without the SUPPRESS_INVALIDATION part that seemed to upset things so much.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 639564
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: