Open Bug 1417753 Opened 7 years ago Updated 2 years ago

Implement -moz-appearance: searchfield-cancel-button which behave like -webkit-appearance: searchfield-cancel-button

Categories

(Core :: Layout: Form Controls, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: lochang, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [webkitcompat] [webcompat])

According to comment 30 in bug 1368555, we should implement new value searchfield-cancel-button which behave like Chrome's searchfield-cancel-button (rendering a "X" cancel icon).
It seems there is no native cancel button in Cocoa [1][2], we would have to draw it ourselves... [1] https://developer.apple.com/documentation/appkit/nsbutton.bezelstyle [2] https://mackuba.eu/2014/10/06/a-guide-to-nsbutton-styles/
(In reply to Louis Chang [:louis] from comment #1) > It seems there is no native cancel button in Cocoa [1][2], we would have to > draw it ourselves... > > [1] https://developer.apple.com/documentation/appkit/nsbutton.bezelstyle > [2] https://mackuba.eu/2014/10/06/a-guide-to-nsbutton-styles/ Not sure my understanding is correct... Mats what do you think?
Flags: needinfo?(mats)
This is not so urgent for now.
Flags: needinfo?(mats)
<input type=search> has a cancel button inside it in Safari. Not sure if they actually use Cocoa to draw it though. We could look in the webkit/blink source I guess.
Blocks: 1481581
Depends on: 1481608

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Webcompat Priority: ? → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.