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

Root element background extents are wrong in layout_2020 #25559

Closed
mrobinson opened this issue Jan 20, 2020 · 1 comment
Closed

Root element background extents are wrong in layout_2020 #25559

mrobinson opened this issue Jan 20, 2020 · 1 comment

Comments

@mrobinson
Copy link
Member

@mrobinson mrobinson commented Jan 20, 2020

It looks like root element background extents aren't including page margins and don't cover the page viewport.

This shows a white page:

<body style="background: green;"></body>

This shows a green page with 8 pixel white borders on the top and right:

<body style="background: green;">
    <div style="height: 10000px;"></div>
</body>

This shows a completely green page. This is what I would expect for all test cases:

<body style="background: green;">
    <div style="height: 10000px;"></div>
</body>
mrobinson added a commit to mrobinson/servo that referenced this issue Jan 20, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
mrobinson added a commit to mrobinson/servo that referenced this issue Jan 20, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
mrobinson added a commit to mrobinson/servo that referenced this issue Jan 20, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Jan 20, 2020

The relevant spec is:

This affects the border painting area and painting order (position in the display list) of background layers for the root element (or in some cases HTML <body> element).

The painting area (mistakenly called clipping_area in current master) needs to be theoretically infinite, although in practice only the part that intersects with the scrollable overflow rectangle for the document can be painted.

mrobinson added a commit to mrobinson/servo that referenced this issue Jan 21, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
mrobinson added a commit to mrobinson/servo that referenced this issue Jan 21, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
mrobinson added a commit to mrobinson/servo that referenced this issue Jan 21, 2020
This allows us to test initial root scrolling support in Layout 2020
and can hopefully be removed very soon.
mrobinson added a commit to mrobinson/servo that referenced this issue Apr 6, 2020
The CSS Backgrounds and Borders specification describes the
circumstances under which the HTML element's used style for backgrounds
is determined by the BODY element. This change properly implements that
behavior, fixing a variety of tests that expect the background specified
on the BODY cover the entire page.

Fixes: servo#25559
mrobinson added a commit to mrobinson/servo that referenced this issue Apr 6, 2020
The CSS Backgrounds and Borders specification describes the
circumstances under which the HTML element's used style for backgrounds
is determined by the BODY element. This change properly implements that
behavior, fixing a variety of tests that expect the background specified
on the BODY cover the entire page.

Fixes: servo#25559
mrobinson added a commit to mrobinson/servo that referenced this issue Apr 6, 2020
The CSS Backgrounds and Borders specification describes the
circumstances under which the HTML element's used style for backgrounds
is determined by the BODY element. This change properly implements that
behavior, fixing a variety of tests that expect the background specified
on the BODY cover the entire page.

Fixes: servo#25559
mrobinson added a commit to mrobinson/servo that referenced this issue Apr 7, 2020
The CSS Backgrounds and Borders specification describes the
circumstances under which the HTML element's used style for backgrounds
is determined by the BODY element. This change properly implements that
behavior, fixing a variety of tests that expect the background specified
on the BODY cover the entire page.

Fixes: servo#25559
mrobinson added a commit to mrobinson/servo that referenced this issue Apr 7, 2020
The CSS Backgrounds and Borders specification describes the
circumstances under which the HTML element's used style for backgrounds
is determined by the BODY element. This change properly implements that
behavior, fixing a variety of tests that expect the background specified
on the BODY cover the entire page.

Fixes: servo#25559
bors-servo added a commit that referenced this issue May 4, 2020
Correctly paint the CSS canvas’ background

https://drafts.csswg.org/css-backgrounds/#special-backgrounds

Fixes #25559
Closes #26121, as it is an alternative.
bors-servo added a commit that referenced this issue May 7, 2020
Correctly paint the CSS canvas’ background

https://drafts.csswg.org/css-backgrounds/#special-backgrounds

Fixes #25559
Closes #26121, as it is an alternative.
Fixes #26444.
bors-servo added a commit that referenced this issue May 15, 2020
Correctly paint the CSS canvas’ background

https://drafts.csswg.org/css-backgrounds/#special-backgrounds

Fixes #25559
Closes #26121, as it is an alternative.
Fixes #26444.
bors-servo added a commit that referenced this issue May 15, 2020
Correctly paint the CSS canvas’ background

https://drafts.csswg.org/css-backgrounds/#special-backgrounds

Fixes #25559
Closes #26121, as it is an alternative.
Fixes #26444.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.