Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54120


Ignore:
Timestamp:
09/14/2021 07:27:00 PM (5 years ago)
Author:
sabernhardt
Comment:

Thanks for the report!

Twenty Sixteen also has fixed layout for the table element, as well as on the .wp-block-table class (which is now assigned to the table's container instead).

The table element styles probably should stay the same to avoid changing the layout of existing tables, especially if they were created with another editor. Would something like this be fair?

.wp-block-table table:not(.has-fixed-layout) {
    table-layout: auto;
}

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54120

    • Property Component ThemesBundled Theme
    • Property Keywords 2nd-opinion added
    • Property Version 5.8.1
  • Ticket #54120 – Description

    initial v1  
    11The CSS for Twenty Fifteen contains a line forcing fixed layout for tables:
     2{{{
    23   table {
    34      border-collapse: separate;
     
    89      width: 100%;
    910   }
     11}}}
    1012This causes unexpected behavior since you in Gutenberg have the option to select between a fixed or dynamic layout for table blocks, but this has no effect.