Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

CSS outline properties

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

IEIE

EdgeEdge

FirefoxFirefox

ChromeChrome

SafariSafari

OperaOpera

5.5 - 7
Test on IE 5.5 - 7 ...
8 - 11
Test on IE 8 - 11 ...
12 - 14
Test on Edge 12 - 14 ...
15 - 111
Test on Edge 15 - 111 ...
2 - 113
Test on Firefox 2 - 113 ...
4 - 114
Test on Chrome 4 - 114 ...
3.2 - 16.4
Test on Safari 3.2 - 16.4 ...
9.5 - 11.5
Test on Opera 9.5 - 11.5 ...
11.6 - 95
Test on Opera 11.6 - 95 ...

...Fully Supported

...Partially

...No Support

Formal Definition

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

Specifications

CSS Basic User Interface Module Level 4 # outline

Syntax

/* 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;

Browser Compatibility

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.

100
Hightooltip

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 Now...

KaneAI - Testing Assistant

World’s first AI-Powered E2E testing agent.

...
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Signup for free

Did you find this page helpful?

Helpful

NotHelpful