W3cubDocs

/Support Tables

CSS Container Style Queries

Style queries in Container Queries provide a way to query the current styling of a container, and conditionally apply additional CSS to the contents of that container.

Spec https://www.w3.org/TR/css-contain-3/
Status W3C Working Draft
IE Edge Firefox Chrome Safari Opera
    147 144 (2)    
    146 143 (2) TP (2)  
    145 142 (2) 26.1 (2)  
11 141 (2) 144 141 (2) 26.0 (2) 122 (2)
10 140 (2) 143 140 (2) 18.5-18.6 (2) 121 (2)
9 139 (2) 142 139 (2) 18.4 (2) 120 (2)
8 138 (2) 141 138 (2) 18.3 (2) 119 (2)
Show all
7 137 (2) 140 137 (2) 18.2 (2) 118 (2)
6 136 (2) 139 136 (2) 18.1 (2) 117 (2)
5.5 135 (2) 138 135 (2) 18.0 (2,3) 116 (2)
  134 (2) 137 134 (2) 17.6 115 (2)
  133 (2) 136 133 (2) 17.5 114 (2)
  132 (2) 135 132 (2) 17.4 113 (2)
  131 (2) 134 131 (2) 17.3 112 (2)
  130 (2) 133 130 (2) 17.2 111 (2)
  129 (2) 132 129 (2) 17.1 110 (2)
  128 (2) 131 128 (2) 17.0 109 (2)
  127 (2) 130 127 (2) 16.6 108 (2)
  126 (2) 129 126 (2) 16.5 107 (2)
  125 (2) 128 125 (2) 16.4 106 (2)
  124 (2) 127 124 (2) 16.3 105 (2)
  123 (2) 126 123 (2) 16.2 104 (2)
  122 (2) 125 122 (2) 16.1 103 (2)
  121 (2) 124 121 (2) 16.0 102 (2)
  120 (2) 123 120 (2) 15.6 101 (2)
  119 (2) 122 119 (2) 15.5 100 (2)
  118 (2) 121 118 (2) 15.4 99 (2)
  117 (2) 120 117 (2) 15.2-15.3 98 (2)
  116 (2) 119 116 (2) 15.1 97 (1)
  115 (2) 118 115 (2) 15 96 (1)
  114 (2) 117 114 (2) 14.1 95 (1)
  113 (2) 116 113 (2) 14 94 (1)
  112 (2) 115 112 (2) 13.1 93 (1)
  111 (2) 114 111 (2) 13 92
  110 (1) 113 110 (1) 12.1 91
  109 (1) 112 109 (1) 12 90
  108 (1) 111 108 (1) 11.1 89
  107 (1) 110 107 (1) 11 88
  106 109 106 10.1 87
  105 108 105 10 86
  104 107 104 9.1 85
  103 106 103 9 84
  102 105 102 8 83
  101 104 101 7.1 82
  100 103 100 7 81
  99 102 99 6.1 80
  98 101 98 6 79
  97 100 97 5.1 78
  96 99 96 5 77
  95 98 95 4 76
  94 97 94 3.2 75
  93 96 93 3.1 74
  92 95 92   73
  91 94 91   72
  90 93 90   71
  89 92 89   70
  88 91 88   69
  87 90 87   68
  86 89 86   67
  85 88 85   66
  84 87 84   65
  83 86 83   64
  81 85 81   63
  80 84 80   62
  79 83 79   60
  18 82 78   58
  17 81 77   57
  16 80 76   56
  15 79 75   55
  14 78 74   54
  13 77 73   53
  12 76 72   52
    75 71   51
    74 70   50
    73 69   49
    72 68   48
    71 67   47
    70 66   46
    69 65   45
    68 64   44
    67 63   43
    66 62   42
    65 61   41
    64 60   40
    63 59   39
    62 58   38
    61 57   37
    60 56   36
    59 55   35
    58 54   34
    57 53   33
    56 52   32
    55 51   31
    54 50   30
    53 49   29
    52 48   28
    51 47   27
    50 46   26
    49 45   25
    48 44   24
    47 43   23
    46 42   22
    45 41   21
    44 40   20
    43 39   19
    42 38   18
    41 37   17
    40 36   16
    39 35   15
    38 34   12.1
    37 33   12
    36 32   11.6
    35 31   11.5
    34 30   11.1
    33 29   11
    32 28   10.6
    31 27   10.5
    30 26   10.0-10.1
    29 25   9.5-9.6
    28 24   9
    27 23    
    26 22    
    25 21    
    24 20    
    23 19    
    22 18    
    21 17    
    20 16    
    19 15    
    18 14    
    17 13    
    16 12    
    15 11    
    14 10    
    13 9    
    12 8    
    11 7    
    10 6    
    9 5    
    8 4    
    7      
    6      
    5      
    4      
    3.6      
    3.5      
    3      
    2      
Safari on iOS Opera Mini Android Browser Blackberry Browser Opera Mobile Android Chrome Android Firefox IE Mobile Android UC Browser Samsung Internet QQ Browser Baidu Browser KaiOS Browser
26.1 (2)                        
26.0 (2) all 141 (2) 10 80 (2) 141 (2) 143 11 15.5 28 (2) 14.9 13.52 3.0-3.1
18.5-18.6 (2)   4.4.3-4.4.4 7 12.1     10   27 (2)     2.5
18.4 (2)   4.4   12         26 (2)      
18.3 (2)   4.2-4.3   11.5         25 (2)      
Show all
18.2 (2)   4.1   11.1         24 (2)      
18.1 (2)   4   11         23 (2)      
18.0 (2,3)   3   10         22 (2)      
17.6-17.7   2.3             21      
17.5   2.2             20      
17.4   2.1             19.0      
17.3                 18.0      
17.2                 17.0      
17.1                 16.0      
17.0                 15.0      
16.6-16.7                 14.0      
16.5                 13.0      
16.4                 12.0      
16.3                 11.1-11.2      
16.2                 10.1      
16.1                 9.2      
16.0                 8.2      
15.6-15.8                 7.2-7.4      
15.5                 6.2-6.4      
15.4                 5.0-5.4      
15.2-15.3                 4      
15.0-15.1                        
14.5-14.8                        
14.0-14.4                        
13.4-13.7                        
13.3                        
13.2                        
13.0-13.1                        
12.2-12.5                        
12.0-12.1                        
11.3-11.4                        
11.0-11.2                        
10.3                        
10.0-10.2                        
9.3                        
9.0-9.2                        
8.1-8.4                        
8                        
7.0-7.1                        
6.0-6.1                        
5.0-5.1                        
4.2-4.3                        
4.0-4.1                        
3.2                        

Notes

  1. Enabled through the "Experimental Web Platform features" flag in chrome://flags

  2. Partial support refers to only working with CSS custom property values in the style() query

  3. The root element cannot be a container

Bugs

  • In Safari 18, the root element cannot be a container. See bug 271040.

Resources

Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/css-container-queries-style