Closed Bug 464758 Opened 16 years ago Closed 12 years ago

<select> with :after content doesn't open

Categories

(Core :: Layout, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: zeniko, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files)

Testcase in the URL. Broken in at least in Firefox 3.0 and on Trunk.
This is due to the fact that when we reresolve style we detect that there is no generated content, that the style says there should be, so we reframe the whole thing. I was pretty sure we had a bug on this, but I can't find it. Of course I was sure there's a bug on us reframing on the generated content thing for replaced elements, and I can't find that either.... David, seems to me it would be nice to have a way to flag frames as needing to skip this check (or alternately needing to do this check) in ReResolveStyleContext.
Component: Layout: Form Controls → Layout: Misc Code
QA Contact: layout.form-controls → layout.misc-code
This also happens if the <select> is contained in a <div> with :after. Attaching testcase.
Actually, that's subtly different from this bug as originally reported. I'm not sure offhand why the issue comes up in that case, and you should probably file a separate bug on it.
Ok I can do that too. Thanks for the fast reply. I'll try to get the bug filed tonight, pardon the misfile.
Per your recommendation, I've created a new bug and attached the test case; its locatable at: https://bugzilla.mozilla.org/show_bug.cgi?id=478310
We have more frame bits now; this should be fixable.
Assignee: nobody → bzbarsky
Priority: -- → P2
When using element:after { content:"."; } or any other content: except normal, the first click on a SELECT drop down menu field sets the focus. The second click opens the dropdown menu. Tested on IE9 and Chrome 18.0.1025.168 m with no such problems. <style> .example:after { content:"."; /* below is not really necessary but height:0; makes the period not appear */ display:block; clear:both; visibility:hidden; height:0; overflow:hidden; } </style> <select name="State" class="example"> <option value="">Select</option> <option value="AL">Alabama</option> </select>
Note, this is still broken as of Firefox 12
Whiteboard: [need review]
Comment on attachment 623927 [details] [diff] [review] Don't try to check for :before/:after pseudos for frames that can't have them. r=dbaron (though it seems like it might be a waste of a bit) Also, do you really want to remove the !pseudoTag check (esp. given you're marking all inlines)?
Attachment #623927 - Flags: review?(dbaron) → review+
> Also, do you really want to remove the !pseudoTag check (esp. given you're marking all > inlines)? Oh, good catch. I forgot about the inline case. I'll reinstate the !pseudoTag check.
Flags: in-testsuite?
Whiteboard: [need review]
Target Milestone: --- → mozilla15
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 763424
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: