html - Pseudo element affecting outline -
this question has answer here:
pretty sure bug firefox, perhaps can weigh in.
i applying outline around 100x100 box. when use pseudo element positioned absolute should remove document flow, appears still affecting flow of outline property. ie , chrome appear render expect, black outline stays positioned main element. ideas?
.content { width:100px; height:100px; outline:1px solid black; border:1px solid yellow; position:relative; } .content:after { position:absolute; content:'pseudo'; background-color:salmon; width:200px; top:150px; }
<div class='content'></div>
you can change outline
style box-shadow
:
outline:1px solid black;
to:
box-shadow: 0px 0px 0px 1px black;
Comments
Post a Comment