Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"display: block" fallback #4

Open
revyh opened this issue Apr 6, 2017 · 0 comments
Open

"display: block" fallback #4

revyh opened this issue Apr 6, 2017 · 0 comments

Comments

@revyh
Copy link

revyh commented Apr 6, 2017

It's not another one fallback option like column-count, overflow or clearfix. Spec defines flow-root as display: block + new BFC. And display: block part is missed for now. It allows cases like this:

/* before */
span {
  display: flow-root;
}

/* after "clearfix" fallback */
span {
  /* if browser doesn't support "flow-root" than "display" will actually have "inline" value, which will mess with pseudo elements */
  display: flow-root;
}

span::after {
  content: '';
  display: table;
  clear: both;
}

Instead it should be transformed like this:

/* after "clearfix" fallback */
span {
  display: block;
  display: flow-root;
}

span::after {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant