resizing window makes white-color ridge borders disappear and reappear

RESOLVED WORKSFORME

Status

Core Graveyard
GFX
RESOLVED WORKSFORME
12 years ago
3 years ago

People

(Reporter: Eyal Rozenberg, Assigned: gandalf)

Tracking

(Depends on: 1 bug, {testcase})

Trunk
mozilla1.8beta2
x86
Windows XP
testcase

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050128 Mnenhy/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050128 Mnenhy/0.7

In addition to the problem described in bug 135394, sometimes the border drawing
is dependent on the window size (and/or rest-of-the-page content, it seems).


Reproducible: Always

Steps to Reproduce:
1. Load the testcase
2. Play around with the window size
3. Borders disappear and reappear, even seemingly independently of each other
(Reporter)

Updated

12 years ago
Depends on: 135394
(Reporter)

Comment 1

12 years ago
Created attachment 182415 [details]
testcase
(Reporter)

Comment 2

12 years ago
Actually, it may be the case that the two bugs are not that related, since
trying to change the border color, even to, say, red or green, doesn't make the
bug go away.

Updated

12 years ago
Keywords: testcase

Comment 3

12 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050419
Firefox/1.0.4

I'm not seeing the borders disappear and reappear.
I am seeing this, with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2)
Gecko/20050502 Firefox/1.0+
(Reporter)

Updated

12 years ago
Alias: DisappearingRidge
Iirc, we need at least 3px border width to paint a ridged border, and "thin" is
thinner than that.  We should probably be falling back on "solid" instead.
Whiteboard: DUPEME

Updated

12 years ago
Alias: DisappearingRidge
I'm going to hoy in a reference to bug 134942 here.
(Assignee)

Comment 7

12 years ago
I'm going to solve this with a method described in Comment 5.
Assignee: general → gandalf
Target Milestone: --- → mozilla1.8beta2
(Reporter)

Comment 8

12 years ago
No, I think it's more important that the ridge remains rather than the thinness
remains. When an author specifies a thin ridge she would expect a ridge, and as
thin as is reasonable for a ridge to be. So I submit that interpreting the
'thin' as '3px' in such cases is the right way to go.
'thin' must (per spec) mean the same for all styles. For compatibility with the
Web, 'solid thin' must be 1px.

When we have high-resolution monitors, 'ridge thin' will be visible.
(Assignee)

Comment 10

12 years ago
Ian: so what we should do about this? Can we switch to solid if thin < 3px?
You can render a ridge all the way down to two device pixels (which might be a
very small distance, such as 0.01px, if you are on a high resolution device such
as a printer or a high res screen).

However, if there are not physically enough device pixels to render the ridge,
then yeah, I guess we should fall back to solid.
(Assignee)

Comment 12

12 years ago
First, I think that such patch should be for groove, ridge, outset and inset as
they all seems to work in similar way.
Second, the problem is that simplest possible patch does not solve the real
problem because switching to solid if border-color is white makes the whole
border invisible. If this is proper behaviour, patch is ready
Status: NEW → ASSIGNED
(Assignee)

Comment 13

12 years ago
Created attachment 185968 [details]
testcase
(Reporter)

Comment 14

12 years ago
(In reply to comment #12)
> Second, the problem is that simplest possible patch does not solve the real
> problem because switching to solid if border-color is white makes the whole
> border invisible. If this is proper behaviour, patch is ready

Of course this isn't proper behavior... _something_ must be drawn which could be
claimed to resemble a very thin ridge. I suppose a gray solid border would work,
but drawing nothing is exactly why this bug was opened.

(Assignee)

Comment 15

12 years ago
> but drawing nothing is exactly why this bug was opened.

No. The bug is about disappearing border while resizing window. My patch fixes
this issue. The only issue left here is that if user sets color of border to
white, it is white for border-width<3px;.

Imho it's not a bad solution, but Ian is the guru here :)
(Reporter)

Comment 16

12 years ago
(In reply to comment #15)
> No. The bug is about disappearing border while resizing window.

You're splitting hairs... :-( 

There is no way drawing a solid white border is acceptable behavior when a user
asks for a thin ridged border which is supposed to be mostly gray.
Product: Core → Core Graveyard
(Assignee)

Comment 17

4 years ago
WFM in Firefox 24
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME

Updated

3 years ago
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.