<?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>150391</bug_id>
          
          <creation_ts>2015-10-21 05:05:05 -0700</creation_ts>
          <short_desc>Web Inspector: Typo in a property name: style.inerhited</short_desc>
          <delta_ts>2015-10-21 14:13:01 -0700</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</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikita Vasilyev">nvasilyev</reporter>
          <assigned_to name="Nikita Vasilyev">nvasilyev</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>graouts</cc>
    
    <cc>hi</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>ossy</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1135190</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2015-10-21 05:05:05 -0700</bug_when>
    <thetext>Should be &quot;inherited&quot;. WebStorm spotted a missing property, otherwise I wouldn&apos;t notice.

http://trac.webkit.org/changeset/187195
https://github.com/WebKit/webkit/blob/f83708780100ed4be51a136ec33b3ddfdddcc9dd/Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js#L293

I searched in Source/WebInspectorUI. That&apos;s the only place where &quot;inerhited&quot; is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135191</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-10-21 05:05:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/23199935&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135193</commentid>
    <comment_count>2</comment_count>
      <attachid>263675</attachid>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2015-10-21 05:07:44 -0700</bug_when>
    <thetext>Created attachment 263675
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135200</commentid>
    <comment_count>3</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2015-10-21 06:03:37 -0700</bug_when>
    <thetext>I&apos;ve been looking at this over 300 lines long refresh method for a while and I still don&apos;t quite understand what difference fixing this typo made.

Devin, in insertAllMatchingPseudoStyles(force), what is the point of the force agrument?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135206</commentid>
    <comment_count>4</comment_count>
      <attachid>263675</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-21 06:37:36 -0700</bug_when>
    <thetext>Comment on attachment 263675
Patch

Clearing flags on attachment: 263675

Committed r191387: &lt;http://trac.webkit.org/changeset/191387&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135207</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-21 06:37:39 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135252</commentid>
    <comment_count>6</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2015-10-21 10:07:31 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;ve been looking at this over 300 lines long refresh method for a while and
&gt; I still don&apos;t quite understand what difference fixing this typo made.
&gt; 
&gt; Devin, in insertAllMatchingPseudoStyles(force), what is the point of the
&gt; force agrument?

The idea behind the force argument was that pseudo-element styles (::before, ::after, etc) should never be seen below user-agent or inherited rules.  They should always be inserted before the first of those rules in the absolute worst case.  On most websites, there will be a matching rule that doesn&apos;t have the pseudo-element, so this is not necessary (like having &quot;.example&quot; and &quot;.example::before&quot;).  It is possible, however, to have pseudo-rules without a matching non-pseudo-element rule, and it is for this case that the force was added.

Example:
on a blank page, create a rule and give it the selector &quot;body::before&quot; (and give the ::before a content).  This pseudo-element rule should appear before the user-agent &quot;body&quot; rule.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135382</commentid>
    <comment_count>7</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2015-10-21 14:13:01 -0700</bug_when>
    <thetext>Thanks Devin, that makes sense now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>263675</attachid>
            <date>2015-10-21 05:07:44 -0700</date>
            <delta_ts>2015-10-21 06:37:36 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1638</size>
            <attacher name="Nikita Vasilyev">nvasilyev</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCmluZGV4IGU2ZTM3OTMuLjY3NjkxNTUgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkluc3BlY3Rv
clVJL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDE1LTEw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