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

Added 24 tests and 6 references to cover issue 3066 #18122

Merged
merged 4 commits into from
Jul 28, 2019

Conversation

TalbotG
Copy link
Contributor

@TalbotG TalbotG commented Jul 27, 2019

This is a followup-to PR 18112.
These 24 tests, 6 reference files and 1 support file are closely related to the resolving of
Issue 3066: [css-writing-modes] Does vertical writing mode of an HTML body element cause an orthogonal flow?

@frivoal Florian,
I have adopted each and all of your corrections and suggestions listed in PR 18112. I wanted to continue to use pull request 18112 to make those modifications but could not (I am not mastering github yet) .

Again, once this pull request has been reviewed, approved and merged, then I (or someone else) can delete the following 5 unneeded tests and 1 reference file:

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-006.xht

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-008.xht

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-010.xht

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-011.xht

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-015.xht

http://web-platform-tests.live/css/css-writing-modes/wm-propagation-body-003-ref.xht

Copy link
Contributor

@frivoal frivoal left a comment

Choose a reason for hiding this comment

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

  • The two margins added to the div in tests -033, -037 are wrong: they make the test pass in error cases, and they should be removed. If the writing-mode is propagated from the body to the html element, then the box and the text will be aligned correctly without any margin. If it is not propagated, they will not align correctly, but we should not compensate, we should just let the test fail.
  • test -047 passes if sideways-lr is supported even if it is not propagated. Just like we fixed -042, we should add this too (sorry for not catching it the first time):
    html::before
    {
      content: "This text must be written sideways: vertically, with letters rotated 90 degrees.";
      text-orientation: upright; /* this has no effect with sideways-rl, but does with vertical-rl*/
    }

frivoal added 2 commits July 28, 2019 15:05
Switch the "this text must be vertical[...]" on the inside, rather than on the outside
of the document, to avoid making the text about the image having to be
on the corner ambiguous.
@frivoal
Copy link
Contributor

frivoal commented Jul 28, 2019

The fixes are quite small, I'm doing them myself.

Copy link
Contributor

@frivoal frivoal left a comment

Choose a reason for hiding this comment

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

Made the fixes I suggested, plus some cosmetic adjustments.

@frivoal frivoal merged commit c5c81ed into web-platform-tests:master Jul 28, 2019
@frivoal
Copy link
Contributor

frivoal commented Jul 28, 2019

once this pull request has been reviewed, approved and merged, then I (or someone else) can delete the following 5 unneeded tests and 1 reference file:

#18125

@TalbotG
Copy link
Contributor Author

TalbotG commented Jul 29, 2019

The two margins added to the div in tests -033, -037 are wrong: they make the test pass in error cases, and they should be removed.

After a long examination, you are correct!

There may be another problem with -033-ref : there should be no gap between the orange square and the image that says "Test passes if there is an orange square in the upper-left corner of the page."

This file
http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/wm-propagation-body-033-ref-2.html
is a closer and more exact representation of what the -033 and -037 tests should be rendering.

frivoal added a commit to frivoal/wpt that referenced this pull request Jul 29, 2019
@frivoal
Copy link
Contributor

frivoal commented Jul 29, 2019

Good catch. -033-ref is used by a few more files, which did use it correctly, so I found it easier to fix -033 and -037 than the ref and -040, -041, -048, -050, and -052. Fixing this with #18141

frivoal added a commit that referenced this pull request Jul 29, 2019
@TalbotG
Copy link
Contributor Author

TalbotG commented Jul 29, 2019

I found it easier to fix -033 and -037 than the ref and -040, -041, -048, -050, and -052.

This is best.

Thank you! :)

natechapin pushed a commit to natechapin/wpt that referenced this pull request Aug 23, 2019
natechapin pushed a commit to natechapin/wpt that referenced this pull request Aug 23, 2019
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.

4 participants