Closed Bug 827799 Opened 7 years ago Closed 7 years ago

Visually Hidden HTML 5 technique does not hide the caption in a table

Categories

(Core :: Web Painting, defect)

16 Branch
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dylan, Assigned: bzbarsky)

Details

(Keywords: dev-doc-needed, testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11

Steps to reproduce:

Apply the visuallyhidden style from http://davidwalsh.name/html5-boilerplate to a table with a caption.


Actual results:

Everything in the table is hidden except the caption.


Expected results:

Everything including the caption should have been hidden
1) Check, if problem exists in current nightly version from http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-21.0a1.en-US.mac.dmg
2) If yes, attach to this bug simple testcase showing the issue
Component: Untriaged → Style System (CSS)
Flags: needinfo?(dylan)
Product: Firefox → Core
Phoenix, you can put the testcase together pretty easily from the link, no?  I'll attach it in a sec.

It's not clear to me what the right behavior here is per spec, for a table...  In particular, the overflow property does NOT apply to tables per spec as far as I can see, so there's no obvious reason the caption would be hidden.  But the clip should work, I would think...
Component: Style System (CSS) → Layout: View Rendering
Flags: needinfo?(roc)
Attached file Testcase
That sounds right. ::-moz-table-outer should probably inherit "clip".
Flags: needinfo?(roc)
Flags: needinfo?(dylan)
Keywords: testcase
OS: Mac OS X → All
Hardware: x86 → All
Assignee: nobody → bzbarsky
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [need review]
Adding dev-doc-needed, it will be a good opportunity to document ::-moz-table-outer on the MDN.
Keywords: dev-doc-needed
The current situation with dev-doc-needed is that it's a no-op.  If you think there should be docs, you need to find someone (possibly yourself) to do them....
Yep, that's the idea. Dev-doc-needed appear in our tracker tool (even a long time after the release with the fix). Though we don't have the resource to take care of all of them, they still appear. I try to take care of all CSS-related dev-doc-needed once every month or so (depending of my time).

Also use the dev-doc-needed/complete list for a release in the process leading to the Release Notes (via the Aurora meeting).

And this bug, once fixed, is good candidate for our "Site compatibility for Firefox XY" and "Firefox XY for developers" page too. (Though the inclusion in these is not enough to clear the flag, ddn/ddc bugs are used to fill these pages too)

So dev-doc-needed, even if it doesn't lead to the proper doc to be automatically written, has some useful purposes ;-)
https://hg.mozilla.org/integration/mozilla-inbound/rev/a2ae519be9bd
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla21
https://hg.mozilla.org/mozilla-central/rev/a2ae519be9bd
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.