Closed
Bug 638911
Opened 15 years ago
Closed 11 years ago
clear.com buttons aren't aligned correctly
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: sayrer, Unassigned)
References
()
Details
Attachments
(1 file)
|
349.41 KB,
image/png
|
Details |
In Firefox 3.6, the button doesn't get gradient styling and looks right. In, Firefox 4, gradient styling that webkit gets is applied, but the button's alignment is off.
| Reporter | ||
Comment 1•15 years ago
|
||
this could well be a site bug, but I'm filing anyway.
Keywords: regression
| Reporter | ||
Comment 2•15 years ago
|
||
Updated•15 years ago
|
URL: http://www.clear.com
| Reporter | ||
Updated•15 years ago
|
URL: http://www.clear.com
| Reporter | ||
Updated•15 years ago
|
URL: http://www.clear.com
Comment 3•15 years ago
|
||
The DOM is different in Fx4 and Fx3.6. In Fx3.6, it looks like this:
<a style="some-styles">Text</a>
In Fx4, it looks like this:
<a style="some-styles"><span style="some-styles">Text</span></a>
If I use the latter DOM with 3.6, it shows the same misalignment. So do Chrome, Opera, Safari. It's he expected rendering given the styles on the <span>. In particular, the <a> is 20px high, and so is the <span> but the <span> is given top padding, so sticks out the bottom.
On the site itself, Opera gets the Fx4 DOM (and shows the same misalignment) while Chrome/Safari get the Fx3.6 DOM.
Looks like this is the culprit (in public/js/cmn/global.js):
function buttonRounder(){
if(!$.support.borderRadius){
$("a.button, span.button, button").each(function() {
if(!$(this).find("span").length) {
$(this).wrapInner("<span />")
}
})
}
}
combined with:
jQuery.support.borderRadius=false;
jQuery.each(["BorderRadius", "MozBorderRadius", "WebkitBorderRadius",
"OBorderRadius", "KhtmlBorderRadius"],
function() {{if(document.body.style[this]!==undefined)
{jQuery.support.borderRadius=true} }
kinda stuff.
In Fx4 we dropped the prefixing on border-radius, so style.MozBorderRadius is not present. But neither is style.BorderRadius, of course. style.borderRadius is there, as expected.
This site just needs s/"BorderRadius"/"borderRadius"/.
Assignee: nobody → english-us
Component: Layout → English US
Keywords: regression
Product: Core → Tech Evangelism
QA Contact: layout → english-us
| Reporter | ||
Comment 4•15 years ago
|
||
I don't think we should worry about this site much. I browsed around clear.com's source for a while, and it looks like this site is actively maintained by someone who's very interested in web tech.
Comment 5•15 years ago
|
||
I sent them a feedback not, in any case.
Comment 6•11 years ago
|
||
The Web site has changed.
Assignee: english-us → nobody
Status: NEW → RESOLVED
Closed: 11 years ago
Component: English US → Desktop
Resolution: --- → INVALID
| Assignee | ||
Updated•7 years ago
|
Product: Tech Evangelism → Web Compatibility
You need to log in
before you can comment on or make changes to this bug.
Description
•