Skip to content

Commit

Permalink
Use contain:strict
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchuan committed Jan 24, 2024
1 parent 640d34f commit 50149f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/component.js
Expand Up @@ -552,16 +552,15 @@ export function define(name, element) {
function get_basic_styles(grid) {
let { x, y } = grid || {};
return `
*,*::after,*::before {
*,*::after,*::before,:host,.host {
box-sizing: border-box;
}
:host,.host {
display: block;
visibility: visible;
width: auto;
height: auto;
contain: content;
box-sizing: border-box;
contain: strict;
--${utime.name}: 0
}
:host([hidden]),[hidden] {
Expand Down

0 comments on commit 50149f3

Please sign in to comment.