Re: [csswg-drafts] [css-backgrounds] 'border: 1px inset' is not interoperable

https://www.w3.org/TR/CSS22/box.html#border-style-properties has a section about certain style values, among those "inset":

"All borders are drawn on top of the box's background. The color of borders drawn for values of 'groove', 'ridge', 'inset', and 'outset' depends on the element's border color properties, but UAs may choose their own algorithm to calculate the actual colors used. For instance, if the 'border-color' has the value 'silver', then a UA could use a gradient of colors from white to dark gray to indicate a sloping border."

Of course, border-color is just color initially, but maybe this paragraph is what caused confusion. I've done some digging in Blink now, and we have this interesting passage in ComputedStyle.cpp:

```
  // FIXME: Treating styled borders with initial color differently causes
  // problems, see crbug.com/316559, crbug.com/276231
  if (!visited_link && (border_style == EBorderStyle::kInset ||
                        border_style == EBorderStyle::kOutset ||
                        border_style == EBorderStyle::kRidge ||
                        border_style == EBorderStyle::kGroove))
    return Color(238, 238, 238);
```


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

Received on Thursday, 1 June 2017 12:57:15 UTC