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

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
13 years ago
3 years ago

People

(Reporter: charles, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(4 attachments)

(Reporter)

Description

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

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
(Reporter)

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).
Status: UNCONFIRMED → NEW
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)
or 
input:invalid .xf-value { background-color: red; }
helps here.
(Reporter)

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.

Updated

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.
Status: NEW → RESOLVED
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.