Hi,<br><br>I was just thinking if anyone could provide me some help for the issue mentioned below so that I can proceed further to resolve this. If you need further info/clarification, please let me know, I would be glad to provide more details.<br>
<br>Thanks,<br>Rahaman.<br><br><div class="gmail_quote">On Fri, May 20, 2011 at 6:05 PM, Mustafizur Rahaman <span dir="ltr"><<a href="mailto:mustaf.here@gmail.com">mustaf.here@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font style="color:rgb(0, 0, 0);font-family:arial,helvetica,sans-serif" size="2">Hi,<br><br>I am analyzing the following issue <a href="https://bugs.webkit.org/show_bug.cgi?id=48575" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=48575</a></font><span style="font-size:12pt;font-family:arial,helvetica,sans-serif;color:blue"><font style="color:rgb(0, 0, 0)" size="2"> (the attachment in the issue description contains multiple issues) & I was particularly looking into <u><a href="http://w3c-test.org/html/tests/approved/canvas/canvas_text_font_001.htm" target="_blank">http://w3c-test.org/html/tests/approved/canvas/canvas_text_font_001.htm</a></u> (Test-case passes in FF but NOT working in Safari(5.0.3)/Winlauncher setup [r86221])<br>
<br>After going through the HTML5 Canvas spec (<a href="http://www.w3.org/TR/2dcontext/#dom-context-2d-font" target="_blank">http://www.w3.org/TR/2dcontext/#dom-context-2d-font</a>), my understanding is that if any of inherit/initial/default are used in the font property assignment statement (e.g., "20px inherit" OR "inherit 20px"), then it must ignore the font value assignment & continue with the previous font value assigned. This is in contrast to the CSS2.1 specification which allows the usage of "inherit" (The values initial/default are reserved for future use).<br>
Is this understanding correct?<br><br>After debugging CSSParser & CSSGrammer.y I have found that:<br>=> for normal HTML/CSS the code flows through CSSParser::parseSheet() => cssyyparse() => CSSParser::parseValue()<br>
=> for HTML5 Canvas, the code flows through CSSParser::parseDeclaration() => cssyyparse() =></font><font style="color:rgb(0, 0, 0)" size="2"> CSSParser::parseValue()<br>In the </font></span><span style="font-size:12.0pt;color:blue"><font style="color:rgb(0, 0, 0)" size="2"><span style="font-family:arial,helvetica,sans-serif">CSSParser::parseValue(), the handling is same for normal HTML/CSS as well as for HTML5 Canvas, i.e., it is handling the "inherit" in the same way. <br>
<br>However, if my understanding as mentioned above is correct, the handling within the parser should be different (reason: CSS2.1 spec & the HTML Canvas 2D Context spec expects "inherit" to be handled differently).</span><br style="font-family:arial,helvetica,sans-serif">
<br>Can somebody help share thoughts/perspective on this...<br style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif"><br>Thanks,<br>Rahaman<br></span></font></span>
</blockquote></div><br>