<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>51480</bug_id>
          
          <creation_ts>2010-12-22 10:16:11 -0800</creation_ts>
          <short_desc>Web Inspector: Tabbing from new rule with empty value should create a new property</short_desc>
          <delta_ts>2010-12-28 08:19:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>325546</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-22 10:16:11 -0800</bug_when>
    <thetext>Steps to Reproduce:

  1. Add new element.style
  2. &quot;color&quot; : &quot;red&quot; but don&apos;t hit enter
  3. Backspace to remove &quot;red&quot;
  4. Hit tab to delete the color property and start a new one

Actual Results:

  Tabs to the next style section and starts editing the selector

Expected:

  Removes the &quot;color: &quot; rule and starts editing a new, blank rule.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326026</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-23 04:28:57 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Steps to Reproduce:
&gt; 
&gt;   1. Add new element.style
&gt;   2. &quot;color&quot; : &quot;red&quot; but don&apos;t hit enter
&gt;   3. Backspace to remove &quot;red&quot;
&gt;   4. Hit tab to delete the color property and start a new one
&gt; 
&gt; Actual Results:
&gt; 
&gt;   Tabs to the next style section and starts editing the selector
&gt; 
&gt; Expected:
&gt; 
&gt;   Removes the &quot;color: &quot; rule and starts editing a new, blank rule.

I believe you meant to say &quot;a new, blank property&quot;

Hmm, the expected behavior seems counter-intuitive to me. You ARE editing a new property (which has never been committed) at the moment. Effectively, you want &quot;Tab&quot; in the value field to clear the name field and move input there, correct? This does not look consistent with the Tab behavior in the rest cases.

Why not just Shift+Tab (or Backspace, once bug 51476 patch is landed) to the property name (which automatically gets selected, so you can start entering a new property name from the scratch right away)? When I was designing this tabbing experience, the idea was that if a user has entered (== tabbed out of/clicked outside of) an incomplete blank property (with no name/value), he does not want a new property. In the case of a Tab, the next editable element is the next rule selector (if any).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327236</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-12-28 08:19:11 -0800</bug_when>
    <thetext>Present behavior mimics Firebug and is expected. I have not seen &apos;tab to delete&apos; action anywhere else.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>