Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
Outline properties are used to draw a border around an element, but the shape and style of the outline does not affect layout.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
Inherited
no
Applies to
all elements
Initial value
outline-color: invert, for browsers supporting it, currentColor for the other outline-style: none outline-width: medium
Animation type
outline-color: a color outline-width: a length outline-style: discrete
Computed value
outline-color: For the keyword invert, the computed value is invert. For the color value, if the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0). outline-width: an absolute length; if the keyword none is specified, the computed value is 0 outline-style: as specified
CSS Basic User Interface Module Level 4 # outline
/* style */
outline: solid;
/* color | style */
outline: #f66 dashed;
/* style | width */
outline: inset thick;
/* color | style | width */
outline: green solid 3px;
/* Global values */
outline: inherit;
outline: initial;
outline: revert;
outline: unset;
CSS outline properties on IE is partially supported on 8-11, and not supported on 5.5-7 IE versions.
CSS outline properties on Edge is fully supported on 15-111 and partially supported on 12-14 Edge versions.
CSS outline properties on Firefox is fully supported on all Firefox versions.
CSS outline properties on Chrome is fully supported on all Chrome versions.
CSS outline properties on Safari is fully supported on all Safari versions.
CSS outline properties on Opera is fully supported on 11.6-95 and partially supported on 9.5-11.5 Opera versions.
CSS outline properties on Safari on iOS is fully supported on all Safari on iOS versions.
CSS outline properties on Android Browser is fully supported on all Android Browser versions.
CSS outline properties on Opera Mobile is fully supported on 12.1-73 and partially supported on 10-11 Opera Mobile versions.
CSS outline properties on Chrome for Android is fully supported on all Chrome for Android versions.
CSS outline properties on Firefox for Android is fully supported on all Firefox for Android versions.
CSS outline properties on Samsung Internet is fully supported on all Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:CSS outline properties shows a browser compatibility score of 100. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for CSS outline properties & more
Test your website for CSS outline properties and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?