示例#1
0
        static CssLength SetLineHeight(this CssBox box, CssLength len)
        {
            //2014,2015,
            //from www.w3c.org/wiki/Css/Properties/line-height

            //line height in <percentage> :
            //The computed value if the property is percentage multiplied by the
            //element's computed font size.
            return(CssLength.MakePixelLength(
                       CssValueParser.ConvertToPx(len, box.GetEmHeight(), box)));
        }
示例#2
0
 public static float ParseLength(string length, float hundredPercent, CssBox box)
 {
     return(CssValue.ParseLength(length, hundredPercent, box, box.GetEmHeight(), false));
 }