Skip to content

cols_label_rotate does not work on Safari #787

@martinsmapon

Description

@martinsmapon

Description

cols_label_rotate does not work on Safari. Screenshot below.

Image

Chrome renders fine.

Image

Development environment

  • Operating System: MacOS 15.7.1 (also tested on iPhone)
  • Browser: Safari v. 26.0.1
  • great_tables Version: v0.18.0

Additional context

Probably related to https://stackoverflow.com/a/79481681.

Wrapping the header labels in a span element and applying the writing mode to that seems to work in both Safari and Chrome.

The change in the output would be from

<th ... style="writing-mode: sideways-lr; vertical-align: middle; text-align: left; padding: 8px 0px;">High Power</th>

to

<th ... style="text-align: left; padding: 8px 0px;"><span style="writing-mode: sideways-lr; vertical-align: middle; height: max-content;">High Power</span></th>

Not sure if solving Safari specific issues makes sense.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions