:invalid pseudo-class only apply to input label, not to input content.



13 years ago
3 years ago


(Reporter: charles, Unassigned)


Firefox Tracking Flags

(Not tracked)



(4 attachments)



13 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv: Gecko/20060111 Firefox/
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv: Gecko/20060111 Firefox/

If I style an input with a background color, both the input field and the label are colored.
If I style an invalid input, only the label is colored.
According to http://xformsinstitute.com/essentials/browse/ch09.php#ch09-9-fm2xml both should be colored.

Reproducible: Always

Steps to Reproduce:
1. Build an XForm with a constraint that evaluate to invalid
2. Apply a style on the invalid state of the input
3. The style only apply to the label of the input

Comment 1

13 years ago
Created attachment 211130 [details]
test case

Comment 2

13 years ago
I would tend to agree with you on that (or at least we should sync. behaviour between controls).
Ever confirmed: true
OS: MacOS X → All
Hardware: Macintosh → All

Comment 3

13 years ago
Created attachment 211271 [details]
beaufour's testcase

This one compares behaviour between input, output and "sort of same div".
Created attachment 211302 [details]
modified attachment 211271 [details]

I'm not quite sure when the ::value (which in our case is .xf-value) 
should inherit background color (or other CSS properties, and which properties, btw). 
Using either 
.xf-value { background-color: transparent; } // this breaks if background color
                                             // of the page is not white
                                             // (for example then)
input:invalid .xf-value { background-color: red; }
helps here.

Comment 5

13 years ago
Created attachment 211384 [details]
Same bug selecting input by id, attribute or class.

The input part of an input field neither inherit style properties when selected by class, id or reference. Neither for secret. Output does.


13 years ago
Assignee: aaronr → xforms

Comment 6

4 years ago
We're not implementing anything to do with XForms (which has been abandoned on the web). If this bug has to do with HTML+CSS, please cite the spec/feature there that this is about, and rename / update component accordingly.
I think this bug was XForms one, closing.
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.