Skip to content

Commit

Permalink
epubcsstest_v2.epub の Selectors 3 のテストがWindowsのKindleでOKのはずなのにOKにならない…
Browse files Browse the repository at this point in the history
…問題を修正
  • Loading branch information
MurakamiShinyu committed Mar 25, 2024
1 parent 5c836b4 commit e787096
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
@supports (margin: 0) {
#at-supports .OK {
visibility: visible;
color: black;
color: inherit;
}
}

@supports (unknownprop: 0) {
#at-supports .OK {
visibility: hidden;
color: white;
color: inherit;
}
}

Expand Down
39 changes: 18 additions & 21 deletions epub-exp/epubcsstest_v2/item/xhtml/p-002-selectors-3.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,97 +15,94 @@

#attr-substring [data-test^="AB"] .OK {
visibility: visible;
color: black;
color: inherit;
}
#attr-substring [data-test$="GH"] .OK {
visibility: visible;
color: black;
color: inherit;
}
#attr-substring [data-test*="JK"] .OK {
visibility: visible;
color: black;
color: inherit;
}

:root #root-pseudo .OK {
visibility: visible;
color: black;
color: inherit;
}

#nth-child .nc:nth-child(1) .OK {
visibility: visible;
color: black;
color: inherit;
}
#nth-child .nlc:nth-last-child(3) .OK {
visibility: visible;
color: black;
color: inherit;
}
#nth-child .nt:nth-of-type(3) .OK {
visibility: visible;
color: black;
color: inherit;
}
#nth-child .nlt:nth-last-of-type(1) .OK {
visibility: visible;
color: black;
color: inherit;
}

#last-child .lc .OK:last-child {
visibility: visible;
color: black;
color: inherit;
}
#last-child .oc .OK:only-child {
visibility: visible;
color: black;
color: inherit;
}
#last-child .ft .OK:first-of-type {
visibility: visible;
color: black;
color: inherit;
}
#last-child .lt .OK:last-of-type {
visibility: visible;
color: black;
color: inherit;
}
#last-child .ot .OK:only-of-type {
visibility: visible;
color: black;
color: inherit;
}

#empty-pseudo :empty + .OK {
visibility: visible;
color: black;
color: inherit;
}

#not-pseudo .OK:not(.NG) {
visibility: visible;
color: black;
color: inherit;
}

#pseudo-elements .fln .test2::first-line {
font-size: 200%;
}
#pseudo-elements .flt .OK span {
display: block;
}
#pseudo-elements .flt .test2::first-letter {
font-size: 200%;
}
#pseudo-elements .bf .OK {
visibility: visible;
color: black;
color: inherit;
}
#pseudo-elements .bf .OK::before {
content: "OK";
}
#pseudo-elements .af .OK {
visibility: visible;
color: black;
color: inherit;
}
#pseudo-elements .af .OK::after {
content: "OK";
}

#subsequent .E ~ .F > .OK {
visibility: visible;
color: black;
color: inherit;
}
</style>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#css-variable {
--OK-visibility: visible;
--OK-color: black;
--OK-color: inherit;
}
#css-variable .OK {
visibility: var(--OK-visibility);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@supports selector(E > F) {
#at-supports-selector .OK {
visibility: visible;
color: black;
color: inherit;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@layer test {
#at-layer .OK {
visibility: visible !important;
color: black !important;
color: inherit !important;
}
}
@layer :invalidlayer {
Expand Down
6 changes: 3 additions & 3 deletions epub-exp/epubcsstest_v2/item/xhtml/p-026-selectors-4.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

#is-pseudo :is(.OK) {
visibility: visible;
color: black;
color: inherit;
}

#where-pseudo :where(.OK) {
visibility: visible;
color: black;
color: inherit;
}

#has-pseudo :has(+ .test) {
visibility: visible;
color: black;
color: inherit;
}

</style>
Expand Down
Binary file modified epub/epubcsstest_v2.epub
Binary file not shown.

0 comments on commit e787096

Please sign in to comment.