Andreas Kling
243e9a8b4a
LibWeb: Correct CSS initial values for min-width and min-height
...
The initial value for these is auto, not 0.
2021-08-26 13:25:52 +02:00
Sam Atkins
543550d1df
LibWeb: Quote all initial values in Properties.json
...
This is in preparation for parsing these into StyleValues automatically.
Having them all be Strings makes the generation code simpler.
2021-08-25 12:14:34 +02:00
Sam Atkins
0fba71a655
LibWeb: Replace is_inherited_property() with generated code
...
We already include the inheritance for each property in Properties.json,
so made sense to use that instead of a list in StyleResolver.
Added `inherited: true` to a couple of properties to match the previous
code's behavior. One of those had a FIXME which I've moved to the JSON
file, which is hacky, but it works.
2021-08-16 23:26:16 +02:00
Sam Atkins
ab57d7b408
LibWeb: Correct initial values for flex CSS properties
...
`flex-basis` and `flex-shrink` had different default values than are
dictated in the spec.
2021-08-14 12:45:01 +02:00
Tobias Christiansen
36e6f559c5
LibWeb: Add box-shadow as a known ValueID
2021-07-24 22:16:48 +02:00
Egor Ananyin
0e6ba6e1d3
LibWeb: Parse and store the opacity property
2021-07-24 22:02:28 +04:30
Tobias Christiansen
80a44c3891
LibWeb: Add parsing for the justify-content property
2021-07-19 18:47:09 +04:30
Tobias Christiansen
ce7c8e215f
LibWeb: Parse and resolve flex: shorthand
2021-06-06 01:46:06 +04:30
Tobias Christiansen
ae61e9ded2
LibWeb: Add flex-grow and flex-shrink
...
They get parsed and are available to the programmer of Layouts :^)
2021-06-06 01:46:06 +04:30
Tobias Christiansen
ae3e6510d6
LibWeb: Parse flex-basis
...
Flex-basis accepts either 'content' or a Length.
2021-06-06 01:46:06 +04:30
Tobias Christiansen
ead864acf3
LibWeb: Parse and resolve flex-flow property
2021-06-06 01:46:06 +04:30
Tobias Christiansen
e6545d5259
LibWeb: Add parsing for flex-wrap property
2021-06-06 01:46:06 +04:30
Tobias Christiansen
0c261a1c95
LibWeb: Add border-radius to the CSS-parser
...
And resolve the shorthands.
2021-05-20 22:08:02 +02:00
Egor Ananyin
fe544feb17
LibWeb: Start parsing font property
2021-04-13 22:04:25 +02:00
Timothy Flynn
5de0e0068c
LibWeb: Support two-value background-repeat
...
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-05 18:49:04 +02:00
Andreas Kling
21371bf6ee
LibWeb: Add parsing and application of CSS "overflow" property
...
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-02-22 15:21:42 +01:00
Andreas Kling
149f10b0b9
LibWeb: Parse the CSS "flex-direction" property
2021-01-18 20:20:16 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00