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

LibWeb: Improve html/body size quirks #3271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Psychpsyo
Copy link
Contributor

@Psychpsyo Psychpsyo commented Jan 16, 2025

This improves our behavior for the The html element fills the viewport quirk and the The body element fills the html element quirk from the Quirks Mode Standard

It also removes PaintableFragment::orientation() since that is now handled on layout nodes. (Node::text_flow_direction())

I've had to rebaseline quite a few layout tests since they did not have an html doctype set and were therefore using quirks mode.
Ideally, these should probably just not run under quirks mode, but that is like an hour of copying <!DOCTYPE html> declarations everywhere...
But maybe I'll do some of that before this gets reviewed.

@Psychpsyo Psychpsyo marked this pull request as draft January 16, 2025 01:55
@Psychpsyo Psychpsyo force-pushed the quirks-for-html-body branch from cfbfd0a to 09c42a3 Compare January 16, 2025 18:02
Copy link

Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to rebase your branch on top of the latest master.

@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Jan 18, 2025
@Psychpsyo Psychpsyo force-pushed the quirks-for-html-body branch from 09c42a3 to f673230 Compare January 19, 2025 14:50
@github-actions github-actions bot removed the conflicts Pull request has merge conflicts that need resolution label Jan 19, 2025
@Psychpsyo Psychpsyo marked this pull request as ready for review January 19, 2025 14:50
@Psychpsyo Psychpsyo force-pushed the quirks-for-html-body branch from f673230 to 56b26db Compare January 19, 2025 16:34
@Psychpsyo Psychpsyo force-pushed the quirks-for-html-body branch from 56b26db to 6a8912c Compare January 19, 2025 18:31
@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Jan 23, 2025
Copy link

Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to rebase your branch on top of the latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Pull request has merge conflicts that need resolution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant