Commit 10c1e341 authored by andersca's avatar andersca
Browse files

WebCore:

2006-07-07  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8300
        REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
        
        * css/html4.css:
        Set "-webkit-user-select: ignore" on radio buttons and check boxes .
        
LayoutTests:

2006-07-07  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8300
        REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons

        * fast/forms/radio-check-click-and-drag-expected.txt: Added.
        * fast/forms/radio-check-click-and-drag.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dc734562
2006-07-07 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=8300
REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
* fast/forms/radio-check-click-and-drag-expected.txt: Added.
* fast/forms/radio-check-click-and-drag.html: Added.
2006-07-06 Justin Garcia <justin.garcia@apple.com>
 
Reviewed by levi
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
This tests that check boxes and radio buttons can be toggled even if the mouse is moved between the button press and release. If the test is successful, the text "SUCCESS" should be shown below.
SUCCESS
<html>
<head>
<script>
function simulateDragClick(x, y) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseMoveTo(x + 5, y + 5);
eventSender.mouseUp();
}
function runTest() {
if (!window.layoutTestController) {
alert('this test can only be run by DumpRenderTree.')
return;
}
if (window.layoutTestController)
layoutTestController.dumpAsText();
var checkbox = document.getElementById('checkbox');
var radio = document.getElementById('radio');
simulateDragClick(15, 15);
simulateDragClick(15, 30);
if (checkbox.value == 'on' && radio.value == 'on');
document.getElementById('result').innerHTML = "SUCCESS";
}
</script>
</head>
<body onload="runTest()">
<div><input id="checkbox" type="checkbox"></div>
<div><input name="test" id="radio" type="radio"></div>
<div>This tests that check boxes and radio buttons can be toggled even if the mouse is moved between the button press and release. If the test is successful, the text "SUCCESS" should be shown below.</div>
<div id="result">FAILURE</div>
</body>
</html>
2006-07-07 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=8300
REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
* css/html4.css:
Set "-webkit-user-select: ignore" on radio buttons and check boxes .
2006-07-07 Maciej Stachowiak <mjs@apple.com>
Reviewed by Tim Hatcher.
......
......@@ -380,7 +380,7 @@ input[type="button"]:active:disabled, input[type="submit"]:active:disabled, inpu
border-style: outset
}
select, button, input[type="button"], input[type="image"], input[type="submit"], input[type="reset"], img {
select, button, input[type="button"], input[type="image"], input[type="submit"], input[type="reset"], input[type="checkbox"], input[type="radio"], img {
-webkit-user-select: ignore
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment