New issue
Advanced search Search tips

Issue 849855 link

Starred by 2 users

Issue metadata

Status: Fixed
Closed: Jun 2018
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Sign in to add a comment

[css-logical] Logical size properties compute to old value

Project Member Reported by, Jun 5 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce the problem:
Run this code in the console: = "10px";
  document.body.offsetLeft; = "50px";
  console.log(getComputedStyle(document.body).inlineSize); // 10px
  console.log(getComputedStyle(document.body).width); // 50px

What is the expected behavior?
Both "inline-size" and "width" compute to "50px".

What went wrong?
The computed value of "inline-size" is "10px".

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 68.0.3437.0  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 29.0 r0

It's the same for block-size. But min and max sizing properties don't seem affected.
313 bytes View Download
Labels: Needs-Triage-M68

Comment 2 by, Jun 6 2018

Summary: [css-logical] Logical size properties compute to old value (was: Logical size properties compute to old value)

Comment 3 by, Jun 7 2018

Labels: -OS-Linux -Needs-Triage-M68
Status: Available (was: Unconfirmed)
This is causing failures in:
Project Member

Comment 4 by, Jun 26 2018

The following revision refers to this bug:

commit 79cd1eee97e64e7f08dd4cc8ed846b73c7bb5859
Author: Oriol Brufau <>
Date: Tue Jun 26 20:55:48 2018

[css-logical] Fix computed style of logical size properties

Unlike 'width' and 'height', 'inline-size' and 'block-size' were not
considered to be layout dependent, and thus getComputedStyle could
provide a wrong value.

BUG= 849855 


The test still has some failures because sideways writing modes have not
been implemented yet (

Change-Id: I4ee8ed8b2cd575fb3ddd5226b23c6a4bb843b81f
Commit-Queue: Oriol Brufau <>
Reviewed-by: Rune Lillesveen <>
Cr-Commit-Position: refs/heads/master@{#570527}

Comment 5 by, Jun 26 2018

Status: Fixed (was: Available)

Sign in to add a comment