Re: [csswg-drafts] [cssom] Don't use "applies to" to define getComputedStyle behavior (#3678)

So for https://drafts.csswg.org/cssom/#resolved-value-special-case-property-like-height with that case the only thing left is to define when they're resolved and how.

In Gecko, the check is "The element has a CSS layout box, and either the computed value of display is not inline, or the element is a replaced element".

In WebKit / Blink the check is "The element has a layout box, and `IsBox()` returns true for that". I'm not sure what that means exactly, would need to dig. But I suspect there's more behavior differences for e.g., SVG elements with display different than `inline` or such. The Gecko behavior is very easy to spec of course, but I think the Blink behavior also makes sense, so want to understand it better.

@kojiishi or @mstensho, do you know what would be a good-ish definition of what `LayoutObject::IsBox()` means in Blink? I get it means everything that inherits from LayoutBox, but that's not something that I could conceivably put into a spec.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3678#issuecomment-491518439 using your GitHub account

Received on Saturday, 11 May 2019 15:03:15 UTC