- From: François REMY via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Apr 2017 22:40:41 +0000
- To: public-css-archive@w3.org
That was my expectation as well but actually it looks like not only text nodes inherit from ::first-line, but apparently any inline as well. We have special code to make this work.
You probably have a better idea of what the spec says than me, what do you think is the behavior you expect for http://wptest.center/#/sjfma2 ?
```css
div {
width: 75px;
--text-color: green;
}
div::first-line {
--text-color: red;
color: var(--text-color);
}
span {
color: inherit;
background: currentColor;
outline: 3px solid var(--text-color);
}
```
Three browsers yield three different results here:
  
Edge, Chrome, Firefox
--
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1097#issuecomment-293727678 using your GitHub account
Received on Wednesday, 12 April 2017 22:40:50 UTC