Trident Gecko WebKit KHTML Presto Prince XML
CSS1 7.0 1.0 85 Yes 1.0 1.0
CSS2.1 Mostly Mostly Mostly Mostly Mostly Mostly
CSS3 Slight Partial Partial Slight Partial Slight
Trident Gecko WebKit KHTML Presto Prince XML
CSS2 !important Weight increasing 7.0 1.0 85 Yes 1.0 Yes
/*Comment*/ Comments 3.0 1.0 85 Yes 1.0 Yes
@import Import stylesheet 8.0 1.0 Yes Yes 1.0 2.1
@charset Character set 5.5 1.0 0 4.2.3 1.0 Yes
@media Media-specific rules 5.5 1.0 Yes Yes 1.0 5.1
@page For paged media 8.0 No[g 1] Nightly Build[w 1] No 1.0 6.0
CSS3 @namespace Namespace declaration 9.0[t 1] 1.0 Yes Yes 1.0 5.0
@font-face Define font 9.0[t 1][t 1] 1.9.1 525 4.3 2.2 6.0
@phonetic-alphabet Phonetic pronunciation No No No No No No
Trident Gecko WebKit KHTML Presto Prince XML
Trident Gecko WebKit KHTML Presto Prince XML
Element selectors[spec 1]
CSS2 * Universal 7.0 1.0 85 Yes 1.0 Yes
E Element 4.0 1.0 85 Yes Yes
E.class Class 7.0 1.0 85 Yes Yes
E#id ID 4.0 1.0 85 Yes Yes
CSS3 ns|E Namespaced 9.0 1.0 Yes Yes Yes
Relationship selectors
CSS2 E F Descendant 4.0 1.0 85 Yes 1.0 Yes
E > F Child 7.0 1.0 85 Yes Yes
E + F Direct adjacent 7.0 1.0 85 Yes Yes
CSS3 E ~ F Indirect adjacent 7.0 1.7 412 3.3.2 2.0 Yes
Attribute selectors
CSS2 E[attr] Has 7.0 1.0 85 Yes 1.0 Yes
E[attr="value"] Equals 7.0 1.0 Yes Yes Yes
E[attr~="value"] Contains (space-separated) 7.0 1.0 Yes Yes Yes
E[attr|="value"] Contains (hyphen-separated) 7.0 1.0 Yes Yes Yes
CSS3 E[attr^="value"] Begins with 7.0 1.0 Yes 3.4 1.0 Yes
E[attr$="value"] Ends with 7.0 1.0 Yes 3.4 2.0 Yes
E[attr*="value"] Contains substring 7.0 1.0 Yes 3.4 Yes
E[ns|attr] Namespaced 7.0 1.0 Yes 3.4 No
Pseudo-classes
CSS2 E:link Unvisited hyperlink 3.0 1.0 85 Yes 1.0 6.0
E:visited Visited hyperlink 3.0 1.0 85 Yes Yes
E:active Active 8.0 1.0 85 Yes Yes
E:hover Mouseover 7.0 1.0 419.3 Yes Yes
E:focus Focused 8.0 1.0 Yes Yes Yes
E:first-child First child 7.0 1.0 85 Yes Yes
E:lang() Language 8.0 1.2 525 3.4 Yes
@page:first First page 8.0 No[g 1] Yes[w 2] No Yes
@page:left Left page
@page:right Right page
CSS3 E:root Root 9.0 1.0 85 3.4 2.1 Yes
E:not() Negation
E:empty Empty 1.8 412
E:first-of-type First child of type 1.9.1 525
E:last-child Last child 1.0
E:last-of-type Last child of type 1.9.1
E:only-child Only child 1.8
E:only-of-type Only child of type 1.9.1
E:nth-child Nth child 1.9.1
E:nth-last-child Nth last child 1.9.1
E:nth-of-type Nth child of type 1.9.1
E:nth-last-of-type Nth last child of type 1.9.1
E:target Target 1.3 2.5 No
E:enabled Enabled state 1.8 2.0
E:disabled Disabled state 1.8
E:checked Checked state 1.0
E:indeterminate Indeterminate state 1.9.2 522 No No
E:default Default No 1.9 Yes[w 3] 4.3 2.0
E:valid Valid 1.8 Yes[w 4] No
E:invalid Invalid
E:in-range In range Yes[w 5]
E:out-of-range Out of range
E:required Required 2.0[g 2] Yes[w 6]
E:optional Optional
E:read-only Read-only Experimental No Incorrect Incorrect
E:read-write Read and write
Pseudo-elements
CSS2 E:first-letter First letter 9.0 1.0 85 Yes 1.0 5.0
E:first-line First line Partial No[r 1]
E:before Before 8.0 1.9.1 Partial Yes
E:after After
CSS3 E::before Double colon notation 9.0 1.9.1 Partial 3.4 1.0 Yes
E::after Double colon notation
E::first-letter Double colon notation 1.5 85
E::first-line Double colon notation Partial No[r 1]
E::selection Selection Experimental 412 2.1 No
Trident Gecko WebKit KHTML Presto Prince XML
Trident Gecko WebKit KHTML Presto Prince XML
Box Model[spec 2]
CSS2 margin 9.0 1.0 85 Yes 1.0 Yes
padding 4.0 1.0 85 Yes Yes
width 4.0 1.0 85 Yes Yes
height 4.0 1.0 85 Yes Yes
float 5.0 1.0 85 Yes Yes
clear 5.0 1.0 85 Yes Yes
display 8.0 Partial 85 Yes Yes
min-width 7.0 1.0 416 Yes 5.0
max-width 7.0 1.0 416 Yes 5.0
min-height 7.0 1.7 416 3.3.2 5.0
max-height 7.0 1.7 416 3.3.2 5.0
clip 8.0 1.0 85 Yes 5.0
overflow 9.0 1.0 85 3.2 5.0
visibility 9.0 1.8 Partial Partial 2.5 Partial
CSS3 overflow-x 9.0 1.8 525 3.5.6 2.1 5.0
overflow-y
Borders[spec 3]
CSS2 border 4.0 1.0 85 Yes 1.0 3.0
border-color 7.0
border-style 8.0
border-width 4.0
border-top 5.5
border-right
border-bottom
border-left
CSS3 border-radius 9.0[t 1] 2.0[g 4] 533[w 9] Experimental 2.5 6.0
border-image No Experimental Experimental No 2.5 No
border-image-source No No No
border-image-slice
border-image-width
border-image-outside
border-image-repeat
box-shadow 9.0 2.0[g 5] Yes[w 10] No 2.5 No
box-decoration-break No No No No 2.7[p 1] No
Trident Gecko WebKit KHTML Presto Prince XML
Line Layout[spec 4]
CSS2 line-height 4.0 1.0 85 Yes 1.0 5.0
vertical-align 8.0 1.0 85 Yes 6.0
Positioning
CSS2 position 7.0 1.0 85 Yes 1.0 5.0
top 8.0 1.0 85 Yes 6.0
right 8.0 1.0 85 Yes 6.0
bottom 8.0 1.0 85 Yes 6.0
left 8.0 1.0 85 Yes 6.0
z-index 8.0 1.9 85 Yes 6.0
Generated and Replaced Content[spec 5]
CSS2 quotes 8.0 1.8 Nightly build[w 11] 3.4 1.0 No
content 9.0[t 6] 1.9 Partial Yes 2.7 Partial
counter-increment 8.0 1.8 525 3.4 1.0 5.0
counter-reset 8.0 1.8 525 3.4 5.0
Lists[spec 6]
CSS2 list-style 4.0 1.0 85 Yes 1.0 6.0
list-style-image 4.0 1.0 85 Yes 6.0
list-style-position 4.0 1.0 85 Yes 6.0
list-style-type 8.0 1.0 85 3.4 Partial
Colors[spec 7]
CSS2 color 3.0 1.0 85 Yes 1.0 5.0
CSS3 opacity 9.0[t 1] 1.7 125 4.0 2.0 6.0
Trident Gecko WebKit KHTML Presto Prince XML
Backgrounds[spec 3]
CSS2 background 4.0 1.0 85 Yes 1.0 6.0
background-attachment 7.0 5.0
background-color 4.0 3.1
background-image 8.0 6.0
background-position 8.0 3.1
background-repeat 4.0 3.1
CSS3 background (multiple) 9.0[t 1] 1.9.2 312 3.5 2.5 No
background-clip 2.0[g 6] Yes[w 12] Experimental
background-origin
background-size Yes[w 13]
Fonts[spec 8]
CSS2 font 4.0 1.0 85 Yes Incorrect Yes
font-family 4.0 1.0 85 Yes 1.0 Yes
font-size 3.0 1.0 85 Yes 3.1
font-style 4.0 1.0 85 Yes Yes
font-variant 4.0 1.0 125 Yes Yes
font-weight 8.0 Partial Partial Yes Incorrect Yes
CSS3 font-size-adjust No 1.9 No[w 14] No No No
font-stretch 9.0[t 1] No[g 7] No[w 15] No No 6.0
font-feature-settings No Experimental No[w 16] No No No
Trident Gecko WebKit KHTML Presto Prince XML
Text[spec 9]
CSS2 text-align 4.0 1.0 85 Yes 1.0 Yes
text-decoration Yes Incorrect Incorrect Yes 3.1
text-indent 3.0 1.0 85 Yes Yes
text-transform 4.0 1.0 85 Yes 6.0
letter-spacing 4.0 1.0 85 Yes 5.0
word-spacing 8.0 1.0 85 Yes 5.0
white-space 8.0 1.9.1 522 Yes 2.1 6.0
CSS3 text-shadow No 1.9.1 Yes 3.4 2.1 No
text-overflow Partial Nightly build[g 8] Partial 3.5.6 Experimental (Nightly)[p 2] No
word-break Partial No[g 9] No No No No
hyphens No Nightly build[g 10] Nightly build No No No
hyphenate-characters No No No No No No
hyphenate-limit-zone
hyphenate-limit-word
hyphenate-limit-lines
hyphenate-limit-last
hyphenate-resource
text-wrap No No No No No No
word-wrap 5.0 1.9.1 85 4.3 2.5 No
text-align-last Partial No No No No Partial
text-align-first No No No No No No
text-justify 5.5 No[g 11] No No No 6.0
punctuation-trim No No No No No No
text-emphasis No No No No No No
text-outline No No[g 12] Experimental[w 17][w 18] No No No
hanging-punctuation No No No[w 19] No No No
text-decoration-style No Nightly build[g 13][g 14] No No No No
text-decoration-color No No No No No
text-decoration-line No No No No No
text-decoration-skip No No No No No No
text-underline-position No No No No No No
Trident Gecko WebKit KHTML Presto Prince XML
Writing Modes[spec 10]
CSS2 direction 5.0 1.0 85 Yes 1.0 7.0
unicode-bidi 5.0 1.0 525 Yes 7.0
CSS3 writing-mode 6.0[t 7] No[g 15] Nightly Build[w 20] No No No
text-combine No No No[w 21] No No No
Tables
CSS2 border-collapse 8.0 1.0 125 Yes 1.0 5.1
border-spacing 8.0 1.0 125 Yes 6.0
caption-side 8.0 1.4 85 Yes 5.0
empty-cells 8.0 1.0 125 Yes 5.0
table-layout 5.0 1.0 85 Yes 6.0
User interface[spec 11]
CSS2 cursor 5.5 1.8 125 Yes Partial Yes
outline 8.0 1.8 125 Yes 1.0 No
outline-color 8.0 1.8 125 Yes No
outline-style 8.0 1.8 125 Yes No
outline-width 8.0 1.8 125 Yes No
CSS3 outline-offset No 1.8 125 3.5 2.1 No
box-sizing 8.0 Experimental[g 16] Yes[w 22] 3.3.2 1.0 7.0
resize No 2.0[g 17] 525 No No No
appearance No Experimental Experimental No No No
icon No No No No No No
nav-index No No No No 2.1 No
nav-up No No No No No
nav-right No No No No No
nav-down No No No No No
nav-left No No No No No
Trident Gecko WebKit KHTML Presto Prince XML
Paged media[spec 12]
CSS2 page-break-before 4.0 Partial Partial 3.5 1.0 6.0
page-break-after 6.0
page-break-inside 8.0 No[g 18] 312 6.0
orphans No[g 19] 6.0
widows 6.0
CSS3 page No No No No No Yes
size No No No[w 23] No 1.0 6.0
image-orientation No No No No No No
object-fit No No No No 2.7[p 3] No
object-position No No No No No
Speech[spec 13]
CSS3 cue No No[g 20] No No 1.0 No
cue-after
cue-before
pause
pause-after
pause-before
speak Nightly build[w 24]
voice-family No
voice-balance Experimental
voice-duration
voice-pitch
voice-pitch-range
voice-rate
voice-stress
voice-volume
interpret-as
phonemes
rest No
rest-after
rest-before
mark
mark-after
mark-before
Trident Gecko WebKit KHTML Presto Prince XML
Media Queries[spec 14]
CSS3 width 9.0[t 1] 1.9.1 525 4.1 2.0 No
height
device-width
device-height
device-aspect-ratio
color 2.5
color-index
monochrome
resolution No
orientation 4.2.1 No
aspect-ratio 2.1
grid No 4.1 2.5
scan
Ruby characters[spec 15]
CSS3 ruby-position 5.0 No[g 21] No No No No
ruby-align
ruby-overhang
ruby-span No
Multi-column Layout[spec 16]
CSS3 column-count Platform Preview Experimental Experimental No 2.8[p 4] Yes
column-width
column-gap
column-rule
columns No[g 22]
break-before No No Experimental[w 25] 6.0
break-after
break-inside No[w 26]
column-fill Platform Preview No
column-span Experimental[w 27] No
Trident Gecko WebKit KHTML Presto Prince XML
Grid layout[spec 17]
CSS3 Grid Platform Preview[g 23] No[g 24] No[w 28] No No No
grid-rows
grid-columns
grid-row
grid-column
grid-cell-stacking
grid-template
grid-column-span
grid-row-span
grid-column-sizing
grid-row-sizing
grid-flow
grid-column-align
grid-row-align
grid-layer
Animation[spec 18]
CSS3
animation No Experimental[g 25] Experimental No No No
animation-delay
animation-direction
animation-duration
animation-iteration-count
animation-name
animation-play-state
animation-timing-function
2D Transforms[spec 19]
CSS3
transform Experimental[t 1] Experimental Experimental No Experimental No
transform-origin
Trident Gecko WebKit KHTML Presto Prince XML
3D Transforms[spec 20]
CSS3
transform No No[g 26] Experimental No No No
transform-origin
transform-style
perspective
perspective-origin
backface-visibility
Transitions[spec 21]
CSS3
transition-property No Experimental[g 27] Experimental No Experimental No
transition-duration
transition-timing-function
transition-delay
transition
Flexible Box Layout[spec 22]
CSS3
box-align Platform Preview Experimental Experimental No No No
box-direction
box-flex
box-flex-group
box-lines No[g 28]
box-ordinal-group Experimental
box-orient
box-pack
Marquee[spec 23]
CSS3
marquee-direction No No Experimental[w 29] No No No
marquee-play-count
marquee-speed
marquee-style
overflow-style No
Trident Gecko WebKit KHTML Presto Prince XML
Trident Gecko WebKit KHTML Presto Prince XML
Numbers[spec 24]
CSS2 <number> A floating-point number 3.0 1.0 85 Yes 1.0 6.0
<length> <number> followed by units
<percentage> <number> followed by %
<integer> An integer
CSS3 <angle> <number> angle-unit 9.0[t 1] Partial Partial Partial Partial No
<time> <number> time-unit 2.0[g 27] Yes Yes 2.5
<frequency> <number> frequency-unit No No No
<fraction> Remaining space No No
Strings
CSS2 <string> String 3.0 1.0 85 Yes 1.0 Yes
\code Unicode escapes 6.0
Shapes
CSS2 rect() A rectangle 8.0 1.0 85 Yes 1.0 Yes
Functions
CSS2 url() Uniform Resource Identifier 3.0 1.0 85 Yes 1.0 Yes
counter() 8.0
attr() Attribute identifier
CSS3 calc() 9.0[t 1] 2.0 (Experimental)[g 34] No[w 31] No No No
Colors
CSS2 HTML4 color keywords 16 predefined web colors 3.0 1.0 85 Yes 1.0 Yes
#rrggbb or #rgb Hexadecimal notation
rgb(r, g, b) RGB notation 4.0
system colors[spec 25] 28 predefined system colors 3.0
CSS3 SVG color keywords 8.0 Yes Yes Yes Yes ?
currentColor The value of the color property. 9.0[t 1] 1.8 528 Yes 2.1 ?
rgba(r, g, b, a) RGBA notation 1.9 525 4.0 2.2 6.0
hsl(h, s, l) HSL notation 1.5 3.5.5 2.1 No
hsla(h, s, l, a) HSLA notation 1.9 3.5.5 2.2
transparent Full transparency 9.0 1.9 4.0 Partial Partial
Image values[spec 26]
CSS2 <url> Image types 3.0 1.0 85 Yes 1.0 Yes
CSS3 <sprite> No No No No No No
<image-list> No No No
<linear-gradient> Platform Preview Experimental Nightly (Experimental)[w 32] Experimental
<radial-gradient>
linear-gradient() Color gradients
radial-gradient()
repeating-linear-gradient()
repeating-radial-gradient()
Keywords
CSS2 auto Automatically calculated 6.0 1.0 85 Yes 1.0 Yes
inherit Inherited from the parent 8.0
CSS3 initial No Experimental 125 No No No
Units
CSS2 px Pixel 3.0 1.0 85 Yes 1.0 Yes
pt Point
pc Pica
cm Centimetre
mm Millimetre
in inch
em em
ex ex
% Percentage
CSS3 deg Degree 9.0[t 1] 1.9.1 Yes Yes 2.5 No
grad Grad
rad Radian
turn turn No No No No
ms Millisecond 2.0[g 35] Yes Yes 2.5
s Second
Hz Hertz No No No
kHz Kilohertz
dpi Dots per inch 1.9.1 No 4.1 2.5
dpcm Dots per centimetre
dppx Dots per pixel-unit No No ? No
gd Cells in the layout-grid No No No No
fr Remaining space in a series of length values No No No No
rem the font size of the root element 9.0[t 1] 1.9.2 No No No
vw the viewport's width No[g 36] No[w 33] No No
vh the viewport's height
vm the viewport's height or width, whichever is smaller of the two
ch the width of the "0" (ZERO, U+0030) glyph found in the font for the font size used to render. 1.9.1 No No No
Trident Gecko WebKit KHTML Presto Prince XML
Retrieved from "http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Cascading_Style_Sheets)"
Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages