New issue
Advanced search Search tips

Issue 781135 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug

Blocking:
issue 874753



Sign in to add a comment

LEGEND elements force display:block

Reported by tgn...@gmail.com, Nov 3 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. make legend tag and add some text
2. apply inline block style to legend tag
3. then, you can see legend block consume all length instead of the contents length in legend tag.

What is the expected behavior?
legend tag applied by inline-block style should consume the length of the contents in its tag.

What went wrong?
css style.

Did this work before? Yes 60 version worked correctly.

Chrome version: 61.0.3163.100  Channel: n/a
OS Version: OS X 10.12.6
Flash Version:
 
스크린샷 2017-11-03 오후 5.10.39.png
10.1 KB View Download
스크린샷 2017-11-03 오후 5.10.57.png
9.7 KB View Download
스크린샷 2017-11-03 오후 5.11.29.png
15.9 KB View Download

Comment 1 by woxxom@gmail.com, Nov 3 2017

Please attach a test.html that exhibits the problem.

Comment 2 by tgn...@gmail.com, Nov 3 2017

https://jsfiddle.net/6naL97vm/

you can see in this page.

please check a difference between latest IE and chrome.
Labels: Needs-Triage-M62 Needs-Bisect
Components: Blink>CSS

Comment 5 by woxxom@gmail.com, Nov 4 2017

Bisect info: 480789 (good) - 480791 (bad)
https://chromium.googlesource.com/chromium/src/+log/14f53c5b..8f3cf861?pretty=fuller
Suspecting r480791 - 8f3cf8617dc8c27d6b0155dd775d4beebd58d62c
"Update LEGEND implementation to better match the spec"
Landed in 61.0.3137.0

Looks like the new behavior is intended and correctly matches the updated specification:
>overriding any explicit 'display' value

The <legend> element can be used only in <fieldset>:
https://html.spec.whatwg.org/multipage/form-elements.html#the-legend-element
Cc: msten...@opera.com pnangunoori@chromium.org
Labels: -Needs-Bisect hasbisect-per-revision OS-Linux OS-Windows
Owner: szager@chromium.org
Status: Assigned (was: Unconfirmed)
Tested on Chrome Stable#62.0.3202.75, Canary#64.0.3260.0 on Mac 10.12.6, Windows 10 and Ubuntu 14.04  and able to reproduce the issue.
 
Please find the bisect info below:
Chrome Good Build - 61.0.3136.0 (480665)
Chrome Bad Build -61.0.3137.0 (481056)

You are probably looking for a change made after 480790 (known good), but no later than 480791 (first known bad).

CHANGELOG URL:
https://chromium.googlesource.com/chromium/src/+log/758742204e186ac83e73b4a393bdfaa660e2ca15..8f3cf8617dc8c27d6b0155dd775d4beebd58d62c

https://chromium.googlesource.com/chromium/src/+/8f3cf8617dc8c27d6b0155dd775d4beebd58d62c

Review-URL:
https://chromium-review.googlesource.com/535595

From the CL above, assigning the issue to the reviewer.

@szager: Could you please look into the issue as we were unable to assign to mstensho@, pardon me if it has nothing to do with the above changes and if possible please assign it to owner concerned.

Thanks!

Comment 7 by meade@chromium.org, Nov 7 2017

Labels: Hotlist-Interop

Comment 8 by meade@chromium.org, Nov 7 2017

Labels: Update-Quarterly
Components: -Blink>CSS Blink>Layout
Blocking: 874753
Cc: -msten...@opera.com mstensho@chromium.org
Summary: LEGEND elements force display:block (was: Legend css tag does not work.)
LEGEND elements are supposed to allow any display type, after blockification. Spec work in progress here: https://github.com/whatwg/html/pull/3934/files
 Issue 879573  has been merged into this issue.
Cc: szager@chromium.org
Owner: mstensho@chromium.org
Project Member

Comment 15 by bugdroid1@chromium.org, Sep 19

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3bc5404659b20bec0948f0af3b3115fb9d8664fa

commit 3bc5404659b20bec0948f0af3b3115fb9d8664fa
Author: Morten Stenshorne <mstensho@chromium.org>
Date: Wed Sep 19 15:19:03 2018

Allow any blockified display type for LEGEND.

Fixed one test that I expected to pass, but didn't because it was
pointing to the wrong ref. Fixed that, and now it passes. Updated
some expectation files. More stuff from various tests (but not
whole tests) is passing than before.

Bug:  781135 
Change-Id: Ieb1312b8bf13c7a45afe644ad2a58f3f955044b6
Reviewed-on: https://chromium-review.googlesource.com/1228073
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592403}
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/TestExpectations
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-display-expected.txt
[add] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-grid-flex-multicol-expected.txt
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-list-item.html
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/platform/linux/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-sans-fieldset-display-expected.txt
[delete] https://crrev.com/3cbb8c9aeac96ef999816bf2ce2ffd826a08cfe4/third_party/WebKit/LayoutTests/platform/mac/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-grid-flex-multicol-expected.txt
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/platform/mac/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-sans-fieldset-display-expected.txt
[delete] https://crrev.com/3cbb8c9aeac96ef999816bf2ce2ffd826a08cfe4/third_party/WebKit/LayoutTests/platform/win/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-grid-flex-multicol-expected.txt
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/WebKit/LayoutTests/platform/win/external/wpt/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-sans-fieldset-display-expected.txt
[modify] https://crrev.com/3bc5404659b20bec0948f0af3b3115fb9d8664fa/third_party/blink/renderer/core/css/resolver/style_adjuster.cc

Status: Fixed (was: Assigned)

Sign in to add a comment