13
二
这里我节选了两篇来自mozilla.org的技术文章, 虽然不全是reflow的内容, 但对于更深如理解reflow是有好处的, 尤其关注第二篇, 对我们实际工作很有裨益.
Notes on HTML Reflow 部分节选翻译
要是你还没了解何为reflow, 请查看这里
All HTML reflow, including the intial reflow, begins at the root frame, which corresponds to the <html> element of the HTML document. Reflow proceeds recursively through some or all of the frame hierarchy, computing geometric information for each frame object that requires it. Reflow may have the side-effect of creating new continuation frames, for example, for a text frame when the text must be wrapped.
大致意思为: 所有的reflow, 都是由根标签开始, 对应与HTML文档, 就是<html>标签了, reflow会一直逐级进行到需要从新计算的框架(frame),甚至全部框架. 继续阅读 »


