ANDREW_R_NOTES Telegram 79
Почему в CSS не будет селекторов, зависящих от текущего состояния раскладки?

Удобно было бы иметь псевдоклассы вроде :stuck для элементов с position: sticky или :overflowing для элементов, переполненных содержимым. К сожалению, таких псевдоклассов не будет, потому что они могут привести к цикличности — для них можно прописать правила, которые отменят действие этих псевдоклассов:

aside { position: sticky; top: 0; }
aside:stuck { position: static; }


Подробнее — https://wiki.csswg.org/faq#selectors-that-depend-on-layout



tgoop.com/andrew_r_notes/79
Create:
Last Update:

Почему в CSS не будет селекторов, зависящих от текущего состояния раскладки?

Удобно было бы иметь псевдоклассы вроде :stuck для элементов с position: sticky или :overflowing для элементов, переполненных содержимым. К сожалению, таких псевдоклассов не будет, потому что они могут привести к цикличности — для них можно прописать правила, которые отменят действие этих псевдоклассов:

aside { position: sticky; top: 0; }
aside:stuck { position: static; }


Подробнее — https://wiki.csswg.org/faq#selectors-that-depend-on-layout

BY Заметки Андрея Романова


Share with your friend now:
tgoop.com/andrew_r_notes/79

View MORE
Open in Telegram


Telegram News

Date: |

While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. Healing through screaming therapy Users are more open to new information on workdays rather than weekends. A vandalised bank during the 2019 protest. File photo: May James/HKFP.
from us


Telegram Заметки Андрея Романова
FROM American