Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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. | |||||
* | Parse/MQ: reject forbidden media-type identifiers | John-Mark Bell | 2022-05-24 | 6 | -32/+122 | |
| | | | | | | "and" / "not" / "only" / "or" are forbidden, so must be rejected Add tests for these scenarios | |||||
* | Select: Hash: Fix bloom instrumentation for size != 4. | Michael Drake | 2022-03-16 | 1 | -1/+1 | |
| | ||||||
* | Bloom: Init: Switch to memset. | Michael Drake | 2022-03-16 | 1 | -21/+2 | |
| | | | | | GCC is a bit better at optimising a memset. For clang it makes no difference. | |||||
* | Bloom: Style: Align function parameters. | Michael Drake | 2022-03-16 | 1 | -2/+3 | |
| | ||||||
* | Bloom: Docs: Sync comments with reality. | Michael Drake | 2022-03-16 | 1 | -4/+11 | |
| | ||||||
* | Bloom: Docs: Fix comment typo. | Michael Drake | 2022-03-16 | 1 | -1/+1 | |
| | ||||||
* | Selection: Optimise bloom filter merging. | Michael Drake | 2022-03-13 | 1 | -2/+3 | |
| | ||||||
* | Example: Add lwc_string leak report. | Michael Drake | 2022-03-13 | 1 | -0/+10 | |
| | ||||||
* | Example: Fix typo. | Michael Drake | 2022-03-13 | 1 | -2/+2 | |
| | ||||||
* | Tests: Select test runner: Avoid forward declarations. | Michael Drake | 2021-06-16 | 1 | -900/+802 | |
| | ||||||
* | Squash warning on apple darwin CI. | Michael Drake | 2021-06-14 | 1 | -7/+9 | |
| | ||||||
* | Selection: Don't duplicate unit conversion members in media descriptor. | Michael Drake | 2021-05-19 | 15 | -79/+109 | |
| | ||||||
* | Selection: Remove client callback for unit conversion. | Michael Drake | 2021-05-19 | 12 | -443/+390 | |
| | | | | | | | Now clients provide a unit conversion context and libcss provides code to perform unit conversion. This reduces the amount of common code that clients have to write. | |||||
* | Units: Add support for length unit conversion to libcss. | Michael Drake | 2021-05-19 | 5 | -97/+677 | |
| | | | | Currently only used for unit conversion. | |||||
* | Units: Remove units that nobody supports. | Michael Drake | 2021-05-19 | 11 | -111/+37 | |
| | ||||||
* | Add regression test for system font callback units. | Michael Drake | 2021-05-19 | 2 | -1/+143 | |
| | | | | Thanks to Ralf Junker. | |||||
* | parse: Squash leak of system font names. | Michael Drake | 2021-05-19 | 1 | -0/+3 | |
| | ||||||
* | parse: Perform client to parse unit conversion for system fonts. | Michael Drake | 2021-05-19 | 1 | -2/+45 | |
| | ||||||
* | add css 3.1 complex predefined counter styles for addative systems | Vincent Sanders | 2021-02-15 | 7 | -6/+155 | |
| | ||||||
* | Improve list style fallback styling and range processing | Vincent Sanders | 2021-02-14 | 1 | -176/+231 | |
| | ||||||
* | fix list style formatting with negative values | Vincent Sanders | 2021-02-13 | 1 | -158/+161 | |
| | ||||||
* | Initialise the string map with a better macro | Vincent Sanders | 2021-02-12 | 1 | -594/+598 | |
| | | | | | To avoid duplicating the string for every string map entry use a simple macro. | |||||
* | implement the remaining css 3.1 simple predefined counter styles | Vincent Sanders | 2021-02-12 | 7 | -6/+389 | |
| | ||||||
* | implement the firt half of the css 3.1 simple predefined counter styles | Vincent Sanders | 2021-02-09 | 7 | -99/+337 | |
| | ||||||
* | Use two more bits, six total, for the list style property | Vincent Sanders | 2021-02-09 | 5 | -546/+546 | |
| | | | | | | Adding the two bits that were previously reserved (Must Be Zero) for use in the list style property gives space for sixty four styles instead of sixteen. | |||||
* | add cyclic system to list style formatting | Vincent Sanders | 2021-02-08 | 1 | -2/+75 | |
| | ||||||
* | make roman numeral list style obey range limit and fix decimal fallback | Vincent Sanders | 2021-02-06 | 1 | -15/+31 | |
| | ||||||
* | make list stle structures const and fix initialisation for older compilers | Vincent Sanders | 2021-02-06 | 1 | -22/+25 | |
| | ||||||
* | add text formatting of values with list styles | Vincent Sanders | 2021-02-05 | 3 | -2/+567 | |
| | ||||||
* | select: Split out bytecode to unit conversion helper. | Michael Drake | 2020-12-04 | 4 | -43/+54 | |
| | ||||||
* | select: mq: Fix to convert parse unit types to public unit types. | Michael Drake | 2020-12-01 | 1 | -4/+9 | |
| | ||||||
* | parse: properties: Add property-specific unit class masks. | Michael Drake | 2020-11-15 | 4 | -22/+270 | |
| | | | | | | | | | There's a table we can index into for calc(): const uint32_t property_unit_mask[CSS_N_PROPERTIES] And there are #defines for where the code is already property-specific, avoiding the lookup. | |||||
* | parse: properties.gen: Convert to using unit allow masks. | Michael Drake | 2020-11-15 | 1 | -21/+21 | |
| | ||||||
* | bytecode: Change unit representation, so that length has a bit set. | Michael Drake | 2020-11-15 | 3 | -148/+150 | |
| | | | | This means that we can use a mask to check the unit class. | |||||
* | select: computed: Squash use of uninitialised variable warning. | Michael Drake | 2020-11-13 | 1 | -1/+1 | |
| | ||||||
* | Update component version to 0.9.1 for releaserelease/0.9.1 | Vincent Sanders | 2020-05-24 | 1 | -2/+2 | |
| | | | | Signed-off-by: Vincent Sanders <vince@kyllikki.org> | |||||
* | Computed styles: Check length pair getter type before using result. | Michael Drake | 2020-02-24 | 1 | -0/+4 | |
| | | | | Fixes use of garbage value scan-build issue. | |||||
* | Computed styles: Handle invalid width types. | Michael Drake | 2020-02-24 | 1 | -0/+2 | |
| | | | | Fixes scan-build use of garbage value. | |||||
* | Parse: Add missing error checks for outline shorthand. | Michael Drake | 2020-02-24 | 1 | -3/+12 | |
| | | | | | | Fixes scan-build: Value stored to 'error' is never read. Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | |||||
* | Parse: Add missing error checks for list-style shorthand. | Michael Drake | 2020-02-24 | 1 | -3/+12 | |
| | | | | | | Fixes scan-build: Value stored to 'error' is never read. Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | |||||
* | Parse: Add missing error checks for flex-flow shorthand. | Michael Drake | 2020-02-24 | 1 | -2/+8 | |
| | | | | | | Fixes scan-build: Value stored to 'error' is never read. Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | |||||
* | Media queries: Don't set parts before allocation has failed. | Michael Drake | 2020-02-24 | 1 | -1/+1 | |
| | | | | | | | Squashes scan-build error about dereference of parts if the allocation fails. Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | |||||
* | tests: Add test for dodgy media block | Daniel Silverstone | 2019-12-01 | 2 | -0/+10 | |
| | | | | | | | To ensure we don't regress and fail on media blocks which end with selectors with no ruleset, add a test to that effect. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | |||||
* | Add end-block-content parse event | Daniel Silverstone | 2019-12-01 | 3 | -1/+40 | |
| | | | | | | | | | | | | | | | In order to cope with a situation where a block ends with a selector which has no ruleset, add an end-block-content event and in handling it, pop any intermediate states off the language stack so that we're in block mode by the time the event is completed. This fixes an assert situation caused by a ruleset such as: @media screen { dodgy } .outer { top: 10px; } Which has been encountered in the wild (likely a typo). Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | |||||
* | Select hash: Simplify insertion at start of non-empty list. | Michael Drake | 2019-08-01 | 1 | -11/+10 | |
| | | | | This might help Coverity understand what's going on. |