[css-ui] outline-color should work with outline-style: auto
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: lwarlow, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
358 bytes,
text/html
|
Details |
+++ This bug was initially created as a clone of Bug #1791051 +++
Steps to reproduce:
Load this JSFiddle for a demo: https://jsfiddle.net/0h72m4dw/1/
Actual results:
In Firefox:
- Red outline.
- Purple outline.
- Purple outline.
- Green outline.
In Safari:
- Red outline.
- Red outline.
- Red outline.
- Green outline.
In Chrome
- Green outline.
- Green outline.
- Black outline.
- Green outline.
The red is my system accent colour on macOS.
Expected results based on https://github.com/w3c/csswg-drafts/issues/7761 :
I would expect to see the following.
- Green outline.
- Green outline.
- Purple outline.
- Green outline.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
Confirming bug. The CSSWG resolution was:
RESOLVED: outline-style: auto outlines, if influenced by an author color, are influenced by outline-color, which itself gets a new initial value keyword 'auto' which computes to 'currentColor' when outline-style is not auto and otherwise represents the 'accent-color'
In this case, the first element has (via a shorthand):
outline-color: green;
outline-style: auto;
So per the csswg resolution, it should be "influenced by outline-color", i.e. it should draw green.
Updated•2 years ago
|
Description
•