Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1780444] part 2: Add tests to ensure that text can be rendered in a textbox's inline-end padding area, but not in its inline-start padding area. #34929

Merged
merged 2 commits into from Jul 22, 2022

Conversation

moz-wptsync-bot
Copy link
Collaborator

(The inline-start test is kind of trivial; it's mostly there for
symmetry/completeness.)

I don't think the inline-end behavior is spelled out in any spec, but it seems
to be the consensus behavior among browsers at this point. Hence, I'm adding
the testcases with ".tentative" naming, due to the lack of authoritative
spec-text here.

I'll add block-axis equivalents of these tests in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D152330

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1780444
gecko-commit: a72984b399f7ab8911531c26644e37e2a97b8309
gecko-reviewers: emilio

…inline-end padding area, but not in its inline-start padding area.

(The inline-start test is kind of trivial; it's mostly there for
symmetry/completeness.)

I don't think the inline-end behavior is spelled out in any spec, but it seems
to be the consensus behavior among browsers at this point.  Hence, I'm adding
the testcases with ".tentative" naming, due to the lack of authoritative
spec-text here.

I'll add block-axis equivalents of these tests in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D152330

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1780444
gecko-commit: a72984b399f7ab8911531c26644e37e2a97b8309
gecko-reviewers: emilio
… validate that text can render in block-end padding but not block-start padding.

This patch was mostly generated automatically (based off of neighboring tests),
using the following bash script (executed in the "the-textarea-element"
directory):

```
for inlineVer in ./textarea-padding-i*; do
  blockVer=`echo $inlineVer | sed "s/padding-i/padding-b/"`
  hg cp $inlineVer $blockVer
  # Fix the link tags pointing to reference cases:
  sed -i s/-istart-/-bstart-/g $blockVer
  sed -i s/-iend-/-bend-/g $blockVer
  # Swap "block" and "inline" terminology throughout the new copy:
  sed -i s/block/TEMPORARY-FOO/g $blockVer
  sed -i s/inline/block/g $blockVer
  sed -i s/TEMPORARY-FOO/inline/g $blockVer
done
```

After running that script, I added one additional "overflow:hidden" declaration
to the generated "textarea-padding-bend-overlaps-content-001.tentative.html"
file (and an explanatory comment), to suppress scrollbars that get generated
specifically for block-axis end-edge padding overflow.

Differential Revision: https://phabricator.services.mozilla.com/D152332

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1780444
gecko-commit: fb5353c55f7a9f79ede9ed97916ebf2a1b6d5372
gecko-reviewers: emilio
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit a3a24b5 into master Jul 22, 2022
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1780444 branch July 22, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants