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.

[jss-vendor-prefixer] CSS Grid and Vendor prefix

See original GitHub issue

Expected behavior: Hello When using CSS Grid with recat-jss I expect that Vendor prefix will kick in i IE and add the -ms prefix to some of the CSS Grid properties.

Describe the bug: Here is an example:

		'& .head-section': {
			display: 'grid',
			gridTemplateColumns: '1fr 1fr 240px',
			gridRow: props => props.notificationSection ? '2' : '1',
			gridColumn: '1 / span 2'
			padding: '0 30px',
		}

This works fine in Chrome or Firefox. In IE 11 however, I see the following css rules in developer tools:

display: -ms-grid;
-ms-grid-colum: 1 / span 2;
grid-template-columns: 1fr 1fr 240px;
grid-row: 2;

Notice that only the display property has correct propertyname and value. The other properties are flagged red in IE dev tools and are not applied.

According to Autoprefix, the other values should be pared like this for IE:

display: -ms-grid;
-ms-grid-colum: 1;
-ms-grid-column-span: 2;
ms-grid-columns: 1fr 1fr 240px;
ms-grid-row: 2;

Is there any reason for this behavior?

Codesandbox link:

Versions (please complete the following information):

  • react-jss: 8.6.1
  • Browser [e.g. chrome, safari]: IE 11
  • OS [e.g. Windows, macOS]: Windows

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fralewsmicommented, Nov 13, 2019

Any update here?

0reactions
liranmerycommented, Nov 4, 2020

I will take care of this issue this week thanks! @AleshaOleg

Is this issue still under progress?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vendor Prefix - MDN Web Docs Glossary
Vendor Prefix. Browser vendors used to add prefixes to experimental or nonstandard CSS properties and JavaScript APIs, so developers could ...
Read more >
Is Vendor Prefixing Dead? - CSS-Tricks
In CSS we use vendor prefixes for properties, values, @-rules that are: – vendor specific extensions (per CSS 2.1), or – experimental ...
Read more >
What Are CSS Vendor or Browser Prefixes? - ThoughtCo
CSS vendor prefixes, also sometimes known as or CSS browser prefixes, are a way for browser makers to add support for new CSS...
Read more >
Explain CSS vendor prefixes - GeeksforGeeks
A vendor prefix is a special prefix that is added to a CSS property. Each rendering engine has its own prefix which will...
Read more >
Feature detection and vendor prefixes in CSS
Once you add a flag or vendor prefix and developers start using it in production, it becomes harder for browsers to change the...
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