[Webkit-unassigned] [Bug 92473] New: [CSS] :read-only and :read-write selector should match none-isFormisFormControlElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 27 01:55:49 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92473
Summary: [CSS] :read-only and :read-write selector should match
none-isFormisFormControlElement
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://jsfiddle.net/ZnrQT/
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: yosin at chromium.org
According HTML5 specification[1], :read-only and :read-write selector should match all elements.
Although, current implementation applies only isFormisFormControlElement:
In WebCore/css/SelectorChecker.cpp:
bool SelectorChecker::checkOneSelector(const SelectorCheckingContext& context, PseudoId& dynamicPseudo) const
{
...
case CSSSelector::PseudoReadWrite:
if (!element || !element->isFormControlElement())
return false;
return element->isTextFormControl() && !element->isReadOnlyFormControl();
...
}
= Browser Behaviors =
Result of http://jsfiddle.net/ZnrQT/
(:read-only: color: red, :read-write: color: green)
Chromium: input and textarea are red
FireFox: all colors are default(black)
IE: all colors are default(black)
Opera: all colors are red except for input type "date".
= References =
[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#pseudo-classes
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list