<?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>9687</bug_id>
          
          <creation_ts>2006-07-01 22:40:05 -0700</creation_ts>
          <short_desc>WebKit needs to log CSS errors (like FireFox &amp; FireBug do)</short_desc>
          <delta_ts>2014-01-13 09:06:42 -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>CSS</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19236</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>bburg</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>hyatt</cc>
    
    <cc>mrowe</cc>
    
    <cc>nickshanks</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47952</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-07-01 22:40:05 -0700</bug_when>
    <thetext>WebKit needs to be able to log CSS errors (like FireFox &amp; FireBug do)

These should be logged any time a declaration is dropped, or a value is ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55875</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-18 20:33:02 -0700</bug_when>
    <thetext>I looked at this very briefly.  I would need to talk to hyatt to better understand where we might hook in.

There are several places where you might want to throw CSS-related error messages, not all of which should have the same error information.

Two examples:
1. parsing a stylesheet for a page.
2.  setting a style value via javascript.

Firefox handles case 1 quite nicely, but case 2 very poorly (it shows a useless error message).  Ideally we would design a system to work across most if not all of the cases where the CSS parser should &quot;throw errors&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55879</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-09-18 21:48:48 -0700</bug_when>
    <thetext>Errors basically break down into two classes I think...

(1) Errors that bison would catch, e.g., bad tokens, bad combinations, etc.

(2) Errors that cssparser.cpp would catch, i.e., grammatically well-formed properties that are simply illegal (wrong unit types, wrong # of arguments, etc.)

(1) is pretty hard, since we often don&apos;t even handle those errors well for real. :)
(2) is easier and probably where you&apos;d get more bang for your buck anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41742</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-12-16 14:12:07 -0800</bug_when>
    <thetext>See also bug 7296.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39933</commentid>
    <comment_count>4</comment_count>
      <attachid>12000</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-12-24 07:40:54 -0800</bug_when>
    <thetext>Created attachment 12000
A hack to make this possible

I don&apos;t really expect anyone to take this patch seriously.  However it does address the issue at hand (and hopefully could start some small dialog on the subject).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39927</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-24 07:56:08 -0800</bug_when>
    <thetext>Do we also want to distinguish errors, warnings and messages, as Firefox does?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39921</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-24 08:22:43 -0800</bug_when>
    <thetext>Actually, this patch seems to match bug 10361 better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39900</commentid>
    <comment_count>7</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-24 13:18:10 -0800</bug_when>
    <thetext>Doesn&apos;t this patch mean &quot;only log JS errors?&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39864</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-12-24 16:36:40 -0800</bug_when>
    <thetext>Personally, I find Firefox&apos;s logging system a bit overly geeky.  The point of only logging JS errors in my hack-patch, was to maintain the status-quo, as logging more than that might be a &quot;UI decision&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39304</commentid>
    <comment_count>9</comment_count>
      <attachid>12000</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-12-27 22:38:29 -0800</bug_when>
    <thetext>Comment on attachment 12000
A hack to make this possible

This doesn&apos;t seem necessary. I suggest we start logging more on the console, and later add levels and/or types based on our experience using the console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86428</commentid>
    <comment_count>10</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-07-19 14:26:03 -0700</bug_when>
    <thetext>*** Bug 14358 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967044</commentid>
    <comment_count>11</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2014-01-12 15:03:05 -0800</bug_when>
    <thetext>CSS errors and warnings are logged to console and highlighted in the CSS text editor in the current inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967150</commentid>
    <comment_count>12</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-01-12 22:13:52 -0800</bug_when>
    <thetext>But not nearly enough of them. I think we only log syntax errors, right, and then only property names?

What about:
* invalid values
* meaningless combinations of properties (e.g. z-index on non-positioned)
* things with perf impact (negative text-indent without overflow:hidden)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967356</commentid>
    <comment_count>13</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2014-01-13 09:06:42 -0800</bug_when>
    <thetext>Some invalid values are shown as crossed out in the CSS details sidebar, IIRC. The other things sound like audits to me. (I agree we need new audits, but each one in a separate bug.) In any case, I&apos;m not sure that blasting the console with these errors/warnings is the right thing to do. Even with just parse errors today, the console gets filled with junk on popular websites.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12000</attachid>
            <date>2006-12-24 07:40:54 -0800</date>
            <delta_ts>2007-10-01 08:40:13 -0700</delta_ts>
            <desc>A hack to make this possible</desc>
            <filename>hack.patch</filename>
            <type>text/plain</type>
            <size>2110</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE4NDA4
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDYtMTIt
MjQgIEVyaWMgU2VpZGVsICA8ZXJpY0Blc2VpZGVsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBi
eSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD05Njg3CisgICAgICAgIEFkZCBhYmlsaXR5IHRvIGxvZyBDU1MgZXJyb3JzIChs
aWtlIEZpcmVmb3gvRmlyZWJ1ZyBkbykKKworICAgICAgICBBZGQgYSBoYWNrIHRvIG1ha2Ugbm9u
LUpTIGxv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gICAgICAgbV9jbGllbnQtPmFkZE1lc3NhZ2VUb0NvbnNv
bGUobWVzc2FnZSwgbGluZU51bWJlciwgc291cmNlVVJMKTsKIH0KIAogYm9vbCBDaHJvbWU6OmNh
blJ1bkJlZm9yZVVubG9hZENvbmZpcm1QYW5lbCgpCkluZGV4OiBwYWdlL0Nocm9tZS5oCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIHBhZ2UvQ2hyb21lLmgJKHJldmlzaW9uIDE4NDA4KQorKysgcGFnZS9DaHJvbWUu
aAkod29ya2luZyBjb3B5KQpAQCAtNzIsOCArNzIsMTQgQEAgbmFtZXNwYWNlIFdlYkNvcmUgewog
ICAgICAgICBib29sIG1lbnViYXJWaXNpYmxlKCkgY29uc3Q7CiAgICAgICAgIAogICAgICAgICB2
b2lkIHNldFJlc2l6YWJsZShib29sKSBjb25zdDsKKyAgICAgICAgCisgICAgICAgIGVudW0gRXJy
b3JUeXBlIHsKKyAgICAgICAgICAgIEpTRXJyb3IsCisgICAgICAgICAgICBDU1NFcnJvciwKKyAg
ICAgICAgICAgIFBhcnNlRXJyb3IKKyAgICAgICAgfTsKIAotICAgICAgICB2b2lkIGFkZE1lc3Nh
Z2VUb0NvbnNvbGUoY29uc3QgU3RyaW5nJiBtZXNzYWdlLCB1bnNpZ25lZCBpbnQgbGluZU51bWJl
ciwgY29uc3QgU3RyaW5nJiBzb3VyY2VJRCk7CisgICAgICAgIHZvaWQgYWRkTWVzc2FnZVRvQ29u
c29sZShjb25zdCBTdHJpbmcmIG1lc3NhZ2UsIHVuc2lnbmVkIGludCBsaW5lTnVtYmVyLCBjb25z
dCBTdHJpbmcmIHNvdXJjZUlELCBFcnJvclR5cGUgPSBKU0Vycm9yKTsKIAogICAgICAgICBib29s
IGNhblJ1bkJlZm9yZVVubG9hZENvbmZpcm1QYW5lbCgpOwogICAgICAgICBib29sIHJ1bkJlZm9y
ZVVubG9hZENvbmZpcm1QYW5lbChjb25zdCBTdHJpbmcmIG1lc3NhZ2UsIEZyYW1lKiBmcmFtZSk7
Cg==
</data>
<flag name="review"
          id="4406"
          type_id="1"
          status="-"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>