Closed Bug 292649 Opened 19 years ago Closed 11 years ago

resizing window makes white-color ridge borders disappear and reappear

Categories

(Core Graveyard :: GFX, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME
mozilla1.8beta2

People

(Reporter: eyalroz1, Assigned: zbraniecki)

References

Details

(Keywords: testcase)

Attachments

(2 files)

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
Depends on: 135394
Attached file testcase
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.
Keywords: testcase
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+
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
Alias: DisappearingRidge
I'm going to hoy in a reference to bug 134942 here.
I'm going to solve this with a method described in Comment 5.
Assignee: general → gandalf
Target Milestone: --- → mozilla1.8beta2
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.
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.
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
Attached file testcase
(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.

> 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 :)
(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
WFM in Firefox 24
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: