summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/ComputedValues.h
AgeCommit message (Collapse)Author
2021-11-17LibWeb: Store all background properties in BackgroundLayerDataSam Atkins
All of this is now passed along to `paint_background()`. :^) (As always, "all" excludes the background-color since that's not a layer property.)
2021-11-17LibWeb: Remove background-repeat/image fields and gettersSam Atkins
These aren't needed now that we render using background_layers instead. The one casualty is the resolved style for background-repeat, but that was incorrect anyway.
2021-11-17LibWeb: Store background layers in ComputedValuesSam Atkins
Instead of storing these as individual `background-foo` properties, we combine them together into layers, since that is how they will be painted. It also makes it more convenient to pass them around.
2021-11-10LibWeb: Combine background-repeat-x/y pseudo-propertiesSam Atkins
While right now this doesn't save much complexity, it will do once we care about multiple background layers per node. Then, having a single repeat value per layer will simplify things. It also means we can remove the pseudo-property concept entirely! :^)
2021-10-29LibWeb: Remove extraneous semi-colonTimothy Flynn
2021-10-19LibWeb: Use the correct initial value for the CSS 'align-items' propertyAndreas Kling
2021-10-19LibWeb: Make computed opacity always availableAndreas Kling
No need to store opacity as Optional<float> as there's always a value (and the default initial value is 1.)
2021-10-19LibWeb: Make computed flex-grow and flex-shrink always availableAndreas Kling
These values are not allowed to be absent (auto/none/etc) so we don't need to use Optional<float> for them. This simplifies some things.
2021-10-13LibWeb: Add CSS::FlexBasisData::is_definite()Andreas Kling
This will allow some more expressive code in FlexFormattingContext.
2021-10-09LibWeb: Add initial version of pointer-events CSS propertyhuwdp
2021-10-06LibWeb: Start work towards modern CSS "display" valuesAndreas Kling
Until now, we've internally thought of the CSS "display" property as a single-value property. In practice, "display" is a much more complex property that comes in a number of configurations. The most interesting one is the two-part format that describes the outside and inside behavior of a box. Switching our own internal representation towards this model will allow for much cleaner abstractions around layout and the various formatting contexts. Note that we don't *parse* two-part "display" yet, this is only about changing the internal representation of the property. Spec: https://drafts.csswg.org/css-display
2021-10-05LibWeb: Make things aware of box-sizingSam Atkins
Of course, we don't actually *use* the box-sizing property yet, but the value is applied and shows up in the computed style.
2021-09-18LibWeb: Add transform property to the systemTobias Christiansen
This patch adds parsing support as well as all the needed stuctures all over LibWeb to pass Transformations around.
2021-09-17LibWeb: Make ComputedValues return larger items by const referenceAndreas Kling
2021-09-16LibWeb: Flexbox: Add default value for AlignItemsTobias Christiansen
Previously there was no default value and wrapping broke when the container didn't have a align-items specified.
2021-09-16LibWeb: Add for CSS `fill/stroke/stroke-color` properties for SVGSam Atkins
In the spec, `fill` and `stroke` are supposed to be a shorthands for various properties. But since the spec is still a working draft, and neither Firefox or Chrome support the `fill-color` or `stroke-color` properties, we'll stick with `fill` and `stroke` as simple colors for now. Also, note that SVG expects things in "user units", and we are assuming that 1px = 1 user unit for now.
2021-09-15LibWeb: Add proper parsing of the AlignItems propertyTobias Christiansen
This teaches all the relevant places about 'align-items'.
2021-08-07LibWeb: Add auto as a recognized argument of flex-basisTobias Christiansen
There isn't actually any special treatment of this over 'content' in the FlexFormattingContext, for now both are treated the same. This fixes #9225
2021-07-24LibWeb: Make box-shadow known throughout the CSS subsystemTobias Christiansen
This patch spreads box-shadows around: - The Values important to box-shadows are stored in a BoxShadowData struct - StyleProperties knows how to construct such a struct from a BoxShadowStyleValue and a Node knows how to ask for it - CalculatedValues contain BoxShadowData and expose them
2021-07-24LibWeb: Parse and store the opacity propertyEgor Ananyin
2021-07-19LibWeb: Add parsing for the justify-content propertyTobias Christiansen
2021-06-06LibWeb: Add flex-grow and flex-shrinkTobias Christiansen
They get parsed and are available to the programmer of Layouts :^)
2021-06-06LibWeb: Parse flex-basisTobias Christiansen
Flex-basis accepts either 'content' or a Length.
2021-06-06LibWeb: Add parsing for flex-wrap propertyTobias Christiansen
2021-05-20LibWeb: Make border-radius attibutes accessibleTobias Christiansen
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-05LibWeb: Support two-value background-repeatTimothy Flynn
The background-repeat value may be specified as either one- or two-value identifiers (to be interpreted as horizontal and vertical repeat). This adds two pseudo-properties, background-repeat-x and background-repeat-y, to handle this. One-value identifiers are mapped to two-value in accordance with the spec.
2021-04-03LibWeb: Store computed CSS value of background-repeatTimothy Flynn
2021-02-28LibWeb: Parese the CSS "cursor" propertyAdam Hodgen
2021-02-22LibWeb: Add parsing and application of CSS "overflow" propertyAndreas Kling
We don't actually do anything with the values yet, but now they are available for layout nodes once we are ready to implement them.
2021-01-18LibWeb: Parse the CSS "flex-direction" propertyAndreas Kling
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling