Bug 16797 - CSS3: cursor: default not supported (Acid3 bug)
Summary: CSS3: cursor: default not supported (Acid3 bug)
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 00:17 PST by Eric Seidel (no email)
Modified: 2008-01-14 20:37 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2008-01-09 00:17:38 PST
Test 47: FAIL (expected default, got: auto - cursor default not supported)

    function () {
      // test 47: 'cursor' and CSS3 values
      var doc = getTestDocument();
      var style = doc.createElement('style');
      style.setAttribute('type', 'text/css');
      var cursors = ['auto', 'default', 'none', 'context-menu', 'help', 'pointer', 'progress', 'wait', 'cell', 'crosshair', 'text', 'vertical-text', 'alias', 'copy', 'move', 'no-drop', 'not-allowed', 'e-resize', 'n-resize', 'ne-resize', 'nw-resize', 's-resize', 'se-resize', 'sw-resize', 'w-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'col-resize', 'row-resize', 'all-scroll'];
      for (var i in cursors) {
        var c = cursors[i];
        style.appendChild(doc.createTextNode('#' + c + ' { cursor: ' + c + '; }'));
      }
      style.appendChild(doc.createTextNode('#bogus { cursor: bogus; }'));
      doc.body.appendChild(style);
      doc.body.id = "bogus";
      assertEquals(doc.defaultView.getComputedStyle(doc.body, '').cursor, "auto", "control failed");
      for (var i in cursors) {
        var c = cursors[i];
        doc.body.id = c;
        assertEquals(doc.defaultView.getComputedStyle(doc.body, '').cursor, c, "cursor " + c + " not supported");
      }
      return 3;
    },
Comment 1 Eric Seidel (no email) 2008-01-09 00:39:30 PST
Should be simple.  This should just map to "pointer" for us.
Comment 2 Eric Seidel (no email) 2008-01-10 20:19:42 PST
Actually this seems to have nothing to do with cursor: default support.  Investigating.
Comment 3 Eric Seidel (no email) 2008-01-14 13:23:42 PST
So the major issue here is that Hixie is adding the <style> tag to the body:

doc.body.appendChild(style);

instead of to the head (like he does for every other test).  We don't support that for some reason.

We also seem to incorrectly map none -> crosshair and copy -> auto.  I'll fix those in a forthcoming patch.
Comment 4 Eric Seidel (no email) 2008-01-14 20:37:10 PST
None of these fail in the latest Acid3.  My diagnosis was incorrect.