text-shadow messes up a textbox in a popup

RESOLVED WORKSFORME

Status

()

Core
XP Toolkit/Widgets: XUL
RESOLVED WORKSFORME
10 years ago
9 years ago

People

(Reporter: Neil Deakin, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

505 bytes, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

10 years ago
In the following case:

<toolbarbutton id="tbutton" type="menu" label="Menu Button">
  <menupopup ignorekeys="true">
    <textbox/>
  </menupopup>
</toolbarbutton>

Opening the menu and typing text into the textbox does not draw or get positioned properly. It appears that the text is offset to the left off the edge of the textbox.

On the Mac theme, the toolbarbutton has a text-shadow defined.
Adding style="text-shadow: none" to the toolbarbutton (or commenting out the text-shadow in the theme) makes the bug go away.

Comment 1

10 years ago
Could you make a testcase for this? I wonder if its Mac only.
(Reporter)

Comment 2

10 years ago
Created attachment 351242 [details]
testcase

Comment 3

10 years ago
Could you add an explicit text-shadow rule to that testcase seeing as I'm running Linux and want to know if its cross platform.
(Reporter)

Comment 4

10 years ago
Just paste the source of the example into http://ted.mielczarek.org/code/mozilla/xuledit/xuledit.xul and edit it as you deem necessary.

Comment 5

10 years ago
So correct me if I'm wrong:

- Add a text-shadow to the toolbarbutton which has a child menupopup.
- Open the popup, and focus the textbox, and start typing. The text should be broken.

Not seeing this on my Linux machine.
(Reporter)

Comment 6

9 years ago
This seems to be working ok now.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.