Skip to content

Commit b550a98

Browse files
committed
Enable content-visibility:auto for certain elements
1 parent 56d3cd5 commit b550a98

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.stylelintrc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,11 @@ rules:
390390
property-case: lower
391391

392392
# Disallow unknown properties.
393-
property-no-unknown: true
393+
property-no-unknown:
394+
- true
395+
-
396+
ignoreProperties:
397+
- contains-intrinsic-size
394398

395399
# Disallow vendor prefixes for properties.
396400
property-no-vendor-prefix:

src/assets/sass/modules/_layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ noscript {
110110
.wrapper-footer {
111111
flex: 1;
112112
padding-bottom: 0.5em;
113+
content-visibility: auto;
114+
contains-intrinsic-size: 0 374px;
113115
}
114116

115117
/**
@@ -289,6 +291,8 @@ section {
289291
.wrapper-inner {
290292
position: relative;
291293
padding: 1em 0;
294+
content-visibility: auto;
295+
contains-intrinsic-size: 0 500px;
292296
}
293297

294298
.zebra {

0 commit comments

Comments
 (0)