Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | (calc): Update bytecode for calc() to be in an lwc_stringdsilvers/calc | Daniel Silverstone | 2022-11-26 | 2 | -34/+84 |
| | | | | | | | | | | In order to permit us to share calc expressions between styles and computed styles, without copying, we embed the calc expression bytecode into an lwc string. This is effectively using lwc_string as an interned byte buffer, there may be a nicer way to do this in the future. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | bytecode: Use define for calc value identifier | Michael Drake | 2022-11-26 | 2 | -36/+39 |
| | |||||
* | parse: Tests and fixes for calc() parser. | Daniel Silverstone | 2022-11-26 | 4 | -34/+209 |
| | | | | Co-authored-by: Michael Drake <michael.drake@netsurf-browser.org> | ||||
* | parse: calc() test and fixup. | Daniel Silverstone | 2022-11-26 | 6 | -20/+115 |
| | |||||
* | parse: Update parser generator to support calc() details. | Michael Drake | 2022-11-26 | 5 | -88/+141 |
| | | | | Co-authored-by: Daniel Silverstone <dsilvers@netsurf-browser.org> | ||||
* | parse: Add calc() parser. | Daniel Silverstone | 2022-11-26 | 5 | -1/+302 |
| | | | | Co-authored-by: Michael Drake <michael.drake@netsurf-browser.org> | ||||
* | GitHub CI: Add static analysis with CodeQL | Michael Drake | 2022-11-09 | 1 | -0/+61 |
| | |||||
* | GitHub CI: Add build and unit test workflow | Michael Drake | 2022-11-09 | 1 | -0/+76 |
| | |||||
* | select: autogen source: Update to stable output | Michael Drake | 2022-11-03 | 3 | -539/+540 |
| | |||||
* | select: codegen: Deterministic output by subsorting props by name | Michael Drake | 2022-11-03 | 1 | -1/+1 |
| | |||||
* | select: codegen: Squash comparison with literal warnings | Michael Drake | 2022-11-03 | 1 | -24/+24 |
| | |||||
* | properties: Define align-self values in terms of align-items | Michael Drake | 2022-11-03 | 2 | -11/+11 |
| | |||||
* | tests: Add tests for position:sticky | Michael Drake | 2022-11-03 | 3 | -0/+120 |
| | |||||
* | properties: position: Add support for 'sticky' value | Michael Drake | 2022-11-03 | 7 | -4/+11 |
| | |||||
* | test: Add test for display property grid values | Michael Drake | 2022-10-29 | 1 | -0/+111 |
| | |||||
* | test: dump: Add support for display property grid values | Michael Drake | 2022-10-29 | 1 | -0/+6 |
| | |||||
* | properties: display: Add grid values | Michael Drake | 2022-10-29 | 7 | -3/+18 |
| | |||||
* | docs: bytecode: Add display grid values | Michael Drake | 2022-10-29 | 1 | -0/+2 |
| | |||||
* | select: Fix blank pseudo style reversion | Michael Drake | 2022-10-23 | 1 | -0/+8 |
| | |||||
* | Floating point maths: Squash clang warning | Michael Drake | 2022-10-22 | 1 | -3/+5 |
| | | | | | Implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion] | ||||
* | Select: Only store UA and USER origin styles if revert is used | Michael Drake | 2022-08-29 | 1 | -5/+13 |
| | |||||
* | Stylesheet: Track whether stylesheet used revert property value | Michael Drake | 2022-08-29 | 1 | -0/+6 |
| | |||||
* | Select: Move revert style tracking to separate allocation | Michael Drake | 2022-08-29 | 2 | -8/+18 |
| | | | | It's pretty big and the selection state lives on the stack. | ||||
* | Tests: Add tests for explicit defaulting | Michael Drake | 2022-08-29 | 2 | -0/+1453 |
| | |||||
* | Select: Split out duplicated revert handling | Michael Drake | 2022-08-29 | 1 | -52/+47 |
| | |||||
* | Select: Support CSS property-wide 'revert' value | Michael Drake | 2022-08-29 | 1 | -0/+79 |
| | |||||
* | Select: Clone UA and author styles for revert | Michael Drake | 2022-08-29 | 2 | -0/+38 |
| | |||||
* | Select: Add computed style clone function | Michael Drake | 2022-08-29 | 2 | -0/+35 |
| | |||||
* | Select: Properties: Add copy hander to dispatch table | Michael Drake | 2022-08-29 | 2 | -0/+3 |
| | |||||
* | Select: Properties: Implement copy handler for complex properties | Michael Drake | 2022-08-29 | 8 | -155/+306 |
| | |||||
* | Select: Properties: Add copy handler for simple properties | Michael Drake | 2022-08-29 | 118 | -507/+1778 |
| | |||||
* | Select: Support CSS property-wide 'unset' value | Michael Drake | 2022-08-29 | 1 | -3/+18 |
| | |||||
* | Select: Support CSS property-wide 'initial' value | Michael Drake | 2022-08-29 | 1 | -3/+6 |
| | |||||
* | Select: Make inherit flag handling aware of other default values | Michael Drake | 2022-08-29 | 70 | -171/+179 |
| | |||||
* | Parse: Nongenerated properties: Explicit defaults | Michael Drake | 2022-08-29 | 31 | -135/+363 |
| | |||||
* | Parse: Important: Handle new explicit defaulting values | Michael Drake | 2022-08-29 | 1 | -1/+1 |
| | |||||
* | Parse: Explicit default support for generated properties | Michael Drake | 2022-08-29 | 1 | -93/+93 |
| | |||||
* | Parse: Update code generator to support new values | Michael Drake | 2022-08-29 | 1 | -4/+42 |
| | |||||
* | Stylesheet: Helpers for all default property values | Michael Drake | 2022-08-29 | 1 | -1/+33 |
| | |||||
* | Parse: Utils: Helper to get any value from flags | Michael Drake | 2022-08-29 | 1 | -0/+29 |
| | |||||
* | Bytecode: Flag values for explicit defaulting | Michael Drake | 2022-08-29 | 1 | -4/+25 |
| | |||||
* | Docs: Bytecode: Add all CSS-wide property values | Michael Drake | 2022-08-29 | 1 | -8/+16 |
| | |||||
* | Parse: Propstrings: Add unset and revert | Michael Drake | 2022-08-29 | 2 | -2/+4 |
| | |||||
* | Select: MQ: Support prefers-color-scheme in boolean context | Michael Drake | 2022-08-28 | 1 | -4/+5 |
| | | | | | In boolean context it indicates that the browser supports this feature. | ||||
* | Select: MQ: Use interned strings for media features | Michael Drake | 2022-08-28 | 4 | -36/+63 |
| | | | | Avoids some strcmps. | ||||
* | Select: Add strings for media query features | Michael Drake | 2022-08-28 | 2 | -0/+29 |
| | |||||
* | Select: Split out useful strings | Michael Drake | 2022-08-28 | 4 | -289/+320 |
| | |||||
* | Selection: Media queries: Apply prefers-color-scheme | Michael Drake | 2022-07-31 | 1 | -0/+33 |
| | |||||
* | API: Client media spec: Allow colour scheme preference | Michael Drake | 2022-07-31 | 1 | -0/+2 |
| | |||||
* | Parse/MQ: unknown media-types do not match | John-Mark Bell | 2022-05-24 | 2 | -4/+22 |
| | | | | | | | | Per https://www.w3.org/TR/mediaqueries-4/#error-handling, "An unknown <media-type> must be treated as not matching" Ensure, however, that a rule with a condition and no type behaves as if type was all. |