vh should be interpolatible with percentage for properties take <length-percentage>

RESOLVED INVALID

Status

()

RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: xidorn, Unassigned)

Tracking

(Blocks: 2 bugs)

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

3 years ago
See the URL for testcase.
Keywords: dev-doc-needed
I think our implementation is fine here; this is just a bug in the test, which needs a rule:

 html, body { height: 100% }
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
Keywords: dev-doc-needed

Comment 3

3 years ago
Hi,

I was able to confirm the issue, and I think you are right here about the fact the body element does not need to fill the viewport in this case (though I am not sure whether a spec requires it or not).

I'm happy to report I fixed that in the test, because this issue is not relevant to the test anyway.
https://github.com/w3c/csswg-test/commit/c75f2b14733b277919542e464431731f32ba786d

Microsoft Edge is now tracking the issue as #104867: <body> element sized to viewport, rather than zero height. I am not sure when we will be able to provide a fix for the issue, though. Since we match Chrome, it is likely this issue will never get fixed, so I would encourage you to log the issue on your end, too.

If you could possibly look for a specification invalidating Edge and Chrome behavior, that could help fixing this issue. Otherwise, maybe you might want to match. I'll leave that up to you.
(Reporter)

Comment 4

3 years ago
It doesn't seem to me you match Chrome. I just tested Chrome, and it seems to me it shows a whole page of red for the original test as well.

Comment 5

3 years ago
Interesting. The bug did include a test case where we matched Chrome on this.
I should try to dig this deeper, thanks for mentioning it.

Comment 6

3 years ago
Ok, final comments here is that we match Chrome in Quirks mode, and Firefox matches Chrome in standards mode.

- Edge: Body always fills up the viewport
- Firefox: Body never fills up the viewport
- Chrome: Body fills up the viewport only in quirks mode
You need to log in before you can comment on or make changes to this bug.