1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Userland/Libraries/LibWeb
Tobias Christiansen 1496ad0605 LibWeb: Flexbox: Catch zero flex-basis and use width instead
A flex-basis of zero doesn't actually mean that the preferred size of
the particular Box is 0. It means that the Box should take the least
amount of space possible while still accomodating the content inside.

We catch and circumvent this now right when the flex-basis property gets
read for the FlexFormattingContext.

This isn't mentioned anywhere in the seemingly relevant portions of the
spec, however thanks to this answer https://stackoverflow.com/a/47579078
(which is not entirely correct about width either) lead to the behavior
that is wanted and used by other Browsers.
2021-10-01 20:16:58 +02:00
..
Bindings LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValues 2021-09-30 20:02:09 +02: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 media queries! :^) 2021-10-01 20:03:03 +02:00
DOM LibWeb: Create real Keybord & Message events in Document::create_event 2021-10-01 20:14:45 +02:00
DOMParsing LibWeb: Rename HTMLDocumentParser => HTMLParser 2021-09-25 23:36:43 +02:00
DumpLayoutTree LibWeb+WebContent: Port DumpLayoutTree to OutOfProcessWebView 2021-09-08 11:07:14 +02:00
Geometry LibWeb: Add DOMRect and Element.getBoundingClientRect() 2021-09-27 01:01:29 +02:00
HighResolutionTime LibWeb: Provide a default DOM::EventTarget::dispatch_event() 2021-09-25 23:36:43 +02:00
HTML LibWeb: Add the missing PageTransitionEvent IDL constructor 2021-10-01 20:14:45 +02:00
Layout LibWeb: Flexbox: Catch zero flex-basis and use width instead 2021-10-01 20:16:58 +02:00
Loader LibWeb: Make CSSRule and CSSRuleList available to JavaScript :^) 2021-09-29 21:21:57 +02:00
NavigationTiming Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Page LibWeb: Dispatch keydown/keyup events on the appropriate target 2021-10-01 20:14:45 +02:00
Painting Libraries: Fix typos 2021-10-01 01:06:40 +01:00
RequestIdleCallback LibWeb: Add the IdleDeadline interface from the RequestIdleCallback spec 2021-09-17 13:20:18 +02:00
Scripts Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVG LibWeb: Make SVG <path> tolerate relative first path coordinates 2021-09-27 18:29:10 +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: Make URLSearchParams iterable 2021-09-28 16:51:27 +02:00
WebAssembly LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValues 2021-09-30 20:02:09 +02:00
XHR LibWeb: Add the missing ProgressEvent IDL constructor 2021-10-01 20:14:45 +02:00
CMakeLists.txt LibWeb: Add the missing SubmitEvent IDL constructor 2021-10-01 20:14:45 +02:00
DOMTreeModel.cpp LibWeb: Implement DOMTreeModel::index_for_node() 2021-09-02 22:16:41 +02:00
DOMTreeModel.h LibWeb: Implement DOMTreeModel::index_for_node() 2021-09-02 22:16:41 +02:00
Dump.cpp LibWeb: Add CSSMediaRule 2021-10-01 20:03:03 +02:00
Dump.h LibWeb: Add CSSMediaRule 2021-10-01 20:03:03 +02:00
FontCache.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FontCache.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Forward.h LibWeb: Add CSSMediaRule 2021-10-01 20:03:03 +02:00
InProcessWebView.cpp LibWeb: Rename HTMLDocumentParser => HTMLParser 2021-09-25 23:36:43 +02:00
InProcessWebView.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
Namespace.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Namespace.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Origin.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
OutOfProcessWebView.cpp LibWeb: Fire "keyup" events as well :^) 2021-09-28 16:56:24 +02:00
OutOfProcessWebView.h LibWeb: Fire "keyup" events as well :^) 2021-09-28 16:56:24 +02: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: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +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 the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00