Skip to content

Conversation

@pecoram
Copy link
Contributor

@pecoram pecoram commented Dec 5, 2025

  • Adjust the width and height properties to return 'auto' instead of '1px' for zero values.
  • Update the inspector's text handling to use visibility instead of color for inspector text visible during color transitions.

export type { Inspector } from '../src/main-api/Inspector.js';
export type { CoreNodeRenderState } from '../src/core/CoreNode.js';

export type { CoreRenderer } from '../src/core/renderers/CoreRenderer.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this export....

export type {
AnimationSettings,
CoreAnimation,
} from '../src/core/animations/CoreAnimation.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this export...

if (h === 0) {
// Set to 1px instead of 0px so visibility checks (e.g. Playwright) keep treating the node as visible
return { prop: 'height', value: '1px' };
return { prop: 'height', value: 'auto' };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will auto still ensure its visible? even if it has no width set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants