W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

Re: [csswg-drafts] [css-color][css-ui] Better Fallback for outline-color: invert (#4611)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Tue, 17 Dec 2019 23:03:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-566788771-1576623820-sysbot+gh@w3.org>
This might create an infinite loop then:

~~~~ css
foo {
  color: invert;
  background-color: currentcolor;
}
~~~~

PS: CSS UI implies external knowledge about exactly what it means to _invert a color_, probably `rgb(calc(100% - red(currentcolor)) calc(100% - green(currentcolor)) calc(100% - blue(currentcolor)) / currentcolor.alpha)`.

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4611#issuecomment-566788771 using your GitHub account
Received on Tuesday, 17 December 2019 23:04:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC