Bug 200423 - Wrong SVG intrinsic width when removing the height attribute and setting the viewBox attribute
Summary: Wrong SVG intrinsic width when removing the height attribute and setting the ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 200143
  Show dependency treegraph
 
Reported: 2019-08-03 18:41 PDT by Said Abou-Hallawa
Modified: 2019-08-05 10:13 PDT (History)
1 user (show)

See Also:


Attachments
test case (1.00 KB, text/html)
2019-08-03 18:41 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2019-08-03 18:41:43 PDT
Created attachment 375493 [details]
test case

Open the attached test case.

Expected: No alert messages and child <rect> element fills the whole SVG client rect.
Result: An alert message is invoked and the intrinsic with of the SVG is wrong.

Related WPT test is: https://wpt.fyi/results/svg/coordinate-systems/outer-svg-intrinsic-size-001.html?label=master&label=experimental
Comment 1 Said Abou-Hallawa 2019-08-03 18:47:55 PDT
Similarly, the SVG intrinsic height is not calculated correctly if the width attribute is removed and the viewBox attribute is set.

Related WPT test is: https://wpt.fyi/results/svg/coordinate-systems/outer-svg-intrinsic-size-002.html?label=master&label=experimental