W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

Re: [csswg-drafts] [css-ui] consider requiring that descendants do not contribute to outline

From: Cameron McCormack via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Jun 2018 04:57:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-401247556-1530248228-sysbot+gh@w3.org>
Here's a case that is less interoperable, but probably not as important from a Web compatibility perspective:


<!DOCTYPE html>
span { outline: 2px solid orange; }
span > div { outline: 2px dashed black; }
<div>here is some text <span>with <div>an<br> outlined</div> span</span> that wraps</div>

Edge and Chrome agree here and just render an orange outline around the two inline fragments of the span.  Safari only renders an orange outline around the first fragment.  Firefox renders orange outlines around both inline span fragments as well as the anonymous block that contains the child div.

GitHub Notification of comment by heycam
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2846#issuecomment-401247556 using your GitHub account
Received on Friday, 29 June 2018 04:57:49 UTC

This archive was generated by hypermail 2.3.1 : Friday, 29 June 2018 04:57:50 UTC