InvalidUsernameException
add3a095d8
LibWeb/CSS: Rename background-repeat related symbols to align with spec
...
These will be used for the mask-repeat property as well in an upcoming
commit, hence the more generic names. Also, this more closely matches
the names used in the spec.
2025-08-06 23:09:07 +01:00
Tim Ledbetter
9cf04f40f6
LibWeb: Implement the color-mix() function
...
This takes 2 color values and returns the result of mixing them by a
given amount.
2025-04-22 12:19:51 +02:00
Tim Ledbetter
02d34dd021
LibWeb: Rename CSSColor to ColorFunctionStyleValue
...
This gives a better idea of what the class represents.
2025-04-09 12:11:33 +01:00
Sam Atkins
b3b9eea986
LibWeb/CSS: Merge RotationStyleValue into TransformationStyleValue
...
Same again, although rotation is more complicated: `rotate`
is "equivalent to" multiple different transform function depending on
its arguments. So we can parse as one of those instead of the full
`rotate3d()`, but then need to handle this when serializing.
2025-01-17 10:12:39 +01:00
Sam Atkins
69a0f28d04
Revert "LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue"
...
This reverts commit 76daba3069 .
We're going to need separate types for the JS-exposed style values, so
it doesn't make sense for us to match their names with our internal
types.
2024-12-21 18:14:28 +01:00
stelar7
488436fb54
LibWeb: Parse the rotate css property
2024-10-29 14:40:40 +00:00
Lucas CHOLLET
e8fc731b8c
LibWeb/CSS: Introduce a base class for LCH-based color values
...
This will be used by both CSSLCH and CSSOKLCH.
2024-10-28 23:26:19 +01:00
Lucas CHOLLET
48bbebc636
LibWeb/CSS: Start parsing the color() function
...
This is really bare bone as we only support the `xyz-d50` color space
for the moment.
It makes us pass the following WPT tests:
- css/css-color/predefined-016.html
- css/css-color/xyz-d50-001.html
- css/css-color/xyz-d50-002.html
2024-10-28 22:55:57 +01:00
Lucas CHOLLET
8efa046e0c
LibWeb/CSS: Make CSSOKLab inherit from a new CSSLabLike class
...
This class provides the common base for both CSSOKLab and the future
CSSLab classes.
2024-10-27 10:20:03 +01:00
Andrew Kaster
be13a0ec3f
Meta: Port changes to gn build
...
8b3a5d0b96
99ef078c97
dc401f49ea
d30ae92b82
c22a2d8f2b
6cf7d07a98
0c98c7637e
00487a7b25
1db243c006
2024-10-09 06:43:31 -04:00
Andrew Kaster
7880b2fba9
Meta: Update LibWeb to build again with gn
2024-09-27 10:15:08 -06:00
Sam Atkins
76daba3069
LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue
...
This matches the name in the CSS Typed OM spec. There's quite a lot
still to do to make it match the spec behavior, but this is the first
step.
2024-09-18 20:38:41 +01:00
Sam Atkins
3af6a69f1e
LibWeb: Introduce color-function-specific style values
...
Instead of CSSColorValue holding a Gfx::Color, make it an abstract class
with subclasses for each different color function, to match the Typed-OM
spec. This means moving the color calculations from the parsing code to
the `to_color()` method on the style value.
This lets us have calc() inside a color function, instead of having to
fully resolve the color at parse time. The canvas fillStyle tests have
been updated to reflect this.
The other test change is Screenshot/css-color-functions.html: previously
we produced slightly different colors for an alpha of 0.5 and one of
50%, and this incorrect behavior was baked into the test. So now it's
more correct. :^)
2024-08-21 10:51:48 +01:00
Sam Atkins
581d00293c
LibWeb: Rename ColorStyleValue -> CSSColorValue
...
This matches the name in the CSS Typed OM spec.
https://drafts.css-houdini.org/css-typed-om-1/#csscolorvalue
This is not (yet) the same as the CSSColorValue, but one step at a time.
2024-08-21 10:51:48 +01:00
Sam Atkins
9559f0f123
LibWeb: Rename IdentifierStyleValue -> CSSKeywordValue
...
This matches the name in the CSS Typed OM spec.
https://drafts.css-houdini.org/css-typed-om-1/#csskeywordvalue
2024-08-15 13:58:38 +01:00
Timothy Flynn
a38144fb2a
Meta: Port recent changes to the GN build
...
5f17d9b34a
2024-05-26 18:29:24 +02:00
Timothy Flynn
0df7f5bcfc
Meta: Port recent changes to the GN build
...
5dce559ed8
c1b5fe61d1
2024-03-30 07:35:30 +01:00
Sam Atkins
aea112da71
LibWeb: Replace OverflowStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
e905072e47
LibWeb: Replace GridTrackPlacementShorthandStyleValue with ShorthandSV
2023-09-25 00:46:21 +01:00
Sam Atkins
8efac89a16
LibWeb: Replace TextDecorationStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
6e311902de
LibWeb: Replace PlaceItemsStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
8143d48161
LibWeb: Replace PlaceSelfStyleValue with ShorthandStyleValue
...
Turns out we were parsing `place-self` as a PlaceItemsStyleValue
sometimes, whoops.
2023-09-25 00:46:21 +01:00
Sam Atkins
1b0939b418
LibWeb: Replace PlaceContentStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
6758decc74
LibWeb: Replace ListStyleStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
f5cb2e8dc2
LibWeb: Replace GridTrackSizeListShorthandStyleValue with ShorthandSV
2023-09-25 00:46:21 +01:00
Sam Atkins
48f3603119
LibWeb: Replace GridAreaShorthandStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
23d59a6caf
LibWeb: Replace BorderStyleValue with ShorthandStyleValue
...
And also expand builtin values to the longhands, which we weren't doing
before.
2023-09-25 00:46:21 +01:00
Sam Atkins
9b4ddff6a9
LibWeb: Replace FontStyleValue with ShorthandStyleValue
...
Also, actually include font-variant since we were already parsing it but
throwing it away.
2023-09-20 12:17:16 +01:00
Sam Atkins
34591549b1
LibWeb: Replace BorderRadiusShorthandStyleValue with ShorthandStyleValue
2023-09-20 12:17:16 +01:00
Sam Atkins
34e0899ab0
LibWeb: Replace BackgroundStyleValue with ShorthandStyleValue
...
The `to_string()` for this is modified a little from the original,
because we have to calculate what the layer-count is then, instead of
having it already calculated.
2023-09-20 12:17:16 +01:00
Sam Atkins
1ae515c0b7
LibWeb: Replace FlexFlowStyleValue with ShorthandStyleValue
2023-09-20 12:17:16 +01:00
Sam Atkins
aa45b3dfe3
LibWeb: Replace FlexStyleValue with ShorthandStyleValue
...
We still need the custom parsing and to_string() logic, but nothing
else. :^)
2023-09-20 12:17:16 +01:00
Sam Atkins
d20254f1bc
LibWeb: Rename CompositeStyleValue -> ShorthandStyleValue
...
It's a shorthand, so let's call it that. :^)
2023-09-20 12:17:16 +01:00
Karol Kosek
1681d6f721
Meta: Port recent build changes to gn build
...
This ports the following commits:
6476dea898
153ae93f9c
45b36bd08a
7870f10aa8
139c575cc9
63d09f6daf
1b3ad1c721
77d32fcb5f
2023-09-18 11:09:48 -06:00
Sebastian Zaha
967cb86c5b
Meta: Port recent build changes to gn build
...
This ports the following commits:
848ec538c6
703c2bb06e
27dd2a40ad
daefe744ba
9812031a02
4c0816b002
8bb275f2ea
3f122b7335
2023-08-29 09:37:52 +02:00
Sebastian Zaha
b4df4d66dc
Meta: Port recent build changes to gn build
...
This ports the following commits:
f76c614a84
ddbe6bd7b4
2eaa528a0e
1b40bf9783
9f6ceff7cf
52d6df5ee5
9e22f01eba
bf4e2f3e9c
da2cd73bcf
2023-08-19 20:09:26 -06:00
Sebastian Zaha
7696738140
Meta: Port recent LibWeb and LibJS changes to gn build
...
This ports the following commits:
a8587fe54e
9d7215c636
2023-07-20 06:48:13 +01:00
Andrew Kaster
2f16aa45b7
Meta: Port dd073b2711 to gn build
2023-07-13 14:07:25 -06:00
Andrew Kaster
85c8cd5205
Meta: Add gn build rules for LibWeb
2023-07-09 16:22:58 -06:00