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.

grid-column-end/grid-row-end are not prefixed (taken into consideration) correctly

See original GitHub issue

It seems that the properties grid-column-end and grid-row-end are not taken into consideration then the prefixed -ms-grid-column-span & -ms-grid-row-span attributes are calculated.

Example:

Grid element #b used the shorthand syntax grid-column / grid-row. This already works. the -ms--span properties are there. Grid element #a uses the longer grid-column-(start/end) / grid-row-(start/end) syntax. For this case, the -ms--span properties are missing.

    .box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;

        #a {
            grid-column-start: 1;
            grid-column-end: 3;
            grid-row-start: 1;
            grid-row-end: 3;
        }

        #b {
            grid-column: 1 / 3;
            grid-row: 1 / 3;
        }
    }

Output CSS:

.box {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  -ms-grid-rows: auto auto;
  grid-template-rows: auto auto;
}

.box #a {
  -ms-grid-column: 1;
  grid-column-start: 1;
  grid-column-end: 3;
  -ms-grid-row: 1;
  grid-row-start: 1;
  grid-row-end: 3;
}

.box #b {
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-column: 1 / 3;
  -ms-grid-row: 1;
  -ms-grid-row-span: 2;
  grid-row: 1 / 3;
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yepninjacommented, Feb 21, 2018

We can try to find grid-column-end & grid-row-end when prefixing grid-column-start & grid-row-start in the same rule. I’ll also do it during this week.

@derzwen As a temporary solution, you can use a shortcut.

0reactions
aicommented, Mar 2, 2018

Released in 8.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

take something into consideration
take something into consideration meaning, definition, what is take something into consideration: to remember to think about something imp...: Learn more.
Read more >
15.4 Prefixes and Suffixes – Business Writing for Success
Mastering common prefixes and suffixes is like learning a code. Once you crack the code, you can not only spell words more correctly...
Read more >
Prefixes - Grammar - Cambridge Dictionary
The most common prefixes ; il-, im-, in-, ir-. not. illegal, impossible, insecure, irregular ; inter-. between. interactive, international ; mega-.
Read more >
Prefixes | Vocabulary | EnglishClub
prefix prefix meaning a‑ also an‑ not, without a‑ a‑ to, towards a‑ a‑ in the process of, in a particular state
Read more >
non
GPO manual item 6.29. recommends to spell non- prefixed words without a ... Meaning "not" in phrases taken from Latin and some other...
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