title: Child theme enqueuing with dependencies
body: <p>I'm trying to create a child theme. The parent theme has a style.css and all, and I was looking at <code>wp_enqueue_style()</code> function, and it says that you can inlude dependencies. So that means that the themes own <code>style.css</code> can be active, and in my child theme if I specify the same rule in my style.css, it should overwrite it.</p>
  
  <p>But the dependency is an array of handles. How do I find those handles?</p>
  
  <pre><code>wp_enqueue_style( 'mytheme-style', get_stylesheet_directory_uri().'/style.css', array('main_css') );
  </code></pre>
  
  <p>I tried with the above, but it only loads the style.css from child theme, not the parent. </p>
  
  <p>Where can I find these handles?</p>
  
  <p>EDIT:</p>
  
  <p>I found the code for reproducing the handles and scripts:</p>
  
  <pre><code>function wpa54064_inspect_scripts() {
      global $wp_scripts;
      foreach( $wp_scripts-&gt;queue as $handle ) :
          echo $handle,' ';
      endforeach;
  }
  add_action( 'wp_print_scripts', 'wpa54064_inspect_scripts' );
  
  function wpa54064_inspect_style() {
      global $wp_styles;
      foreach( $wp_styles-&gt;queue as $handle ) :
          echo $handle,' ';
      endforeach;
  }
  add_action( 'wp_print_scripts', 'wpa54064_inspect_style' );
  </code></pre>
  
  <p>But it still doesn't work the way I thought it does.</p>