outline-color should work with outline-style: auto
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: lwarlow, Unassigned)
References
(Blocks 1 open bug)
Details
Steps to reproduce:
Load this JSFiddle for a demo: https://jsfiddle.net/ht85jacp/
Actual results:
In Firefox:
- Red outline.
- Purple outline.
- Green outline.
In Safari:
- Red outline.
- Red outline.
- Green outline.
In Chrome
- Green outline.
- Green outline.
- Green outline.
The red is my system accent colour on macOS.
As all 3 browser behave different behaviour this is an interop issue that would be nice to resolve.
Expected results:
I would expect to see the following.
- Green outline.
- Green or purple outline (I can see why
accent-color
would override) - Green outline.
As Firefox already allows a custom colour without losing the default style it would be nice if this was controllable from outline-color
aswell as accent-color
. This would also partially match how Chrome behaves so would go some of the way to solving the interop issue.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
This probably needs an issue in the spec instead. Implementing this is sort of straight-forward. I used accent-color
intentionally tho. outline: auto
should not render a black outline, that's pretty unfortunate IMHO :/
Reporter | ||
Comment 3•2 years ago
|
||
Since the csswg resolved to support both outline-color and accent-color is it worth reopening this issue or should I make a new one (if one hasn't been automatically made already)
Comment 4•2 years ago
•
|
||
(In reply to Luke from comment #3)
should I make a new one (if one hasn't been automatically made already)
closing the loop: Luke filed bug 1833431 as a new bug to cover the behavior-change for the csswg resolution (thanks, Luke!)
Description
•