Summary: | Autofocus inputs don't always honor selector input:focus | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Anthony Ricaud <rik> | ||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, kaustubh.ra, michelangelo, rniwa, tkent, webkit.review.bot | ||||
Priority: | P2 | Keywords: | HasReduction | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://lachy.id.au/dev/markup/tests/html5/autofocus/016.html | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 19264 | ||||||
Attachments: |
|
Description
Anthony Ricaud
2009-02-23 06:37:16 PST
*** Bug 31031 has been marked as a duplicate of this bug. *** I guess this has been fixed. Can be closed. Should we land this as a regression test? Created attachment 114010 [details]
Patch for Adding test case
As this has been already fixed, adding regression test case for the same.
Comment on attachment 114010 [details] Patch for Adding test case View in context: https://bugs.webkit.org/attachment.cgi?id=114010&action=review > LayoutTests/fast/forms/autofocus-input-css-style-change.html:18 > +if (window.layoutTestController) { > + layoutTestController.dumpAsText(); > +} > + > +var test = document.getElementById("test"); > +if (document.defaultView.getComputedStyle(test, null).getPropertyValue('background-color') == "rgb(0, 128, 0)") > + result.innerHTML = "PASS"; The code style is consistent. The first if has {} for 1-line body, and the second if has no {} for 1-line body. (In reply to comment #5) > The code style is consistent. The first if has {} for 1-line body, and the second if has no {} for 1-line body. consistent -> inconsistent. Comment on attachment 114010 [details]
Patch for Adding test case
The comment seems minor enough to land as is, marking cq+.
Comment on attachment 114010 [details] Patch for Adding test case Clearing flags on attachment: 114010 Committed r99582: <http://trac.webkit.org/changeset/99582> All reviewed patches have been landed. Closing bug. Thanks for the review Kent & Alexey. |