Closed Bug 649114 Opened 11 years ago Closed 10 years ago
Text-anchor middle is not computed correctly for element scaled to 0
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
Version: unspecified → Trunk
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?
Comment on attachment 590778 [details] [diff] [review] address review comments Thanks.
Attachment #590778 - Flags: review?(jwatt) → review+
Target Milestone: --- → mozilla12
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: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.