mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 02:30:25 +03:00
Fix nested float propagation in rich text layout
Propagate descendant float exclusions through non-BFC HTML containers so floats participate in their nearest block formatting context. Finalize line geometry before translating propagated exclusions, track finalized lines incrementally, and search successive float bands when a fixed-width inline-block does not fit beside active floats. Recognize inline-block elements as block formatting contexts while preserving their fixed width. Reuse persistent float-exclusion storage across relayouts to avoid repeated allocations. Add SS64 regressions covering narrow viewports, HiDPI rendering, stacked floats, anchor sizing, SVG sizing, and footer overlap. Fixed `cursor: pointer`, `pointer` was not registered.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <eepp/ui/uiscenenode.hpp>
|
||||
#include <eepp/ui/uithememanager.hpp>
|
||||
#include <eepp/ui/uiwidget.hpp>
|
||||
#include <eepp/window/cursor.hpp>
|
||||
#include <eepp/window/engine.hpp>
|
||||
#include <eepp/window/input.hpp>
|
||||
|
||||
@@ -19,6 +20,11 @@ using namespace EE::Window;
|
||||
using namespace EE::Scene;
|
||||
using namespace EE::UI;
|
||||
|
||||
UTEST( UISceneNode, CssPointerCursorUsesHandCursor ) {
|
||||
EXPECT_EQ( Cursor::fromName( "pointer" ), Cursor::Hand );
|
||||
EXPECT_EQ( Cursor::fromName( "POINTER" ), Cursor::Hand );
|
||||
}
|
||||
|
||||
static UISceneNode* init_test_scene_node() {
|
||||
FileSystem::changeWorkingDirectory( Sys::getProcessPath() );
|
||||
FontTrueType* font = FontTrueType::New( "NotoSans-Regular" ).get();
|
||||
|
||||
Reference in New Issue
Block a user