1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00
serenity/Userland/Libraries/LibWeb
Sam Atkins 988a8ed3d8 LibWeb: Parse CSS background-position property
This is done a bit differently from other properties: using a
TokenStream instead of just a Vector of ComponentValues. The reason for
this is, we can then use call the same function when parsing the
`background` shorthand. Otherwise, we would have to know in advance how
many values to pass down, which basically would involve duplicating the
`background-position` parsing code inside `background`.

The StyleValue is PositionStyleValue, since it represents a
`<position>`: https://www.w3.org/TR/css-values-4/#typedef-position
Unfortunately, background-position's parsing is a bit different from
`<position>`'s, (background-position allows 3-value syntax and
`<position>` doesn't) so we'll need to come back and write a different
parsing function for that later.
2021-11-10 14:38:49 +01:00
..
Bindings LibWeb: Convert throw_dom_exception_if_needed() to ThrowCompletionOr 2021-10-31 18:51:07 +01:00
Cookie Everywhere: Make use of container version of all_of 2021-08-03 10:46:43 +02:00
Crypto LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValues 2021-09-30 20:02:09 +02:00
CSS LibWeb: Parse CSS background-position property 2021-11-10 14:38:49 +01:00
DOM LibWeb: Change Document.{hidden,visibilityState} spec links to HTML 2021-11-03 17:48:05 +01:00
DOMParsing LibWeb: Clean up static function in header 2021-10-06 23:52:40 +01:00
DumpLayoutTree Everywhere: Remove unused ArgsParser header 2021-11-01 21:12:58 +01:00
Geometry LibWeb: Add DOMRectReadOnly and make DOMRect inherit from it 2021-10-08 23:00:49 +02:00
HighResolutionTime LibWeb: Provide a default DOM::EventTarget::dispatch_event() 2021-09-25 23:36:43 +02:00
HTML LibGfx: Use ErrorOr<T> for Bitmap::try_create() 2021-11-08 00:35:27 +01:00
IntersectionObserver LibWeb: Stub out a basic IntersectionObserver interface 2021-10-14 10:32:51 +02:00
Layout LibWeb: Size non-loaded <img> to fit the replacement (alt) text 2021-11-03 10:27:23 +01:00
Loader LibCore: Use ErrorOr<T> for Core::File::open() 2021-11-08 00:35:27 +01:00
NavigationTiming
Page LibWeb+WebContent: Add set_preferred_color_scheme IPC call 2021-10-31 18:39:13 +01:00
Painting LibGfx: Use ErrorOr<T> for Bitmap::try_create() 2021-11-08 00:35:27 +01:00
RequestIdleCallback LibWeb: Add the IdleDeadline interface from the RequestIdleCallback spec 2021-09-17 13:20:18 +02:00
ResizeObserver LibWeb: Stub out a basic ResizeObserver interface 2021-10-11 00:54:01 +02:00
Scripts
Selection LibWeb: Stub out a basic Selection interface 2021-10-11 00:32:19 +02:00
SVG LibWeb: Start work towards modern CSS "display" values 2021-10-06 19:12:52 +02:00
Tests LibWeb: Add support HTMLScriptElement.supports 2021-09-03 23:11:58 +02:00
UIEvents LibWeb: Change the type of MouseEvent members to double 2021-10-01 20:14:45 +02:00
URL LibWeb: Convert all generated bindings to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
WebAssembly LibWeb: Convert WebAssemblyTablePrototype funcs to ThrowCompletionOr 2021-10-31 18:20:37 +02:00
XHR LibWeb: Don't send a request body in XMLHttpRequest GET or HEAD 2021-10-04 00:06:48 +02:00
CMakeLists.txt LibWeb: Add Web::CSS::PreferredColorScheme enum 2021-10-31 18:39:13 +01:00
DOMTreeModel.cpp LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file() 2021-11-08 00:35:27 +01:00
DOMTreeModel.h LibWeb+Browser: Show DOM comments with syntax_comment color in inspector 2021-11-02 22:30:06 +01:00
Dump.cpp LibWeb: Include flex-direction in layout tree dumps 2021-10-21 16:48:24 +02:00
Dump.h LibWeb: Implement @supports rule :^) 2021-10-08 23:02:57 +02:00
FontCache.cpp
FontCache.h
Forward.h LibWeb: Parse CSS background-position property 2021-11-10 14:38:49 +01:00
InProcessWebView.cpp LibGfx: Use ErrorOr<T> for Bitmap infrastructure used by ShareableBitmap 2021-11-08 00:35:27 +01:00
InProcessWebView.h LibWeb+WebContent: Add set_preferred_color_scheme IPC call 2021-10-31 18:39:13 +01:00
Namespace.cpp
Namespace.h
Origin.h
OutOfProcessWebView.cpp LibGfx: Use ErrorOr<T> for Bitmap::try_create_shareable() 2021-11-08 00:35:27 +01:00
OutOfProcessWebView.h LibWeb+WebContent: Add set_preferred_color_scheme IPC call 2021-10-31 18:39:13 +01:00
QualifiedName.h LibWeb: Use HTML-uppercased qualified name for the Element node name 2021-05-04 23:24:03 +01:00
StylePropertiesModel.cpp Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StylePropertiesModel.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
TreeNode.h LibWeb: Allow Document::ref() when ref-count is zero 2021-10-03 16:42:34 +02:00
WebContentClient.cpp LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
WebContentClient.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
WebViewHooks.h LibWeb: Add missing headers 2021-10-06 23:52:40 +01:00