Skip to content

Commit ffc0fce

Browse files
committed
Enable content-visibility:auto for certain elements
1 parent 95f3214 commit ffc0fce

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-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/style/Textpattern/sass/modules/_layout.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ noscript {
9090
.wrapper-footer {
9191
flex: 1;
9292
padding-bottom: 0.5em;
93+
content-visibility: auto;
94+
contains-intrinsic-size: 0 320px;
9395
}
9496

9597
/**

src/style/Textpattern/sass/modules/_responsive.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
* Changes in styling for site footer.
139139
*/
140140

141+
.wrapper-footer {
142+
contains-intrinsic-size: 0 374px;
143+
}
144+
141145
.community-details,
142146
.host-details {
143147
display: block;

0 commit comments

Comments
 (0)