Coder Social home page Coder Social logo

Comments (9)

rastapopougros avatar rastapopougros commented on July 30, 2024

Ah ben tiens ça m'est arrivé lundi ça, exactement. Faut choisir l'un ou l'autre mais pas les deux (est-ce que les navs qui stylent cette balise font tous un underline ?)

from tinytypo.

brunob avatar brunob commented on July 30, 2024

Chromium n'applique de text-decoration, d'où ma proposition de désactiver celui-ci pour Firefox et les autres navs qui le feraient.

from tinytypo.

7studio avatar 7studio commented on July 30, 2024

Voici une explication sur ce changement dans Fx : necolas/normalize.css#451 (comment) et une proposition/solution intéressante : necolas/normalize.css#468 (files changes).

from tinytypo.

rastapopougros avatar rastapopougros commented on July 30, 2024

Oui donc plutôt garder le underline que le border. Car en plus ça fait partie de la recommandation html officielle :
https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

from tinytypo.

lespacedunmatin avatar lespacedunmatin commented on July 30, 2024

Sauf que si ça ne fonctionne pas dans un nombre significatif de navigateurs, ça n’aide pas.

Et la solution à base de @supports introduit de la complexité…

from tinytypo.

rastapopougros avatar rastapopougros commented on July 30, 2024

Ah oui ok le "dotted" ya presque rien qui le supporte (enfin FF et tous les webkit mais avec le préfixe).

from tinytypo.

erational avatar erational commented on July 30, 2024

Le changement a été introduit par FF40
https://www.fxsitecompat.com/en-US/docs/2015/default-style-of-abbr-acronym-has-been-changed/

La solution https://github.com/necolas/normalize.css/pull/468/files ne fonctionne pas car la valeur text-decoration:underline dotted; n'est pas comprise par de nombreux navigateurs (dont chrome).

Le fix le plus simple à mon avis est d'ajouter text-decoration:none; pour désactiver la feuille FF.
J'essaie de faire une capture avec la font japonaise Meiryo (qui est à l'origine de ce changement chez Firefox) voir si c'est si moche que cela ...

from tinytypo.

erational avatar erational commented on July 30, 2024

Voici un aperçu avec du fix text-decoration:none; avec un texte utilisant la police japonaise causant le problème (Meiryo). Rien de choquant pour moi:
tinytypo

from tinytypo.

tetue avatar tetue commented on July 30, 2024

Merci pour votre vigilance et vos commentaires documentés. J'ai (enfin) pu corriger : en annulant le dotted que seul FF semble supporter pour l'instant.

Voir aussi : https://developer.mozilla.org/en-US/docs/Styling_Abbreviations_and_Acronyms

from tinytypo.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.