Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | layout: fix superfluous inline whitespace | bptato | 2023-07-25 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | computeShift now checks if the last inline atom is spacing, and if yes, it does not add more spacing. This fixes rendering of the following document: <span> a </span> <span> b </span> | |||||
* | layout: use nowrap function | bptato | 2023-07-25 | 1 | -1/+1 | |
| | ||||||
* | layout: fix position: relative sizes | bptato | 2023-07-25 | 1 | -2/+2 | |
| | | | | | Only inherit width from the last positioned element if position: absolute is set. | |||||
* | layout: refactor sizing | bptato | 2023-07-25 | 2 | -281/+425 | |
| | | | | | | Factor out the "shrink" variable and the (broken) isWidthSpecified into a SizeConstraint type. This should make box sizing easier to reason about. | |||||
* | make it compile | bptato | 2023-07-08 | 1 | -8/+7 | |
| | | | | whoops | |||||
* | layout: width-related fixes | bptato | 2023-07-08 | 1 | -34/+38 | |
| | | | | | | | | * Set contentWidthInfinite to false when specified width commands so * Unify applyWidth of block boxes. probably still incorrect, just less so (at least we no longer have two slightly different cases...) This appears to fix some infinite table cell width issues. | |||||
* | layout: refactor table layout | bptato | 2023-07-07 | 2 | -92/+109 | |
| | | | | Split it into smaller functions. | |||||
* | layout: show [img] instead of image url | bptato | 2023-07-07 | 1 | -1/+1 | |
| | | | | urls can get pretty long | |||||
* | Fix bug in media-query parsing | bptato | 2023-07-04 | 1 | -20/+25 | |
| | | | | This fixes interpretation of "@media (min/max-width: 1234px)". | |||||
* | Fix table cellspacing not being counted in row width | bptato | 2023-07-04 | 1 | -0/+7 | |
| | ||||||
* | Use LayoutUnit in layout | bptato | 2023-07-04 | 3 | -110/+178 | |
| | | | | Reduces ugly rendering caused by rounding errors. | |||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 2 | -86/+95 | |
| | ||||||
* | Fix -cha-center moving by negative x | bptato | 2023-06-10 | 1 | -4/+2 | |
| | | | | | In other words, if the element is wider than it's container, we don't do anything at all. | |||||
* | Add support for visibility | bptato | 2023-06-07 | 1 | -0/+2 | |
| | ||||||
* | layout: fix min-height/max-height handling | bptato | 2023-06-07 | 2 | -20/+22 | |
| | ||||||
* | min-height, max-height fixes | bptato | 2023-05-14 | 1 | -4/+4 | |
| | ||||||
* | remove stray eprint, remove unused make* | bptato | 2023-05-13 | 1 | -1/+0 | |
| | ||||||
* | layout: disregard negative underflow | bptato | 2023-05-13 | 1 | -1/+2 | |
| | ||||||
* | Working position: absolute, some other fixes | bptato | 2023-05-13 | 2 | -145/+131 | |
| | | | | | | | | Fix margin-top being used instead of margin-bottom. Content width resolving makes somewhat more sense now. min-width, max-width doesn't completely break width calculation anymore. Finally, position: absolute is no longer implemented as a horribly broken hack. | |||||
* | layout/engine: fix min-width doing the wrong thing | bptato | 2023-03-10 | 1 | -4/+4 | |
| | | | | It was being used the same way as max-width. Oops. | |||||
* | layout/engine: fix double positioning absolute boxes | bptato | 2023-02-19 | 2 | -0/+11 | |
| | | | | | by checking if the box has been positioned before. Not a very good solution, but it works... | |||||
* | layout/engine: fix some tab alignment issues | bptato | 2023-02-14 | 1 | -2/+4 | |
| | ||||||
* | layout: fix position:absolute, remove position:fixed | bptato | 2023-01-20 | 2 | -31/+45 | |
| | | | | Now at least absolute should be positioned correctly. | |||||
* | layout/engine: fix tab display | bptato | 2023-01-19 | 1 | -1/+4 | |
| | ||||||
* | css/cascade, layout/engine: add table align | bptato | 2023-01-08 | 1 | -34/+32 | |
| | | | | Also fix margin-left/right: auto, to some extent. | |||||
* | layout/engine: fix marker box computed values | bptato | 2023-01-06 | 1 | -1/+1 | |
| | ||||||
* | layout/engine: fix non-inheritable values for inline box | bptato | 2023-01-06 | 2 | -36/+61 | |
| | | | | | Also, a hack for inline box background-color. It doesn't work very well, but good enough for now. | |||||
* | layout/engine: fix pre-line wrap on newline | bptato | 2023-01-05 | 1 | -1/+6 | |
| | | | | Just how many white-space properties can I get wrong? | |||||
* | layout/engine: fix inline-table crash | bptato | 2023-01-03 | 1 | -16/+19 | |
| | | | | inline-table was calling the wrong layout, which made an assertion fail. | |||||
* | layout/engine: fix text-align: cha-* for boxes with shrink | bptato | 2023-01-01 | 1 | -15/+22 | |
| | | | | | In shrink, we can only take up as much space as our content, so we first have to determine our content width and only then align the children. | |||||
* | layout/engine: fix crash on padding-right | bptato | 2022-12-31 | 2 | -2/+1 | |
| | ||||||
* | layout/engine: add hanging spaces, markers | bptato | 2022-12-28 | 1 | -10/+25 | |
| | | | | | | Implement hanging ascii spaces. Non-ascii is still not supported... Markers are now built in shrunken inline contexts, and are set to white-space pre, so the trailing space is preserved. | |||||
* | layout/engine: table layout improvements, fix pre-wrap whitespace | bptato | 2022-12-28 | 2 | -126/+206 | |
| | | | | | | | | Table layout: weight calculation is no longer broken. We use maxContentWidth for this, which the first pass of a non-specified table cell layout overrides. pre-wrap: just a minor fix - include it in whitespacepre, now that we have a distinction between pre and wrapping white-space | |||||
* | layout/engine: get rid of dom dependency | bptato | 2022-12-27 | 2 | -32/+22 | |
| | | | | Layout should only depend on cascading. | |||||
* | Proper support for tabs | bptato | 2022-12-27 | 2 | -4/+10 | |
| | ||||||
* | layout/engine: calculate wrappervals only if needed | bptato | 2022-12-26 | 1 | -2/+2 | |
| | ||||||
* | Fix an anonymous table bug | bptato | 2022-12-25 | 1 | -1/+7 | |
| | | | | | ...by flushing anonymous tables *before* inline layout is set (therefore avoiding placing them inside inline boxes.) | |||||
* | layout/engine: handle soft hyphens, wrap on ascii dash | bptato | 2022-12-25 | 1 | -13/+42 | |
| | ||||||
* | layout/engine: store vertical-align at atom creation | bptato | 2022-12-25 | 1 | -10/+9 | |
| | ||||||
* | layout/engine: use spec in positionBlocks | bptato | 2022-12-25 | 1 | -3/+2 | |
| | ||||||
* | layout/engine: clean up & fix width computation | bptato | 2022-12-25 | 2 | -163/+142 | |
| | | | | | Get rid of compwidth, fix some edge cases where boxes would be computed incorrectly, etc. | |||||
* | layout/engine: simplify a bit | bptato | 2022-12-21 | 2 | -38/+29 | |
| | ||||||
* | layout/engine: reset absolutes on relayout | bptato | 2022-12-20 | 1 | -0/+1 | |
| | ||||||
* | Add unicode normalization, etc | bptato | 2022-12-19 | 1 | -3/+9 | |
| | ||||||
* | Fix division by zero in table layout | bptato | 2022-12-17 | 1 | -6/+8 | |
| | ||||||
* | Display text for img tag, background-image | bptato | 2022-12-16 | 2 | -42/+49 | |
| | ||||||
* | Remove obsolete buildInlineTableBox | bptato | 2022-12-16 | 1 | -27/+0 | |
| | ||||||
* | layout/engine: clean up shrink attribute | bptato | 2022-12-16 | 2 | -58/+69 | |
| | ||||||
* | layout/engine: fix a <br> bug that ate inline boxes, add broken ↵ | bptato | 2022-12-16 | 2 | -11/+55 | |
| | | | | | | | | | min-width/max-width min-width, max-width, min-height, max-height are mostly broken, because they aren't enforced on inline level. Though really the whole size calculation mechanism needs to be refactored, its current state is horrible. | |||||
* | Fix tab width in pre | bptato | 2022-12-15 | 1 | -0/+2 | |
| |