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

User Agent style for href hyperlinks and focusable elements #128

Open
fred-wang opened this issue Jun 4, 2019 · 11 comments
Open

User Agent style for href hyperlinks and focusable elements #128

fred-wang opened this issue Jun 4, 2019 · 11 comments

Comments

@fred-wang
Copy link
Contributor

fred-wang commented Jun 4, 2019

cc @rwlbuis, @bkardell, @emilio

In 4f34194, I updated a bit the paragraph for href. The suggested style is:

:any-link {
  color: blue;
  text-decoration: none;
}

Chromium's one is:

:any-link {
    color: -webkit-link;
    cursor: pointer;
}

:any-link:active {
    color: -webkit-activelink
}

:-internal-spatial-navigation-interest {
    outline: auto 1px -webkit-focus-ring-color;
    box-shadow: none !important
}

:focus {
    outline: auto 1px -webkit-focus-ring-color
}

WebKit's one is

:any-link {
  color: -webkit-link;
  cursor: auto;
}
:any-link:active {
  color: -webkit-activelink;
}
:focus {
  outline: auto 5px -webkit-focus-ring-color
}

 
Firefox's one is:

:any-link {
    text-decoration: none !important;
 }

We need consistent style.

@fred-wang
Copy link
Contributor Author

MathML elements with tabIndex are also focusable and it would be good to have style for :focus too.

@fred-wang
Copy link
Contributor Author

I'm adding this one to Gecko (copied from svg):

*:-moz-focusring {
  /* Don't specify the outline-color, we should always use initial value. */
  outline: 1px dotted;
}

@fred-wang fred-wang changed the title User Agent style for href hyperlinks User Agent style for href hyperlinks and focusable elements Sep 14, 2019
@bkardell
Copy link
Collaborator

bkardell commented Feb 4, 2020

We need consistent style.

Do we? Is this true of links in general in the UA sheets?

@fred-wang
Copy link
Contributor Author

We need consistent style.

Do we? Is this true of links in general in the UA sheets?

I don't think this is true in general. But would be nice to make things more consistent if possible :-)

@NSoiffer
Copy link
Contributor

NSoiffer commented Feb 7, 2020

If they differ between browsers, should we be consistent with the browser's styling?

@fred-wang
Copy link
Contributor Author

there was no clear consensus, but likely we won't have interoperable for now. would be good to check what html and svg do.

regarding link in math, Murray said office only makes the link blue, without underline

@NSoiffer
Copy link
Contributor

At the meeting today, we checked and SVG says very little in their stylesheet about links, definitely not colors. It was also noted that this issue is basically irrelevant now since Level 1 won't likely have links, although focusable elements might be relevant. Brian thought that some tests about that might be relevant.

@fred-wang
Copy link
Contributor Author

@bkardell So can we go ahead and remove the href attribute and all related link stuff from the current spec?

@bkardell
Copy link
Collaborator

It would be great if we could fork a draft L2 first, but yes.

@fred-wang
Copy link
Contributor Author

@bkardell OK, I'll do that tomorrow. My plan was to open a PR to the mathml-core repo like I did for other things removed, so we still have the original text available somewhere.

@NSoiffer
Copy link
Contributor

NSoiffer commented Oct 6, 2020

As per the core meeting today, I'm removing the 'need resolution' and other labels and adding 'level 2'. It looks like the spec is up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants