Bug 87397

Summary: khtml should ignore KDE style on css enabled button
Product: [Applications] konqueror Reporter: Mathieu Jobin <opensource>
Component: khtml rendererAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: hasso, jsp, kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mathieu Jobin 2004-08-17 23:42:43 UTC
Version:           3.2.3 (using KDE 3.2.3, Gentoo)
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.7

that may sounds weird, but OS settings should not apply over CSS settings.
my css-guru friend told me affecting the css border setting would be enough.
I guess if we ask for a flat button, we should not see the 3D design our style may have.

i dont know if its possible to ignore the style for one single object and apply something else ?
Comment 1 Maksim Orlovich 2004-08-18 02:41:10 UTC
Did your CSS guru tell you that support for CSS on form widgets is optional, and that it is recommended that webmasters don't use it?
Comment 2 Germain Garand 2004-08-18 05:30:10 UTC
And did he add that <button> was invented just for that purpose?
Comment 3 Mathieu Jobin 2004-08-18 18:48:53 UTC
well, i think flat button with colored border are really common
nothing fancy here

Comment 4 Jesse Pelton 2004-12-29 01:50:48 UTC
<button> would indeed ideally be used for the purpose.  However, there are a couple of practical considerations.

First, IE treats all <button type="submit"> buttons as successful.  That is, it submits ALL their data, not just data for the one that was activated.  IE still dominates the Web, so this type of control is useful only if you can greatly restrict your audience.

Second, IE *and* the browser that is most rapidly nibbling into its market share (Firefox) both allow almost complete style control on submit buttons.  This may not be required by the standard, but it's allowed, and KHTML looks inferior by comparison to those who don't know the spec.

Is there a compelling reason not to allow submits to be styled?
Comment 5 Allan Sandfeld 2004-12-29 13:14:18 UTC
I agree that if Firefox can, so should we.
Comment 6 Maksim Orlovich 2004-12-29 20:52:15 UTC
Firefox can't use fully native widgets
Comment 7 Jesse Pelton 2005-01-07 17:36:59 UTC
I think it's a good idea to use native widgets as a default, but I find it very useful to be able to style form controls.  Perhaps Konqueror could use a native widgets in the absence of any style for the element.

Konqueror currently respects the CSS color property (and maybe others), but not background-color.  This can easily lead to illegible labels.  At a minimum, Konqueror should be changed to respect both color and background-color or ignore both.  It would probably be best if style support for a given instance of a widget were Boolean: either all style properties are supported, or none are.
Comment 8 Germain Garand 2005-02-23 04:08:20 UTC
IMO, implementing this would open a wormcan of phishing issues.
Comment 9 Allan Sandfeld 2005-02-23 11:01:36 UTC
How could it be used for phishing? it is just a button. At least we could set background-color
Comment 10 RafaƂ Rzepecki 2008-02-11 08:15:34 UTC
Isn't that trivial to implement now that Qt4 has css-alike-stylable controls?
Comment 11 Mathieu Jobin 2013-07-09 05:19:44 UTC
ping, shall we close?
Comment 12 Mathieu Jobin 2020-12-07 09:14:02 UTC
no longer relevant
KDE 3? come on