WICG / container-queries

Other
91 stars 10 forks source link

What about "display: frame" ? #11

Open AbrahamTewa opened 6 years ago

AbrahamTewa commented 6 years ago

Hi everyone,

I apologize in advance because I'm more a javascript developer than CSS, so the following may not make sense.

My understanding of the container-queries's circular problem is that a chidl rule could conflict with one of it's parent and influence him back.

However, a browser window (for example), resolve implicitly this problem : there is no way the HTML can influence the size of the window.

Why not create a new value frame for the display property ?

Example:

.container {
  display: frame;
  float: left;
}
.container:hover {
   display : block;
}
.child {
  width: 500px;
}
.container:min-width(450px) > .child {
  width: 400px;
}

Regards,

Abraham