Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zen freezes when direct descendants of a part element are set to use rtl mode. #2751

Closed
3 of 4 tasks
thatcomputerguy0101 opened this issue Nov 8, 2024 · 1 comment
Closed
3 of 4 tasks
Labels

Comments

@thatcomputerguy0101
Copy link

Captchas

  • I have read the instructions.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.

What happened?

The browser freezes whenever the following styles are applied through a Zen Mod chrome.css, but not when they are applied through userChrome.css. This is relying on a beneficial bug with user agent stylesheets where descendant selectors relative to the part selector work whenever structured as nested blocks. Normally, using descendant selectors relative to a part selector is disallowed. Ideally, only the freeze is fixed, and the ability to use descendant selectors in this format is left alone.

#tabbrowser-arrowscrollbox::part(scrollbox) {
  & > * {
    direction: rtl;
  }
}

Reproducible?

  • I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.1-a.17

What platform are you seeing the problem on?

macOS - aarch64

Relevant log output

No response

Copy link

dosubot bot commented Nov 8, 2024

The issue you're experiencing with Zen Mod freezing when applying direction: rtl; to direct descendants of a ::part() element seems to be related to how Zen Mod handles CSS differently compared to userChrome.css. Zen Mod dynamically manages themes and integrates with user preferences, which might be causing the freeze when using certain CSS structures that are not typically allowed, like descendant selectors relative to a ::part() selector [1].

Since this issue does not occur with userChrome.css, it suggests that the dynamic nature of Zen Mod's CSS handling might be conflicting with the specific CSS rules you're applying. Unfortunately, there isn't specific information available about handling direction: rtl; or ::part() in the Zen Mod codebase, so a workaround might involve restructuring your CSS to avoid using descendant selectors in this context or testing on different platforms to see if the issue persists.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the Bug label Nov 8, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 9, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant