title: Style the content of an object/embed
body: <p>I am developing a small web application in which I have an <code>object</code> element (that contains an <code>embed</code>) that I use to display small documents.</p>
  
  <p>The documents can be PDFs or plain text files (.txt) that I get from a web service in the form of a base64 string. Then, to show the content, I update the <code>data</code> and <code>src</code> attributes for the <code>object</code> and <code>embed</code> respectively. The final result would look something like this (simplified):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>object {
    border: 1px solid #ccc;
    width: 300px;
    height: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;object type="text/plain" data="data:text/plain;base64,SGVsbG8gV29ybGQh"&gt;
    &lt;embed type="text/plain" src="data:text/plain;base64,SGVsbG8gV29ybGQh" /&gt;
  &lt;/object&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>All the PDFs look ok (the browser loads them using the plugin), but I am facing some trouble with the text files. The content of the .txt is displayed correctly, but the text looks a bit small and I was asked to make it larger.</p>
  
  <p>I tried changing the font size of the <code>object</code> and <code>embed</code> but the content is not affected by it:</p>
  
  <pre><code>object, embed {
    font-size: 32px;
  }
  </code></pre>
  
  <p>In Chrome, I saw that the content of the object is a #document that displays the content of the base64 .txt in a <code>pre</code>. So I tried to style the <code>pre</code>, but only the <code>pre</code> tags outside the <code>object</code> tag take them, not the one inside it:</p>
  
  <pre><code>pre {
    font-size: 32px;
  }
  </code></pre>
  
  <p>Is it possible to give styles to the content of an <code>object</code>/<code>embed</code>? How could it be done?</p>