New issue
Advanced search Search tips

Issue 736679 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Feature



Sign in to add a comment

css resize property should work on images regardless of overflow

Reported by friv...@gmail.com, Jun 26 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:54.0) Gecko/20100101 Firefox/54.0

Steps to reproduce the problem:
Open the following test files from the W3C CSS-UI-3 test suite:

img: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-008/format/html5/
svg: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-009/format/html5/
picture: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-010/format/html5/
object: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-011/format/html5/
iframe: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-012/format/html5/
canvas: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-013/format/html5/
video: https://test.csswg.org/harness/test/css-ui-3_dev/single/resize-014/format/html5/

What is the expected behavior?
The tests should pass

What went wrong?
The tests fail

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 61  Channel: canary
OS Version: OS X 10.11
Flash Version: Shockwave Flash 26.0 r0

Quote from the spec:

UAs may also apply [the resize property], regardless of the value of the overflow property, to replaced elements representing images or videos, such as img, video, picture, svg, object, or canvas.
 

Comment 1 by friv...@gmail.com, Jun 26 2017

Oops, I included the iframe test in the list above, but that passes. The rest does fail.
Labels: Needs-Bisect Needs-Triage-M61
Components: -Blink>CSS Blink>Layout
My guess is this is layout rather than style?
Cc: pnangunoori@chromium.org
Labels: -Needs-Bisect Needs-Feedback
Tested on Chrome Canary #61.0.3142.0 on Mac Mac 10.12.5 and compared the behavior of the provided links in Canary, FireFox and Safari. 

Except for the iframe, behavior of all the provided links is same. Height and width of the Orange boxes can't be adjusted. Screencast of the behavior is attached.

For iframe different behavior is noticed in different browsers:
Canary : Height and width can be expanded, but the size of the box remains same.
FirFox : Height and width can't be adjusted.
Safari : Box size varies with respective to the height and width but there is empty space seen.

@Reporter - could you please confirm which of the above is expected.

Thanks in advance.
736679.mov
10.4 MB Download

Comment 5 by friv...@gmail.com, Jun 27 2017

From the point of view of resizing, Chrome and safari are the same, and are both correct: the iframe is resizable. What's going on inside the iframe is different, but that's a separate issue about how to size svg content in an iframe. This should be looked into, but is unrelated.

For all the other types (img, canvas, video...), the specification now allows browsers to make them resizable as well. This is a somewhat recent addition, so  none of the browsers support that behavior yet, but the CSS Working Group has found that it would be useful, and would (likely) not cause web compat problems.

https://drafts.csswg.org/css-ui-3/#resize

Note that the spec "allows to" not "requires to", so it is OK if you do not allow resizing. Just less useful.
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 27 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "pnangunoori@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Blink>CSS
Labels: Needs-Feedback
Status: Untriaged (was: Unconfirmed)
Untriaging this issue based on the comment received from the reporter in comment#3.

Could someone from css team look into this issue please.

Components: -Blink>CSS
Labels: -Needs-Feedback
I strongly suspect this falls under layout.
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutBox.cpp?l=958

Comment 9 by e...@chromium.org, Jun 30 2017

Labels: -Type-Bug -Pri-2 Hotlist-GoodFirstBug Pri-3 Type-Feature
Status: Available (was: Untriaged)
Thanks frivoal!

Comment 10 by e...@chromium.org, Jun 30 2017

Labels: OS-Android OS-Chrome OS-Linux OS-Windows
Project Member

Comment 11 by sheriffbot@chromium.org, Jul 2

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment