Closed Bug 769038 Opened 12 years ago Closed 12 years ago

Margin/padding on root element causes selection handles to appear at wrong spot

Categories

(Firefox for Android Graveyard :: Text Selection, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox15 verified, firefox16 verified, firefox17 verified)

VERIFIED FIXED
Firefox 16
Tracking Status
firefox15 --- verified
firefox16 --- verified
firefox17 --- verified

People

(Reporter: martijn.martijn, Assigned: Margaret)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase
See testcase, steps to reproduce:
- Select some text on the page by long tapping on it

Expected result:
- Selection handles appear at the right spot.

Actual result:
- Selection handles appear at the wrong spot.
I suspect this is the cause of the small offset of selection handles at http://mobiel.nu.nl/pda/ (has a 8px margin on the body.
Attached patch patchSplinter Review
I found margin was the thing causing the problem. 

I was concerned this patch will be wrong if the computed style isn't in pixels, but it seems that getPropertyValue("margin-*") always returns a value in pixels, even if the CSS rule uses a different unit of measure.
Assignee: nobody → margaret.leibovic
Attachment #637637 - Flags: review?(mbrubeck)
Attachment #637637 - Flags: review?(mbrubeck) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a9f5408e83e0
Target Milestone: --- → Firefox 16
https://hg.mozilla.org/mozilla-central/rev/a9f5408e83e0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Uplifted to aurora as part of a roll-up patch:
https://hg.mozilla.org/releases/mozilla-aurora/rev/2fb0a358eaf6
Component: General → Text Selection
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: