[css-ui] `outline-style` should work for both UA and author values around anonymous block boxes
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
When an inline element is the parent of block level elements there is an issue with outlines having an inconsistent behavior between UA and author-created values. I believe that this is based on how inline elements work with anonymous blocks.
In this case, outline-style is set to anything other than auto the outline isn’t visible when assigned, whether it’s on focus or not. This is because user-authored styles only apply to the anonymous boxes, whereas the UA styles apply to the whole inline element. See this codepen demo to see the difference. As expected, setting the inline element to inline-block also fixes the issue outline visibility issue, but there are times when the author might not have the ability to edit that.
I believe this is an interoperable issue and that author-created values should have the same behavior as UA, in that users should be able to set the outline-color and outline-style.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS 2.2 anonymous block box section and the CSS UI outline-style definition linked in the issue. Reproduce the CodePen case with an inline parent and block children, comparing UA and author-created values. Done means establishing and documenting an interoperable behavior for author-specified outline-style and outline-color.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100