[Webkit-unassigned] [Bug 156558] New: :in-range & :out-of-range CSS pseudo-classes shouldn't match inputs without range limitations
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 13 15:09:39 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=156558
Bug ID: 156558
Summary: :in-range & :out-of-range CSS pseudo-classes shouldn't
match inputs without range limitations
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: webkit at chrisrebert.com
Created attachment 276361
--> https://bugs.webkit.org/attachment.cgi?id=276361&action=review
Testcase demonstrating the bug
Steps to reproduce the problem:
1. Open the attached testcase in WebKit Nightly on OS X or in iOS 9.3 Safari.
2. Observe the background-colors and borders of the <input>s
What is the expected behavior?
The inputs should have neither a red border nor a red background-color,
because they don't have range limitations ( https://html.spec.whatwg.org/multipage/forms.html#have-range-limitations ),
because they have neither `min` nor `max` attributes
and the HTML spec doesn't define a default minimum or maximum for any of these input types.
Therefore, these inputs should fail the 2nd of the 3 conditions required to match :in-range or :out-of-range .
Per https://html.spec.whatwg.org/multipage/scripting.html#selector-in-range
> The :in-range pseudo-class must match all elements that are [...], have range limitations, and [...]
What went wrong?
The inputs have red borders and/or red backgrounds, indicating that they matched the :in-range or :out-of-range pseudo-classes despite not having range limitations.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160413/a871f633/attachment-0001.html>
More information about the webkit-unassigned
mailing list