<?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>56002</bug_id>
          
          <creation_ts>2011-03-09 02:00:04 -0800</creation_ts>
          <short_desc>Web Inspector: [STYLES] Editing a property value adds a word for any property value that uses a paren</short_desc>
          <delta_ts>2011-03-10 10:27:21 -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>FIXED</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>1</everconfirmed>
          <reporter name="Alexander Pavlov (apavlov)">apavlov</reporter>
          <assigned_to name="Alexander Pavlov (apavlov)">apavlov</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>364381</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-03-09 02:00:04 -0800</bug_when>
    <thetext>1. Open any page
2. Open the webinspector and pick and element
3. In the element style properties, try to add something like:
-webkit-transform: translateZ(0)

You&apos;ll notice that the moment you type the open parenthesis the word &quot;initial&quot; appears, greyed out. There is no way to remove that so by the time you&apos;re done typing you end up with:
-webkit-transform: translateZ(0)initial

If a property accepts color keywords, you can end up with the word &quot;aliceblue&quot; instead.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=75302</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364415</commentid>
    <comment_count>1</comment_count>
      <attachid>85156</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-03-09 03:50:18 -0800</bug_when>
    <thetext>Created attachment 85156
[PATCH] Suggested fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364548</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-03-09 09:49:19 -0800</bug_when>
    <thetext>Would the suggestion still affect url()? If you input &quot;url(i&quot; it might suggest initial?
Any way to prevent that, or is it a separate bug I should file a new bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365110</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-03-10 05:28:18 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Would the suggestion still affect url()? If you input &quot;url(i&quot; it might suggest initial?
&gt; Any way to prevent that, or is it a separate bug I should file a new bug?

I wouldn&apos;t call it a bug :) Frankly speaking, we do not parse the current value contents and only offer prefix-based suggestions with all keywords allowed in the current property values (and &quot;initial&quot; is one of the keywords). If that is a real nuisance, feel free to file a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365111</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-03-10 05:29:29 -0800</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
        M       Source/WebCore/ChangeLog
        M       Source/WebCore/inspector/front-end/StylesSidebarPane.js
Committed r80710</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365280</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-03-10 10:15:57 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Would the suggestion still affect url()? If you input &quot;url(i&quot; it might suggest initial?
&gt; &gt; Any way to prevent that, or is it a separate bug I should file a new bug?
&gt; 
&gt; I wouldn&apos;t call it a bug :)

Sure, an enhancement. I filed:
&lt;http://webkit.org/b/56118&gt; Web Inspector: CSS Autocomplete Should Use More Contextual Information

The same can be done for JavaScript, but I think we already have some relevant bugs.
I had a patch for improving getElementById to autocomplete id&apos;s, but it never landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365294</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-03-10 10:27:21 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Would the suggestion still affect url()? If you input &quot;url(i&quot; it might suggest initial?
&gt; &gt; &gt; Any way to prevent that, or is it a separate bug I should file a new bug?
&gt; &gt; 
&gt; &gt; I wouldn&apos;t call it a bug :)
&gt; 
&gt; Sure, an enhancement. I filed:
&gt; &lt;http://webkit.org/b/56118&gt; Web Inspector: CSS Autocomplete Should Use More Contextual Information
&gt; 
&gt; The same can be done for JavaScript, but I think we already have some relevant bugs.
&gt; I had a patch for improving getElementById to autocomplete id&apos;s, but it never landed.

Good thing -- can you share your thoughts with me, perhaps over email? I&apos;m curious about to what extent you think the input should be analyzed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>85156</attachid>
            <date>2011-03-09 03:50:18 -0800</date>
            <delta_ts>2011-03-10 05:29:41 -0800</delta_ts>
            <desc>[PATCH] Suggested fix</desc>
            <filename>cssprompt.patch</filename>
            <type>text/plain</type>
            <size>1423</size>
            <attacher name="Alexander Pavlov (apavlov)">apavlov</attacher>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vcmUvaW5zcGVjdG9yL2Zy
b250LWVuZC9TdHlsZXNTaWRlYmFyUGFuZS5qcyBiL1NvdXJjZS9XZWJDb3JlL2luc3BlY3Rvci9m
cm9udC1lbmQvU3R5bGVzU2lkZWJhclBhbmUuanMKaW5kZXggYzdkMTUxYS4uZDY1OTMyYiAxMDA2
NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvaW5zcGVjdG9yL2Zyb250LWVuZC9TdHlsZXNTaWRlYmFy
UGFuZS5qcworKysgYi9Tb3VyY2UvV2ViQ29yZS9pbnNwZWN0b3IvZnJvbnQtZW5kL1N0eWxlc1Np
ZGViYXJQYW5lLmpzCkBAIC0xOTY0LDYgKzE5NjQsOSBAQCBXZWJJbnNwZWN0b3IuU3R5bGVzU2lk
ZWJhclBhbmUuQ1NTUHJvcGVydHlQcm9tcHQucHJvdG90eXBlID0gewogICAgIF9idWlsZFByb3Bl
cnR5Q29tcGxldGlvbnM6IGZ1bmN0aW9uKHdvcmRSYW5nZSwgYmVzdE1hdGNoT25seSwgY29tcGxl
dGlvbnNSZWFkeUNhbGxiYWNrKQogICAgIHsKICAgICAgICAgdmFyIHByZWZpeCA9IHdvcmRSYW5n
ZS50b1N0cmluZygpLnRvTG93ZXJDYXNlKCk7CisgICAgICAgIGlmICghcHJlZml4ICYmIGJlc3RN
YXRjaE9ubHkpCisgICAgICAgICAgICByZXR1cm47CisKICAgICAgICAgdmFyIHJlc3VsdHM7CiAg
ICAgICAgIGlmIChiZXN0TWF0Y2hPbmx5KSB7CiAgICAgICAgICAgICByZXN1bHRzID0gW107Cg==
</data>
<flag name="review"
          id="77248"
          type_id="1"
          status="+"
          setter="pfeldman"
    />
          </attachment>
      

    </bug>

</bugzilla>