Sam Atkins
9b9b5fef6d
LibWeb/CSS: Parse font-[feature,variation]-settings descriptors
...
(cherry picked from commit e43f3e4808b0775dfcd8ef9d7218d87e6f617d21)
2024-10-26 09:29:16 -04:00
Sam Atkins
a6b7c0eefb
LibWeb/CSS: Parse the font-language-override descriptor
...
(cherry picked from commit 20af2eb2b0d196b464db536222d8b9f0df75a79d)
2024-10-21 09:36:47 -04:00
Sam Atkins
6936b2c3e6
LibWeb/CSS: Parse font-width descriptor and its font-stretch alias
...
(cherry picked from commit b1870e70298b9d5933fd4cee4fc6d947b8198d98)
2024-10-21 09:36:47 -04:00
Sam Atkins
a627165df9
LibWeb/CSS: Make font-stretch a legacy alias for new font-width
...
CSS Fonts level 4 renames font-stretch to font-width, with font-stretch
being left as a legacy alias. Unfortunately the other specs have not yet
been updated, so both terms are used in different places.
(cherry picked from commit 4a67b28600437901e6d8a366c56a5ddd8665deb1)
2024-10-21 09:36:47 -04:00
Sam Atkins
5606a54a22
LibWeb/CSS: Parse font-named-instance descriptor
...
(cherry picked from commit 7c50a31402c0240ccd19658284dec48ff876fc17)
2024-10-21 09:36:47 -04:00
Sam Atkins
85b5d7b93e
LibWeb/CSS: Parse font-display descriptor
...
(cherry picked from commit 3eb6d510fd0c7d4b6b21b64ac36a06571ea1fd9f)
2024-10-21 09:36:47 -04:00
Sam Atkins
272c1c64cb
LibWeb: Parse ascent-, descent-, and line-gap-override descriptors
...
(cherry picked from commit 2f7d18865dc509a0d7c9e1c751266ede92f58ca6)
2024-10-21 09:36:47 -04:00
Sam Atkins
a4981ae745
LibWeb: Rename StyleValue -> CSSStyleValue
...
This matches the name in the CSS Typed OM spec.
https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue
No behaviour changes.
(cherry picked from commit 0e3487b9ab455a7648185995363bb3b487551d40)
2024-10-10 10:08:59 -04:00
Sam Atkins
c90492a50c
LibWeb/CSS: Make CSS Parser::create() infallible
...
Now that `Tokenizer::tokenize()` just returns a String, there are no
errors to propagate, and we can simplify the user code a bit.
(cherry picked from commit 59778d2b365476ecb5b50218dae4457493ee7bf7)
2024-07-28 16:44:00 -04:00
Daniel Bertalan
8d2a8dbb8b
Everywhere: Write dtors for types with incomplete members out-of-line
...
These are rejected by Clang (19) trunk as a result of
https://github.com/llvm/llvm-project/pull/77753 .
(cherry picked from commit bf1f631f257e90e91b0b45a6454d731b4b98914c)
2024-06-25 17:42:49 +02:00
Andrew Kaster
28f728dfdb
LibWeb: Implement FontFace.load() for url() based font sources
2024-05-16 08:02:43 +02:00
Andrew Kaster
60b3436ea3
LibWeb: Support loading FontFaces constructed with binary data
2024-05-14 12:31:10 -06:00
Andrew Kaster
2bc51f08d9
LibWeb: Implement or stub FontFace interface's attribute getters/setters
...
We only support parsing half of these, so the ones we don't recognize
get a friendly exception thrown.
2024-05-11 07:30:29 +01:00
Andrew Kaster
2c31d7dddc
LibWeb: Add stub implementation of CSS FontFace Web API
2024-05-08 10:39:16 +02:00
Andrew Kaster
3a5eabc43b
LibWeb: Rename CSS::FontFace to CSS::ParsedFontFace
...
This implementation detail of CSSFontFaceRule is hogging the name of a
Web API from CSS Font Loading Module Level 3.
2024-05-08 10:39:16 +02:00
Aliaksandr Kalenik
f50bf00814
LibWeb+LibGfx: Move UnicodeRange from LibWeb to LibGfx
...
In upcoming changes UnicodeRange is going to be used in LibGfx in
a class that represents font cascade list.
2023-12-10 17:32:04 +01:00
Andreas Kling
74bdbdf43f
LibWeb: Parse font-weight and font-style inside @font-face rules
2023-05-24 17:19:18 +02:00
Sam Atkins
c2f0b20d6b
LibWeb: Port FontFace to new Strings
2023-02-19 00:51:16 +01:00
Timothy Flynn
f3db548a3d
AK+Everywhere: Rename FlyString to DeprecatedFlyString
...
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so
let's rename it to A) match the name of DeprecatedString, B) write a new
FlyString class that is tied to String.
2023-01-09 23:00:24 +00:00
Sam Atkins
dbbd6d3508
LibWeb: Parse @font-face unicode-range descriptor
2022-04-07 21:20:14 +02:00
Sam Atkins
804b8c85e8
LibWeb: Implement initial CSSFontFaceRule and FontFace classes
...
For now, this is the bare minimum that's needed: font-family and src.
2022-03-28 22:25:25 +02:00