Skip to content
This repository was archived by the owner on Jul 27, 2018. It is now read-only.

Fix the open tab. - #492

Merged
gordonbrander merged 1 commit into
browserhtml:masterfrom
Gozala:open-tab
Jul 15, 2015
Merged

gordonbrander merged 1 commit into
browserhtml:masterfrom
Gozala:open-tab

Conversation

@Gozala

@Gozala Gozala commented Jul 15, 2015

Copy link
Copy Markdown
Contributor

Fix for #484

@Gozala Gozala mentioned this pull request Jul 15, 2015
4 of 6 tasks
Comment thread src/browser/web-view.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: collapse is an obscure property value meant for tables. We're taking advantage of the fact that it falls back to hidden on non-table elements. Better to use hidden. https://developer.mozilla.org/en-US/docs/Web/CSS/visibility

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: collapse is an obscure property value meant for tables. We're taking advantage of the fact that it falls back to hidden on non-table elements. Better to use hidden. https://developer.mozilla.org/en-US/docs/Web/CSS/visibility

The problem with hidden is that unlike collapse it still takes up a space even though it is not displayed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this might be relying on a bug in our implementation. From https://developer.mozilla.org/en-US/docs/Web/CSS/visibility.

For table rows, columns, column groups, and row groups the row(s) or column(s) are hidden and the space they would have occupied is removed (as if display: none were applied to the column/row of the table). For other elements, collapse is treated the same as hidden.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want display: none we should probably use display:none.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed a bug to follow up on this #495

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants