Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dimensions: Add offset prop fallback to FF for unreliable TR dimensions#4808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

timmywil
Copy link
Member

@timmywiltimmywil commentedNov 10, 2020
edited
Loading

Fixesgh-4529

Summary

Firefox incorrectly (or perhaps correctly) includes table borders in computed
dimensions, but they are the only one. Workaround this by testing for it and
falling back to offset properties.

This applies to latest FF and so needs to go on master as well.

Checklist

+203 bytes

Firefox incorrectly (or perhaps correctly) includes table borders in computeddimensions, but they are the only one. Workaround this by testing for it andfalling back to offset propertiesFixesjquerygh-4529
Copy link
Member

@mgolmgol left a comment

Choose a reason for hiding this comment

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

Support tests are coming back! Logic looks good to me, I just hope we can limit the size increase a bit. Some of it is expected, modifying an existing test is cheaper than creating a new one when there's none at the moment.

I added some comments.

@mgolmgol added Dimensions Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelsNov 10, 2020
@mgolmgol added this to the4.0.0 milestoneNov 10, 2020
Copy link
Member

@mgolmgol left a comment

Choose a reason for hiding this comment

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

Looks good, just one doubt about a comment. Thanks! 🙂

Comment on lines +149 to +154
// Support: IE 10 - 11+
// IE misreports `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Support: Firefox 70+
// Firefox includes border widths
// in computed dimensions for table rows. (gh-4529)
Copy link
Member

Choose a reason for hiding this comment

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

Back when we had lots of support comment, when code was guarded by one, we usually didn't comment what gets worked around as the support comment above the support test was explaining that anyway. Maybe we can remove this comment in that case here.

Copy link
Member

Choose a reason for hiding this comment

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

Although, I see we have a similar comment on3.x-stable here so I'm fine either way.

@timmywiltimmywil removed the Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelDec 7, 2020
@timmywiltimmywil merged commit3bbbc11 intojquery:masterJan 11, 2021
@timmywiltimmywil deleted the 4529-ff-table-borders-master branchJanuary 11, 2021 16:56
@parallels999
Copy link

@timmywil is#5270 related?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mgolmgolmgol approved these changes

Assignees
No one assigned
Labels
Milestone
4.0.0
Development

Successfully merging this pull request may close these issues.

Firefox 70 fails the "dimensions: width/height on a table row with phantom borders (gh-3698)" test
3 participants
@timmywil@parallels999@mgol

[8]ページ先頭

©2009-2025 Movatter.jp