Skip to content
Permalink
Browse files
border-radius on html does not render properly.
https://bugs.webkit.org/show_bug.cgi?id=135706

Reviewed by Simon Fraser.

Ensure that background is initialized when border-radius is present.

Source/WebCore:

Test: fast/borders/border-radius-on-html.html

* rendering/RenderView.cpp:
(WebCore::rendererObscuresBackground):

LayoutTests:

* fast/borders/border-radius-on-html-expected.html: Added.
* fast/borders/border-radius-on-html.html: Added.


Canonical link: https://commits.webkit.org/153579@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
alanbujtas committed Aug 7, 2014
1 parent 60cc6d8 commit 4472756e3cf06c6d84d30f4b34623253ecfe37ec
Showing 5 changed files with 66 additions and 0 deletions.
@@ -1,3 +1,15 @@
2014-08-07 Zalan Bujtas <zalan@apple.com>

border-radius on html does not render properly.
https://bugs.webkit.org/show_bug.cgi?id=135706

Reviewed by Simon Fraser.

Ensure that background is initialized when border-radius is present.

* fast/borders/border-radius-on-html-expected.html: Added.
* fast/borders/border-radius-on-html.html: Added.

2014-08-07 Mark Hahnenberg <mhahnenberg@apple.com>

for-in is failing fast/dom/dataset-xhtml.xhtml and dataset.html tests
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>This tests that border-radius on html renders correctly.</title>
<style>
body {
margin: 0px;
}
div {
border-radius: 100%;
background-color: green;
}
</style>
</head>
<body>
<div id=foo></div>
<script>
var container = document.getElementById("foo");
container.style.width = window.innerWidth + "px";
container.style.height = window.innerHeight + "px";
</script>
</body>
</html>
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>This tests that border-radius on html renders correctly.</title>
<style>
html {
border-radius: 100%;
background-color: green;
}
</style>
</head>
<body>
</body>
</html>
@@ -1,3 +1,17 @@
2014-08-07 Zalan Bujtas <zalan@apple.com>

border-radius on html does not render properly.
https://bugs.webkit.org/show_bug.cgi?id=135706

Reviewed by Simon Fraser.

Ensure that background is initialized when border-radius is present.

Test: fast/borders/border-radius-on-html.html

* rendering/RenderView.cpp:
(WebCore::rendererObscuresBackground):

2014-08-07 Pratik Solanki <psolanki@apple.com>

Random resource replacement on beta.icloud.com
@@ -523,6 +523,9 @@ static inline bool rendererObscuresBackground(RenderElement* rootObject)
if (rootObject->rendererForRootBackground().style().backgroundClip() == TextFillBox)
return false;

if (style.hasBorderRadius())
return false;

return true;
}

0 comments on commit 4472756

Please sign in to comment.