chromium/third_party/blink/web_tests/fast/forms/color/color-picker-appearance-color-well-left-edge-no-left-movement.html

<!DOCTYPE html>
<meta name=fuzzy content="maxDifference=0-3; totalPixels=0-1000">
<script>
testRunner.dumpAsText();
testRunner.waitUntilDone();
</script>
<script src="../../../resources/testdriver.js"></script>
<script src="../../../resources/testdriver-vendor.js"></script>
<script src='../resources/picker-common.js'></script>
<script src='color-picker-appearance-no-movement-helper.js'></script>

<input type='color' id='color' value='#A8A8A8'>

<p id='description' style='opacity: 0'></p>
<div id='console' style='opacity: 0'></div>

<script>
window.onload = () => {
  let descriptionContainer = document.getElementById('description');
  openPicker(document.getElementById('color'))
  .then(() => {
    descriptionContainer.append('Popup opened.', document.createElement('br'));
    internals.pagePopupWindow.focus();
    const popupDocument = internals.pagePopupWindow.document;
    const colorWell = popupDocument.querySelector('color-well');
    const colorWellRect = colorWell.getBoundingClientRect();
    const colorWellSelectionRing = popupDocument.querySelector('color-well > color-selection-ring');
    eventSender.mouseMoveTo(colorWellRect.left, colorWellRect.top + (colorWellRect.height / 2));
    eventSender.mouseDown();
    eventSender.mouseUp();

    let colorWellSelectionRingCurrentLeft = colorWellSelectionRing.left;
    let colorWellSelectionRingCurrentTop = colorWellSelectionRing.top;
    eventSender.keyDown('ArrowLeft');
    logKeyboardMovementResult(descriptionContainer, 'ArrowLeft', 'color well', colorWellSelectionRing,
        colorWellSelectionRingCurrentLeft, colorWellSelectionRingCurrentTop);

    colorWellSelectionRingCurrentLeft = colorWellSelectionRing.left;
    colorWellSelectionRingCurrentTop = colorWellSelectionRing.top;
    eventSender.keyDown('ArrowLeft', ['ctrlKey']);
    logKeyboardMovementResult(descriptionContainer, 'ctrlKey+ArrowLeft', 'color well', colorWellSelectionRing,
        colorWellSelectionRingCurrentLeft, colorWellSelectionRingCurrentTop);
    descriptionContainer.append('TEST COMPLETE');
    testRunner.notifyDone();
  })
  .catch((e) => {
    descriptionContainer.append('Popup did not open.' + e, document.createElement('br'));
    testRunner.notifyDone();
  });
}
</script>