title: Text with two colors
body: <p>I would like to have a text that switches its color at a certain point x. I have provided a sample that uses the text twice to produce the result, with the switch at 45px. Is there a way to do this in css without having the text twice? Maybe using svg?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div{
    width: 400px;
    height: 40px;
    border: 1px solid #000;
    position: relative;
  }
  div&gt;span{
    position: absolute;
    top: 0;
    left: 0;
  }
  
  div :nth-child(2){
    color: blue;
    clip: rect(0 200px 40px 45px);
  }
  div :nth-child(1){
    color: red;
    clip: rect(0 45px 40px 0);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
  &lt;span&gt;Some bicolored Text&lt;/span&gt;
  &lt;span&gt;Some bicolored Text&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>