Make WordPress Core

Ticket #56855: 56855.2.diff

File 56855.2.diff, 939 bytes (added by SergeyBiryukov, 3 years ago)
  • src/wp-includes/kses.php

     
    23712371                        'direction',
    23722372                        'float',
    23732373                        'list-style-type',
     2374                        'object-fit',
    23742375                        'object-position',
    23752376                        'overflow',
    23762377                        'vertical-align',
  • tests/phpunit/tests/kses.php

     
    11121112                                'css'      => 'object-position: right top',
    11131113                                'expected' => 'object-position: right top',
    11141114                        ),
     1115                        // `object-fit` introduced in 6.1.
     1116                        array(
     1117                                'css'      => 'object-fit: cover',
     1118                                'expected' => 'object-fit: cover',
     1119                        ),
    11151120                        // Expressions are not allowed.
    11161121                        array(
    11171122                                'css'      => 'height: expression( body.scrollTop + 50 + "px" )',