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

zh-cn: Format /web/css using Prettier (part 4) #14662

Merged
merged 3 commits into from
Jul 28, 2023
Merged

Conversation

queengooborg
Copy link
Collaborator

This PR formats the /web/css folder of the Simplified Chinese locale using Prettier. This is the fourth part.

@queengooborg queengooborg requested a review from a team as a code owner July 27, 2023 22:18
@queengooborg queengooborg requested review from t7yang and removed request for a team July 27, 2023 22:18
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jul 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2023

Preview URLs (68 pages)
Flaws (157)

Note! 5 documents with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/CSS/transition-property
Title: transition-property
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/padding-right
Title: padding-right
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/CSS/box_model
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/widows
Title: widows
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/CSS/orphans does not exist but fell back to /en-US/docs/Web/CSS/orphans
  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
  • translation_differences:
    • Differences in the important macros (4 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/percentage
Title: <percentage>
Flaw count: 4

  • broken_links:
    • Can't resolve /zh-CN/CSS
    • Can't resolve /zh-CN/CSS_Reference
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/z-index
Title: z-index
Flaw count: 4

  • broken_links:
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page
    • Can't resolve /zh-CN/docs/CSS/Understanding_z-index
  • translation_differences:
    • Differences in the important macros (4 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/pointer-events
Title: pointer-events
Flaw count: 5

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (3 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/Viewport_concepts
Title: 视口概念
Flaw count: 2

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/CSS/scroll-margin
Title: scroll-margin
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/scroll-behavior
Title: scroll-behavior
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/text-decoration-line
Title: text-decoration-line
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/vertical-align
Title: vertical-align
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/Universal_selectors
Title: 通配选择器
Flaw count: 2

  • broken_links:
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/Using_CSS_custom_properties
Title: 使用 CSS 自定义属性(变量)
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/CSS/var() redirects to /zh-CN/docs/Web/CSS/var
    • /zh-CN/docs/Web/CSS/var() redirects to /zh-CN/docs/Web/CSS/var
  • translation_differences:
    • Differences in the important macros (1 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/user-select
Title: user-select
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/width
Title: width
Flaw count: 7

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS/CSS_box_model/Introduction_to_the_CSS_box_model#content-area
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page
    • and 1 more flaws omitted
  • translation_differences:
    • Differences in the important macros (5 in common of 15 possible)

URL: /zh-CN/docs/Web/CSS/perspective
Title: perspective
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/resize
Title: resize
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/var
Title: var()
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-cn/docs/Web/CSS/CSS_Functions
  • translation_differences:
    • Differences in the important macros (5 in common of 10 possible)

URL: /zh-CN/docs/Web/CSS/scrollbar-color
Title: scrollbar-color
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/padding-top
Title: padding-top
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/CSS/box_model
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/text-decoration
Title: text-decoration
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/CSS/text-decoration-skip-ink does not exist but fell back to /en-US/docs/Web/CSS/text-decoration-skip-ink
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/perspective-origin
Title: perspective-origin
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
  • translation_differences:
    • Differences in the important macros (5 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/text-shadow
Title: text-shadow
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/quotes
Title: quotes
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/transform
Title: transform
Flaw count: 3

  • broken_links:
    • No need for the pathname in anchor links if it's the same page
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/word-break
Title: word-break
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/right
Title: right
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/transition
Title: transition
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/CSS/single-transition-timing-function does not exist but fell back to /en-US/docs/Web/CSS/easing-function
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (5 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/transform-function
Title: transform-function
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/transform-function/translate
Title: translate()
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/transform-function/translate3d
Title: translate3d()
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (3 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/transform-function/matrix3d
Title: matrix3d()
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/overflow-y
Title: overflow-y
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/page-break-after
Title: page-break-after
Flaw count: 5

  • broken_links:
    • Can't resolve /zh-CN/CSS/page-break-before
    • Can't resolve /zh-CN/CSS/page-break-inside
    • Can't resolve /zh-CN/CSS/orphans
    • Can't resolve /zh-CN/CSS/widows
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/touch-action
Title: touch-action
Flaw count: 5

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/CSS/Web/Events/pointermove
    • Can use the English (en-US) link as a fallback
    • No need for the pathname in anchor links if it's the same page
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/word-spacing
Title: word-spacing
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/scroll-snap-type
Title: scroll-snap-type
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/text-decoration-color
Title: text-decoration-color
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/CSS/text-emphasis-color does not exist but fell back to /en-US/docs/Web/CSS/text-emphasis-color
  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/HTML/Applying_color
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/position
Title: position
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/CSS/Containing_Block
  • translation_differences:
    • Differences in the important macros (5 in common of 13 possible)

URL: /zh-CN/docs/Web/CSS/text-transform
Title: text-transform
Flaw count: 3

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 31 possible)

URL: /zh-CN/docs/Web/CSS/page-break-inside
Title: page-break-inside
Flaw count: 5

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/text-decoration-style
Title: text-decoration-style
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/CSS
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/shape-outside
Title: shape-outside
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/CSS/basic-shape/inset does not exist but fell back to /en-US/docs/Web/CSS/basic-shape/inset
    • /zh-CN/docs/Web/CSS/basic-shape/circle does not exist but fell back to /en-US/docs/Web/CSS/basic-shape/circle
    • /zh-CN/docs/Web/CSS/basic-shape/ellipse does not exist but fell back to /en-US/docs/Web/CSS/basic-shape/ellipse
    • /zh-CN/docs/Web/CSS/basic-shape/polygon does not exist but fell back to /en-US/docs/Web/CSS/basic-shape/polygon
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/CSS/box_model
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/text-justify
Title: text-justify
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/Pseudo-classes
Title: 伪类
Flaw count: 12

  • macros:
    • /zh-CN/docs/Web/CSS/:dir() does not exist but fell back to /en-US/docs/Web/CSS/:dir
    • /zh-CN/docs/Web/CSS/:lang() does not exist but fell back to /en-US/docs/Web/CSS/:lang
    • /zh-CN/docs/Web/CSS/:current does not exist but fell back to /en-US/docs/Web/CSS/:current
    • /zh-CN/docs/Web/CSS/:future does not exist but fell back to /en-US/docs/Web/CSS/:future
    • /zh-CN/docs/Web/CSS/:local-link does not exist but fell back to /en-US/docs/Web/CSS/:local-link
    • and 7 more flaws omitted

URL: /zh-CN/docs/Web/CSS/unicode-bidi
Title: unicode-bidi
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/text-rendering
Title: 文本渲染
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (3 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/url
Title: <url>
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/CSS
    • Can't resolve /zh-CN/CSS_Reference
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/Shorthand_properties
Title: CSS 的简写属性
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/CSS/place-self does not exist but fell back to /en-US/docs/Web/CSS/place-self
    • /zh-CN/docs/Web/CSS/scroll-padding does not exist but fell back to /en-US/docs/Web/CSS/scroll-padding
    • /zh-CN/docs/Web/CSS/text-emphasis does not exist but fell back to /en-US/docs/Web/CSS/text-emphasis
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/CSS/inheritance

URL: /zh-CN/docs/Web/CSS/Specificity
Title: 优先级
Flaw count: 7

  • broken_links:
    • Can't resolve /zh-CN/CSS/CSS_Reference#Selectors
    • Anchor not lowercase
    • No need for the pathname in anchor links if it's the same page
    • Is currently http:// but can become https://
    • Link points to the page it's already on
    • and 1 more flaws omitted
  • translation_differences:
    • Differences in the important macros (2 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/visibility
Title: visibility
Flaw count: 2

  • macros:
    • /zh-CN/docs/Glossary/interpolation does not exist but fell back to /en-US/docs/Glossary/Interpolation
  • translation_differences:
    • Differences in the important macros (4 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/white-space
Title: white-space
Flaw count: 2

  • macros:
    • /zh-CN/docs/Glossary/whitespace does not exist but fell back to /en-US/docs/Glossary/Whitespace
  • translation_differences:
    • Differences in the important macros (4 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/system-color
Title: <system-color>
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/CSS/@media/forced-colors does not exist but fell back to /en-US/docs/Web/CSS/@media/forced-colors
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/place-content
Title: place-content
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/text-overflow
Title: text-overflow
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/place-items
Title: place-items
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/Privacy_and_the_:visited_selector
Title: 隐私与:visited 选择器
Flaw count: 5

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/CSS/repeat
Title: repeat()
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (3 in common of 6 possible)

URL: /zh-CN/docs/Web/CSS/overflow-wrap
Title: overflow-wrap
Flaw count: 2

  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/padding
Title: padding
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/ratio
Title: <ratio>
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/CSS/text-indent
Title: text-indent
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/text-align-last
Title: text-align-last
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

(comment last updated: 2023-07-28 01:11:01)

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

Just some fixes before we can land this ;)

files/zh-cn/web/css/word-spacing/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/padding/index.md Outdated Show resolved Hide resolved
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

Thank you @queengooborg 😊

@yin1999 yin1999 merged commit 881e54e into main Jul 28, 2023
8 checks passed
@yin1999 yin1999 deleted the zh-cn/prettier/web/css/4 branch July 28, 2023 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants