Closed
Bug 326412
Opened 20 years ago
Closed 11 years ago
:invalid pseudo-class only apply to input label, not to input content.
Categories
(Core Graveyard :: XForms, defect)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: charles, Unassigned)
Details
Attachments
(4 files)
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•20 years ago
|
||
Comment 2•20 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•20 years ago
|
||
This one compares behaviour between input, output and "sort of same div".
Comment 4•20 years ago
|
||
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•20 years ago
|
||
The input part of an input field neither inherit style properties when selected by class, id or reference. Neither for secret. Output does.
Updated•20 years ago
|
Assignee: aaronr → xforms
Comment 6•11 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.
Comment 7•11 years ago
|
||
I think this bug was XForms one, closing.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•