New issue
Advanced search Search tips

Issue 695949 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 771852
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

SVG foreign object should clip descendants.

Project Member Reported by flackr@chromium.org, Feb 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) Visit http://jsbin.com/damonik/edit?html,output

What is the expected result?
Expect the green box to be 100x100.

What happens instead?
Instead, in chrome 56.0.2924.87 it is oddly drawn to the next tile boundary (resize the html view and see the size change) and in 58.0.3023.0 it is clipped to the svg box (200x200).

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Labels: ComponentLabelSource-Team OS-All
Status: Available (was: Untriaged)
Trying out new custom label to identify the source of our incoming bugs.
Labels: -ComponentLabelSource-Team PaintTeamTriaged-20170224 BugSource-Team
Project Member

Comment 3 by sheriffbot@chromium.org, Mar 6 2018

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. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: chrishtr@chromium.org
Components: Blink>SVG
Labels: -Pri-3 -Hotlist-Recharge-Cold -PaintTeamTriaged-20170224 -BugSource-Team Pri-2
Status: Available (was: Untriaged)
Still wrong. One to fix in the course of Slimming Paint, maybe, or adjusting adjusting the containing block model.
Cc: f...@opera.com
In SPv175, if overflow:hidden is added to <foreignObject>, this example will draw as expected.

@fs: seems we should add overflow:hidden to the UA stylesheet for foreignObject?

Comment 6 by f...@opera.com, Mar 7 2018

We have that already [1], so something more must be broken. (The mixed case has been trouble before...)

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/svg.css?type=cs&l=48
Weird. Adding overflow:hidden to the <foreignObject> fixes it.
I hacked svg.css to lowercase foreignObject and it worked. Bug in CSS.

Comment 9 by f...@opera.com, Mar 7 2018

Looks like the other rules that should apply to foreignObject also don't apply. Similarly with textPath so almost certainly something with the camelCase.
It seems to work for an invented tag, and camelCase-ing existing elements
like <div>. Seems to be something special about SVG parsing. Maybe
SVG elements have a special parser?

Comment 11 by f...@opera.com, Mar 7 2018

When inline in HTML <svg> will cause the HTML parser to switch to "foreign content mode" the HTML parser (tree builder) is then supposed to normalize the local name. I think that's the interesting bit parsing-wise. There are additional quirks wrt HTML casing and selectors.
Mergedinto: 771852
Status: Duplicate (was: Available)
I broke off  issue 819814  for the CSS issue.

Dup-ing the rest into 771852.

Sign in to add a comment