Scamper icon indicating copy to clipboard operation
Scamper copied to clipboard

Add CSS box model rendering

Open Steditor opened this issue 10 years ago • 1 comments

Contents in websites should have correct borders, margins and paddings as well as a correct size.

Contains support and tests for:

  • [x] display block
  • [x] display inline
  • [ ] padding
  • [ ] margin
  • [ ] border
  • [x] width
  • [x] height
  • [x] position static

Estimated effort: 377

Steditor avatar May 03 '14 12:05 Steditor

Width calculation still has some bugs (especially within tables). Widths of "replaced (inline) elements" (images, buttons) are ignored when calculating the "preferredMinimumWidth" of HTML elements (see also: http://www.w3.org/TR/CSS2/visudet.html). The image crashes when visiting some Websites (e.g. http://wikipedia.de), is this caused by the second pass of element width determination (updateDocumentSize -> setWidth)? Maybe there's an infinite loop? Could also be a SSL issue...

rs22 avatar Jul 12 '14 12:07 rs22