Re: [csswg-drafts] Proposal: Add wrapper pseudo element

My use case would be supporting responsive iframes, for which the only solution currently is to have a wrapper element with height: 0 and padding-top: 0.5625% or whatever proportion is required:

```css
iframe.responsive::wrap {
  display: block;
  height: 0;
  padding-top: 0.5625%;
  position: relative;
  overflow: hidden;
}

iframe.responsive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
```

-- 
GitHub Notification of comment by jorrit
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/588#issuecomment-425109379 using your GitHub account

Received on Thursday, 27 September 2018 14:16:06 UTC