Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Nov 4, 2020

Description

Even if <canvas> sets style.display to inline by default, setting it to block is more suitable for the common usage of the library and frees the developer of having to understand these CSS details.

@mrdoob mrdoob added this to the r123 milestone Nov 4, 2020
@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 4, 2020

Since I always set this style manually, I'm happy if the engine does it by default 👍 .

Maybe also include a default for the outline style in this change? Any maybe doing this for all renderers?

@mrdoob
Copy link
Owner Author

mrdoob commented Nov 4, 2020

Maybe also include a default for the outline style in this change?

Yep! I was going to do the outline in the next PR.

Any maybe doing this for all renderers?

Yep!

@mrdoob mrdoob merged commit 4e17099 into dev Nov 4, 2020
@mrdoob mrdoob deleted the canvas branch November 4, 2020 13:02
@mrdoob
Copy link
Owner Author

mrdoob commented Nov 4, 2020

Actually...

After doing some research, I don't think setting outline to none is the right thing to do.

I think this is the real issue:

// make sure element can receive keys.
if ( scope.domElement.tabIndex === - 1 ) {
scope.domElement.tabIndex = 0;
}

@mrdoob
Copy link
Owner Author

mrdoob commented Nov 4, 2020

#20617

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.

3 participants