question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable some css transformations (such as inset)

See original GitHub issue

Command

build

Description

When building our project there seems to be some css optimizations we don’t want. Specifically, this code will get optimized

top: 0;
right: 0;
bottom: 0;
left: 0;

into

inset: 0;

This doesn’t work on some older browsers, and breaks our UI completely. Seems like this isn’t done by SCSS, and I can’t find a way to disable it. Changing .browserslistrc doesn’t seem to have an effect.

Describe the solution you’d like

A way to disable some transformations.

Describe alternatives you’ve considered

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Nov 18, 2022

Hi @BojanKogoj,

Can you please share the output of ng version, and your browserslist configuration?

Side note all the browsers that Angular officially supports do support inset.

0reactions
angular-automatic-lock-bot[bot]commented, Dec 19, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent the usage of inset (and other non-compatible ...
We recently migrated our Angular project from node-sass to dart-sass and now are facing a browser compatibility issue. The following SCSS:.
Read more >
transform - CSS: Cascading Style Sheets - MDN Web Docs
The transform CSS property lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual ...
Read more >
inset | CSS-Tricks
The inset property in CSS is a shorthand for the four inset properties, top, right, bottom and left in one declaration.
Read more >
Prevent body scrolling but allow overlay scrolling
I attempted to create this with just CSS (i.e. a div overlay on top of the whole page and body with overflow: hidden...
Read more >
Configuration - Tailwind CSS
If you're using Tailwind as a PostCSS plugin, you will need to specify your ... To disable specific core plugins, provide an object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found