New issue
Advanced search Search tips

Issue 758596 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Weird getComputedStyle value for pseudo-elements on layout-dependent properties.

Project Member Reported by eco...@igalia.com, Aug 24 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)

What steps will reproduce the problem?
(1) Open attached test-case.

What is the expected result?

"auto" is alerted, since it's the default computed value for the width property.

What happens instead?

The width of the element, not the pseudo-element, is alerted.
 
test.html
102 bytes View Download

Comment 1 by eco...@igalia.com, Aug 24 2017

Comment 2 by eco...@igalia.com, Aug 24 2017

The issue is that we grab the styled_node's LayoutObject in getPropertyCSSValue, but styled_node is the element if there's no pseudo-element.

Comment 3 by emilio@chromium.org, Aug 27 2017

Owner: emilio@chromium.org
Status: Started (was: Untriaged)
Seems an easy fix, so will take it.

These kind of web-compat issues annoy me :)

Patch at https://chromium-review.googlesource.com/c/chromium/src/+/636965, tests at https://github.com/w3c/web-platform-tests/pull/7020.
Labels: Hotlist-Interop
Labels: Update-Quarterly

Comment 7 by emilio@chromium.org, Aug 29 2017

Status: Fixed (was: Started)

Sign in to add a comment