Skip to content

[css-ui-3] Cursor test udpate#7894

Merged
frivoal merged 2 commits intoweb-platform-tests:masterfrom
frivoal:cursor-test-udpate
Oct 19, 2017
Merged

[css-ui-3] Cursor test udpate#7894
frivoal merged 2 commits intoweb-platform-tests:masterfrom
frivoal:cursor-test-udpate

Conversation

@frivoal
Copy link
Contributor

@frivoal frivoal commented Oct 19, 2017

This adjusts and completes the test suite, reflecting the changes resolved in w3c/csswg-drafts#1598 (comment)

(Also fixes a nearby test description while we're at it).

The assertion in this test did not match what the test was doing,
and was probably a copy+paste leftover.
This adjusts and completes the test suite, reflecting the changes
resolved in
w3c/csswg-drafts#1598 (comment)
@ghost
Copy link

ghost commented Oct 19, 2017

Build PASSED

Started: 2017-10-19 06:51:15
Finished: 2017-10-19 07:00:05

View more information about this build on:

Copy link
Member

@mrego mrego left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor comments inline feel free to ignore them.

<title>CSS Basic User Interface Test: cursor:auto on unselectable text</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#content-selection">
Copy link
Member

Choose a reason for hiding this comment

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

Just a question, this is linking to css-ui-4 but this folder is css-ui-3.
I think the current agreement is that we'll end up having only one folder for each spec,
but letting you know just to be sure this is not a mistake.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is primarily a test about css-ui-3, so it is in the level 3 directory, and has a link to level 3. But it does (optionally, thanks to @supports) depend on a level 4 feature, so I'm linking to that too.

/* Hide the text if we cannot make it unselectable.
user-select is not part of css-ui level 3, so we should not depend on it
but it is nice to test it if it is supported.
Test for level 4 can take the conditional out. */
Copy link
Member

Choose a reason for hiding this comment

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

Ok, I guess this explains that the link to css-ui-4 was done in purpose. 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right.

.unselectable {
display: block;
user-select: none;
-webkit-user-select: none; /* Yes, vendor prefixes are ugly. But this one was grandfathered in and support is required by spec. */
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I usually see vendor prefix before the actual property like:

  -webkit-user-select: none;
  user-select: none;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. In this case, they are (by spec) required to do the same thing, so it doesn't matter much. And making a change will trigger a new round of review, which I'd rather skip.

<p>Place the cursor into the orange box for a reference of what this should look like.</p>
<div id=test>
<!-- text in a button is either not considered text because it's in a replaced element,
or it is text but it is unselectable, eitherway, we should get the default cursor-->
Copy link
Member

Choose a reason for hiding this comment

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

Super-nit: Dunno if there are any guidelines about this, but the rest of the comments in the test are full sentences (starting uppercase and finishing with a dot). Maybe you want to do the same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll be careful next time. But I don't think that's worth another round trip through the review system, so the world will have to live with my sub-par capitalization.

@frivoal frivoal merged commit 169bae3 into web-platform-tests:master Oct 19, 2017
@frivoal frivoal deleted the cursor-test-udpate branch October 19, 2017 14:31
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.

2 participants