The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

10. November 2011, 17:58:31

artmil

d(^_^)b

Posts: 370

textarea > user style has no effect

The following style is not applied when used as user css
textarea:hover{color:red !important;}


textarea is completely ignored when trying to manipulate it with usercss(even dragonfly doesn't show the style)
Under 11.52 it works fine
---
11.60 beta/Build: 1147/Vista
Krita.org
Opera: 12.1x

7. December 2011, 15:18:55

Pistos

Posts: 95

+1

I confirm that Opera has stopped applying my user CSS files properly on sites. I, too, came to notice it with textarea elements first. The issue remains in the public 11.60 release.

7. December 2011, 15:55:59

Ryszard

Opera Mobile Classic, desktop - 12.16

Posts: 9320

http://files.myopera.com/Ryszard/files/textarea.png
Why?
scared
Why? furious
bomb

N49°45'15" E21°28'54"
1%

8. December 2011, 07:58:20

Moderator

sgunhouse

Volunteer

Posts: 66788

Note that styling of forms has always been optional in Opera ... you do have it enabled, don't you? See menu > Page > Style > Manage Modes, or Preferences > Advanced > Content > Style Options.

8. December 2011, 09:01:27

Ryszard

Opera Mobile Classic, desktop - 12.16

Posts: 9320

Originally posted by sgunhouse:

you do have it enabled, don't you?


Enabled.
Not a problem here.
CSS rules doesn't work in opera 11.60

N49°45'15" E21°28'54"
1%

27. December 2011, 19:51:24

Chewi

Posts: 84

Just want to add my weight to this one. It was working fine before and now it's not. It's especially annoying in my case because now all my textarea boxes are blue. Even this one.

28. December 2011, 02:24:48

Moderator

sgunhouse

Volunteer

Posts: 66788

Tested 11.61 build 1222 yet? Still there?

28. December 2011, 07:56:55

artmil

d(^_^)b

Posts: 370

yes the bug is still there

textarea, input[type="text"], input[type="password"]{
	background:red !important;
	color:#fff !important;
	font-weight:700 !important;
}
Krita.org
Opera: 12.1x

23. February 2012, 17:26:22

Pistos

Posts: 95

Fixed in 11.62?

26. February 2012, 11:45:24

Zotlan

ExtendOpera admin

Posts: 2819

Originally posted by artmil:

yes the bug is still there

textarea, input[type="text"], input[type="password"]{
    background:red !important;
    color:#fff !important;
    font-weight:700 !important;
}


That demo works just fine even in 11.61 in Linux.
Visit ExtendOpera.org for finding and sharing UserJS, user CSS and other customisation files.

26. February 2012, 13:10:08

Chewi

Posts: 84

Originally posted by Zotlan:

That demo works just fine even in 11.61 in Linux.


Nope, still a problem in 11.61 and 11.62 for Linux. Are you using KDE by any chance? I don't have it installed so I can't easily check myself but I think the toolkit library you are using could make a difference. I am seeing the bug with both the GTK+2 and GTK+3 libraries.

26. February 2012, 13:19:46

Zotlan

ExtendOpera admin

Posts: 2819

Originally posted by Chewi:

Nope, still a problem in 11.61 and 11.62 for Linux. Are you using KDE by any chance? I don't have it installed so I can't easily check myself but I think the toolkit library you are using could make a difference. I am seeing the bug with both the GTK+2 and GTK+3 libraries.


Yes i am, on Opensuse 12.1, odd that that should make a difference.
Visit ExtendOpera.org for finding and sharing UserJS, user CSS and other customisation files.

26. February 2012, 13:40:16

Chewi

Posts: 84

Originally posted by Zotlan:

Yes i am, on Opensuse 12.1, odd that that should make a difference.


I don't think it's odd because the colours that are being applied are clearly based on your toolkit theme. My GTK+2 theme is blue with white text and that is exactly what colours this textarea is being rendered with. I only use one program that requires GTK+3 so I haven't bothered to apply a theme for that. In that case, Opera renders the textarea as grey with black text.

26. February 2012, 14:34:48

Chewi

Posts: 84

I want to take this opportunity to stress yet again that relying on toolkit themes for web page form elements is a really bad idea. While my choice of colours may look fine on the desktop, they look stupid in web pages that expect sensible black on white defaults. I have to applaud Chrome for getting this exactly right. It consistently uses my toolkit theme for the browser interface (less reliant on it in recent versions but still consistent) while simultaneously using sensible and attractive defaults for web page form elements. It really isn't too much to ask.

Fixing this bug does not entirely work around the problem. By relying on user stylesheets, you are faced with one of two issues. Using !important to force absolutely all form elements to be black on white can look equally silly on some pages. Conversely, not using !important sometimes results in unreadable form elements such as white on white or black on black where the author has specified either the text colour or the background colour but not both. Sensible defaults are really the only right way to fix this.

28. February 2012, 02:40:33

Pistos

Posts: 95

Spot on, Chewi.

I'll never upgrade Opera until this bug is fixed.

30. July 2012, 17:32:48

Pistos

Posts: 95

Bump. STILL a problem in Opera 12. Very frustrating that we don't seem to be getting any communication from Opera Software about this.

21. October 2012, 09:18:26

7eggert

Posts: 15

The textarea can be styled, but fron a user.css, you can only do it using "* {...}" or ".classusedbytextarea {...}" or "#id {...}"
Very frustrating if a website decides to use dark grey text on the dark grey system background.

If you happen to use * {}, you can do:
*:not(textarea) {...}
* {} /* will be applied to textarea */

/me is still testing

17. November 2012, 13:47:53

Bluubekt

Posts: 3

Just noticed this bug as well when trying to make Opera work with a dark desktop theme. I found that Opera will correctly apply the style for textarea if you select them with *[cols] This CSS rule will match any element with a "cols=N" attribute, which only exists for textarea (iirc) and which is usually present on all textarea tags. This code in user.css gives me white form fields with black text on all websites:

input, select, *[cols] {
color: #000 !important;
background-color: #fff !important;
}

19. November 2012, 17:43:39

Pistos

Posts: 95

@Bluubekt: This doesn't work for me. When I inspect the textarea with the dev tools, my site-specific style sheet isn't even referenced at all. (I have of course confirmed that the file name is correct and that the stylesheet file exists.) Other aspects of the user stylesheet are shown, just not the textarea rules.

19. November 2012, 18:55:39

Bluubekt

Posts: 3

Curious. It works a treat for me, even in the very box I'm typing in now. I can't believe I've spent three-four months squinting at near invisible text, resorting to a separate text editor for longer text, constantly selecting stuff in textboxes to see what they contain and trying to guess where the hell the cursor is. I must be an idiot.

Forums » Opera for Windows/Mac/Linux » Beta testing (including snapshots and previews)