Why does the font CSS property cancel the bold font weight?
<p>I've been asked to remove unnecessary tags from a computer-generated HTML that has a lot of useless tags in it (I just want to keep the color/strong/em information). I came across something similar to the following HTML: </p>
<pre class="brush:html;toolbar:false;"><b>
<span style="FONT: 20pt "Arial"">
<strong>bold</strong> not bold <b>bold</b> not bold
</span>
</b>
</pre>
<p>For me (on chrome and firefox) it displays <code>bold</code> text as bold and <code>not bold</code> text as non-bold , I'm confused about this. In particular, this made my task more complicated: I thought I could just remove the tags without color/strong/em information, so changed it to the following: </p>
<pre class="brush:html;toolbar:false;"><b>
<strong>bold</strong> not bold <strong>bold</strong> not bold
</b>
</pre>
<p>But now, all the text is bold instead of how it was before.</p>
<p>I'm trying to figure out what I can put in the <code>FONT</code> style to reproduce this behavior: </p>
<p>Replacing <code>Arial</code> with <code>foo</code> maintains this behavior: </p>
<pre class="brush:html;toolbar:false;"><b>
<span style="FONT: 20pt foo">
<strong>bold</strong> not bold <b>bold</b> not bold <!-- not bold is actually not bold! 20pt is applied -->
</span>
</b>
</pre>
<p>After switching the size and font, the behavior changed: </p>
<pre class="brush:html;toolbar:false;"><b>
<span style="FONT: "Arial" 20pt">
<strong>bold</strong> not bold <b>bold</b> not bold <!-- everything is bold. 20pt is _not_ applied -->
</span>
</b>
</pre>
<p>Neither of the two values has any effect: </p>
<pre class="brush:html;toolbar:false;"><b>
<span style="FONT: "Arial"">
<strong>bold</strong> not bold <b>bold</b> not bold <!-- everything is bold -->
</span>
</b>
</pre>
<pre class="brush:html;toolbar:false;"><b>
<span style="FONT: 20pt">
<strong>bold</strong> not bold <b>bold</b> not bold <!-- everything is bold -->
</span>
</b>
</pre>
<p></p>
<p></p>
<p>Can anyone explain this behavior, or at least tell me what styles I should look for to suppress the outer styles? </p>