Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By clayfreeman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.9.x
Introduced in version:
8.9.15
Issue links:
Description:
Instead of resetting off-canvas styles by using an asterisk selector with negation to exclude elements that shouldn't be targeted, Drupal now explicitly lists the elements that should be reset.
Before:
#drupal-off-canvas *:not(div),
#drupal-off-canvas *:not(svg *),
#drupal-off-canvas *:after,
#drupal-off-canvas *:before {
all: initial;
box-sizing: border-box;
text-shadow: none;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: initial;
}
After:
#drupal-off-canvas {
& span,
& applet,
& object,
& iframe,
& h1,
& h2,
& h3,
& h4,
& h5,
& h6,
& p,
& blockquote,
& pre,
& a,
& abbr,
& acronym,
& address,
& big,
& button,
& cite,
& code,
& del,
& dfn,
& em,
& img,
& ins,
& kbd,
& q,
& s,
& samp,
& small,
& strike,
& strong,
& sub,
& sup,
& tt,
& var,
& b,
& u,
& i,
& center,
& dl,
& dt,
& dd,
& ol,
& ul,
& li,
& fieldset,
& form,
& label,
& legend,
& table,
& caption,
& tbody,
& tfoot,
& thead,
& tr,
& th,
& td,
& article,
& aside,
& canvas,
& details,
& embed,
& figure,
& figcaption,
& footer,
& header,
& hgroup,
& main,
& menu,
& meter,
& nav,
& output,
& progress,
& ruby,
& section,
& summary,
& time,
& mark,
& audio,
& video,
& input,
& select,
& textarea {
all: initial;
box-sizing: border-box;
text-shadow: none;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: initial;
&:after,
&:before {
all: initial;
box-sizing: border-box;
text-shadow: none;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: initial;
}
}
}
Impacts:
Module developers
Themers
Distribution developers