Skip to content

Height and with styles get mixed when applied both on table and figure elements and used with GHS #18469

@FilipTokarski

Description

@FilipTokarski

📝 Provide detailed reproduction steps (if any)

  1. Use full featured demo (it allows for all in GHS)
  2. Set the following HTML in the source view:
<figure class="table" style="height:300px;width:200px;">
    <table style="height:100%;width:100%;">
        <tbody>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
        </tbody>
    </table>
</figure>

✔️ Expected result

Width and height from <table> should be ignored and those from <figure> should be preserved.

❌ Actual result

Styles get mixed:

  • height is correctly taken from <figure> and is 300px
  • width is taken from <table> and is 100%

Image
Image
Image

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Metadata

Metadata

Assignees

Labels

package:html-supportpackage:tablesquad:coreIssue to be handled by the Core team.support:2An issue reported by a commercially licensed client.type:bugThis issue reports a buggy (incorrect) behavior.type:regressionThis issue reports a bug that was not present in the previous releases.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions