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)

defect
Not set
normal

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
Attached file test case
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
Attached file beaufour's testcase
This one compares behaviour between input, output and "sort of same div".
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.
The input part of an input field neither inherit style properties when selected by class, id or reference. Neither for secret. Output does.
Assignee: aaronr → xforms
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
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: