Computed value of border-radius with calc(percentage) is incorrect
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
People
(Reporter: bugzilla, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
Attachments
(3 files, 1 obsolete file)
| Reporter | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
| Reporter | ||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
| Reporter | ||
Comment 4•7 years ago
|
||
Emilio,
I hope to submit that Bugzilla-getComputedStyle-border-radius.html test under a different and more suitable filename to WPT this week.
As for
.../third_party/WebKit/LayoutTests/css3/calc/getComputedStyle-border-radius.html
it is not clear right now if and if so, when and how it will be submitted to WPT. But the initial desire is to submit it too.
| Assignee | ||
Comment 5•7 years ago
|
||
Yup, thanks Gérard! I got somewhat driven away from this trying to clean up all the things, because the patch as-is was getting a few failures. Getting almost there :)
| Reporter | ||
Comment 6•7 years ago
|
||
The filename is
getComputedStyle-border-radius-002.html
and I have created a pull request to submit it to the web platform tests repository:
https://github.com/web-platform-tests/wpt/pull/14987
Integration tests have passed, so now, it is only a matter of getting a reviewer to merge the pull request.
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Comment 8•7 years ago
|
||
| Assignee | ||
Comment 9•7 years ago
|
||
The euclid size is not really used for anything. Also rename it to Size2D to
avoid cbindgen conflicts with values::length::Size.
Depends on D20958
| Assignee | ||
Comment 10•7 years ago
|
||
The test in https://github.com/web-platform-tests/wpt/pull/15423 hasn't been
synced over yet, but it passes with this patch of course.
Depends on D20959
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=230410238&repo=autoland&lineNumber=2738
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=230410447&repo=autoland&lineNumber=16807
Backout link: https://hg.mozilla.org/integration/autoland/rev/987a62667969a5f88f8c3f4693299e097db60daf
| Assignee | ||
Comment 16•7 years ago
|
||
Oh, it was a bit tricky to find the actual error from the log:
/builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ServoStyleConsts.h:1456:12: runtime error: load of value 228, which is not a valid value for type 'bool'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ServoStyleConsts.h:1456:12 in
| Assignee | ||
Comment 17•7 years ago
|
||
Well that's interesting. I guess I can do an ASAN build.
Comment 18•7 years ago
|
||
| Assignee | ||
Comment 19•7 years ago
|
||
Oh blerg, of course, StyleBasicShape::mRadius gets compared unconditionally, but only initialized in the Inset case. I didn't realize that nsStyleCorners was PodZero'd
Comment 20•7 years ago
|
||
| bugherder | ||
Updated•7 years ago
|
| Reporter | ||
Comment 21•7 years ago
|
||
https://wpt.fyi/results/css/css-values/getComputedStyle-border-radius-002.html?label=master
Thank you Emilio :)
Marking as VERIFIED
Description
•