Hello, I'm trying to find where the cause of the problem, described in Bug 258928, lies. The brief description of the problem: when you have defined style for formatting elements (like <span>, <li>, etc.), and the page, or the part of it, is in "RTL" direction, the paddings in the style are miscalculated, and the elements are placed in wrong positions. I have problem understanding the process of parsing and presenting the html page. Is there a brief description (just general lines will be good, I think), how it's done?
In file called nsCSSPropList.h I see properties for same attributes, with respect to direction (ltr or rtl), I assume that those properties might be calculated for both cases in advance, and used according to the actual case of direction on page/element? (for example for CSS_PROP_PADDING I see CSS_PROP_PADDING(padding-left-value, padding_left_value, X, Margin, mPadding.mLeft, eCSSType_Value, nsnull) CSS_PROP_PADDING(padding-left-ltr-source, padding_left_ltr_source, X, Margin, mPaddingLeftLTRSource, eCSSType_Value, kBoxPropSourceKTable) CSS_PROP_PADDING(padding-left-rtl-source, padding_left_rtl_source, X, Margin, mPaddingLeftRTLSource, eCSSType_Value, kBoxPropSourceKTable)). Am I wrong? Can you please help me, with the part, where the styles are applied to the elements on the page? Thank you in advance, Irena Kofman _______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout
