New issue
Advanced search Search tips

Issue 804145 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 798288



Sign in to add a comment

Node::ComputedStyle() is null on <span style='display: none'>

Project Member Reported by xiaoche...@chromium.org, Jan 21 2018

Issue description

Chrome Version: ToT
Found in crrev.com/c/877739

What steps will reproduce the problem?
(1) Set body.innerHTML = "<span style='display:none'>\t</span>" in a unit test inheriting from PageTestBase
(2) Update style and layout
(3) Check ComputedStyle() of the span

What is the expected result?

ComputedStyle() returns non-null result.

What happens instead?

ComputedStyle() returns null


If I understand correctly, Node::ComputedStyle() should return non-null result as long as style is clean? Am I right, or what is the condition for ComputedStyle() to be null?
 
When display is none, we don't compute the style of an element or its descendants.
Status: WontFix (was: Untriaged)
Thanks! Closing this issue according to #1.

Sign in to add a comment