Bug 9600
| Summary: | native <select size=1> control should allow basic font-style changes allowed by NSMenu | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | adele, akeerthi, ian, jay, simon.fraser |
| Priority: | P3 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| Bug Depends on: | 9846 | ||
| Bug Blocks: | |||
Timothy Hatcher
The new select control should allow font styles and decorations (like font size, color, bold, italic and underline) in the popup menu. This would allow for more rich content and let developers leverage this control more. You could allow mixed images and background colors also.
NSMenu allows all of this now by accepting attributed strings for the NSMenuItem titles.
Here is an example:
<select>
<option><b>Cool Option</b></option>
<option style="font-size: 14px; font-weight: bold; color: red">Test <em>Option</em></option>
</select>
See bug 9599 for a simplier request to just allow icons.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
fabrice
Forgot to mention that this bug is recent. I do not try each webkit build (may be one out of ten? Frankly I don't know) but I'm pretty sure that this bug wasn't here some times ago...
-Fabrice
fabrice
Sorry this post wasn't for this thread!...
Stupid me!
Sorry again...
-Fabrice
Alexey Proskuryakov
*** Bug 239033 has been marked as a duplicate of this bug. ***