Skip to content

Commit

Permalink
Add list containment rules
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Oct 10, 2017
1 parent 42ae3c0 commit 4a8adfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/stylesheets/components/item/_table.scss
Expand Up @@ -167,7 +167,7 @@
width: 100%;
table-layout: fixed;
border-collapse: collapse;
contain: layout style;
contain: content;
will-change: transform;
}

Expand Down
6 changes: 6 additions & 0 deletions src/stylesheets/components/photo/_list.scss
Expand Up @@ -17,13 +17,19 @@
contain: strict;
}

.viewport {
contain: content;
will-change: transform;
}

.photo {
align-items: center;
position: relative;

&.active {
.photo-container {
@extend %list-active;
contain: strict;

@at-root #{
selector-replace(&, ".photo.list",
Expand Down

0 comments on commit 4a8adfe

Please sign in to comment.